GNU bug report logs - #36113
27.0.50; grep-find cursor position

Previous Next

Package: emacs;

Reported by: Andreas Röhler <andreas.roehler <at> easy-emacs.de>

Date: Thu, 6 Jun 2019 10:41:01 UTC

Severity: minor

Tags: fixed

Found in version 27.0.50

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 36113 in the body.
You can then email your comments to 36113 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#36113; Package emacs. (Thu, 06 Jun 2019 10:41:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andreas Röhler <andreas.roehler <at> easy-emacs.de>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 06 Jun 2019 10:41:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.50; grep-find cursor position
Date: Thu, 6 Jun 2019 12:26:28 +0200
[Message part 1 (text/plain, inline)]
Hi,

when running M-x grep-find the cursor is in minibuffer at EOL. In
order to insert the expression, cursor is needed before braces  - see png.

The patch attached shows an example how to provide this. There might
be more cases to consider.

Thanks,
Andreas

GNU Emacs 27.0.50 (build 1, i686-pc-linux-gnu, X toolkit, Xaw3d scroll 
bars) of 2019-06-04

[grep-find-cursor.png (image/png, attachment)]
[grep-find.patch (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#36113; Package emacs. (Thu, 06 Jun 2019 20:54:03 GMT) Full text and rfc822 format available.

Message #8 received at 36113 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: 36113 <at> debbugs.gnu.org
Subject: Re: bug#36113: 27.0.50; grep-find cursor position
Date: Thu, 06 Jun 2019 23:32:30 +0300
> when running M-x grep-find the cursor is in minibuffer at EOL. In
> order to insert the expression, cursor is needed before braces  - see png.

Very strange but when I run M-x grep-find the cursor is before braces already.
Maybe some your customization prevents the cursor to be placed before braces?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#36113; Package emacs. (Fri, 07 Jun 2019 05:37:02 GMT) Full text and rfc822 format available.

Message #11 received at 36113 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: Juri Linkov <juri <at> linkov.net>
Cc: 36113 <at> debbugs.gnu.org
Subject: Re: bug#36113: 27.0.50; grep-find cursor position
Date: Fri, 7 Jun 2019 07:37:46 +0200
On 06.06.19 22:32, Juri Linkov wrote:
>> when running M-x grep-find the cursor is in minibuffer at EOL. In
>> order to insert the expression, cursor is needed before braces  - see png.
> Very strange but when I run M-x grep-find the cursor is before braces already.
> Maybe some your customization prevents the cursor to be placed before braces?

Indeed it doesn't happen from Emacs -Q, but with that customization:

'(grep-find-command
   "find . -maxdepth 1 -type f -name \"*.[a-z][a-z]\" -exec grep -nH 
-e  {} +")








Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#36113; Package emacs. (Fri, 21 Jun 2019 10:20:01 GMT) Full text and rfc822 format available.

Message #14 received at 36113 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: 36113 <at> debbugs.gnu.org, Juri Linkov <juri <at> linkov.net>
Subject: Re: bug#36113: 27.0.50; grep-find cursor position
Date: Fri, 21 Jun 2019 06:18:57 -0400
severity 36113 minor
quit

Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:

> Indeed it doesn't happen from Emacs -Q, but with that customization:
>
> '(grep-find-command
>    "find . -maxdepth 1 -type f -name \"*.[a-z][a-z]\" -exec grep -nH
> -e  {} +")

So I guess we just need to document that you should instead use

'(grep-find-command
   ("find . -maxdepth 1 -type f -name \"*.[a-z][a-z]\" -exec grep -nH -e  {} +" . 67))




Severity set to 'minor' from 'normal' Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Fri, 21 Jun 2019 10:20:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#36113; Package emacs. (Fri, 21 Jun 2019 10:34:01 GMT) Full text and rfc822 format available.

Message #19 received at 36113 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 36113 <at> debbugs.gnu.org,
 Andreas Röhler <andreas.roehler <at> easy-emacs.de>,
 Juri Linkov <juri <at> linkov.net>
Subject: Re: bug#36113: 27.0.50; grep-find cursor position
Date: Fri, 21 Jun 2019 12:33:44 +0200
On Jun 21 2019, Noam Postavsky <npostavs <at> gmail.com> wrote:

> So I guess we just need to document that you should instead use
>
> '(grep-find-command
>    ("find . -maxdepth 1 -type f -name \"*.[a-z][a-z]\" -exec grep -nH -e  {} +" . 67))

That value doesn't match the customize type.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#36113; Package emacs. (Fri, 21 Jun 2019 11:21:01 GMT) Full text and rfc822 format available.

Message #22 received at 36113 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 36113 <at> debbugs.gnu.org,
 Andreas Röhler <andreas.roehler <at> easy-emacs.de>,
 Juri Linkov <juri <at> linkov.net>
Subject: Re: bug#36113: 27.0.50; grep-find cursor position
Date: Fri, 21 Jun 2019 07:20:39 -0400
>> '(grep-find-command
>>    ("find . -maxdepth 1 -type f -name \"*.[a-z][a-z]\" -exec grep -nH -e  {} +" . 67))
>
> That value doesn't match the customize type.

Right, fix the customize type and docstring then.  Meanwhile,

    (with-eval-after-load 'grep
      (grep-apply-setting
       'grep-find-command
       '("find . -maxdepth 1 -type f -name \"*.[a-z][a-z]\" -exec grep -nH -e  {} +" . 67)))

works anyway.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#36113; Package emacs. (Sat, 22 Aug 2020 14:28:01 GMT) Full text and rfc822 format available.

Message #25 received at 36113 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 36113 <at> debbugs.gnu.org,
 Andreas Röhler <andreas.roehler <at> easy-emacs.de>,
 Juri Linkov <juri <at> linkov.net>
Subject: Re: bug#36113: 27.0.50; grep-find cursor position
Date: Sat, 22 Aug 2020 16:27:45 +0200
Noam Postavsky <npostavs <at> gmail.com> writes:

> So I guess we just need to document that you should instead use
>
> '(grep-find-command
>    ("find . -maxdepth 1 -type f -name \"*.[a-z][a-z]\" -exec grep -nH
> -e {} +" . 67))

I've now done this in Emacs 28 (and amended the defcustom type).

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 22 Aug 2020 14:29:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 36113 <at> debbugs.gnu.org and Andreas Röhler <andreas.roehler <at> easy-emacs.de> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 22 Aug 2020 14:29:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 20 Sep 2020 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 190 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.