GNU bug report logs - #16342
24.3.50; RET during search inserts newline in PostScript mode

Previous Next

Package: emacs;

Reported by: Markus Triska <markus.triska <at> gmx.at>

Date: Sat, 4 Jan 2014 21:11:02 UTC

Severity: normal

Found in version 24.3.50

Done: Juri Linkov <juri <at> jurta.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 16342 in the body.
You can then email your comments to 16342 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#16342; Package emacs. (Sat, 04 Jan 2014 21:11:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Markus Triska <markus.triska <at> gmx.at>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 04 Jan 2014 21:11:02 GMT) Full text and rfc822 format available.

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

From: Markus Triska <markus.triska <at> gmx.at>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; RET during search inserts newline in PostScript mode
Date: Sat, 04 Jan 2014 22:09:47 +0100
With "test.ps" which only contains the string "test", when I do:

   $ emacs -Q test.ps

and then search for 'e' with:

   C-s e

and then press RET to stop the search, it unexpectedly inserts a
newline. This does not happen for example in fundamental-mode.


In GNU Emacs 24.3.50.1 (x86_64-apple-darwin10.8.0, X toolkit, Xaw scroll bars)
 of 2014-01-04 on mt-imac.local
Windowing system distributor `The X.Org Foundation', version 11.0.10402000
Configured using:
 `configure --with-xpm=no --with-tiff=no --with-jpeg=no --with-png=no
 CFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib'

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16342; Package emacs. (Mon, 06 Jan 2014 09:48:01 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> jurta.org>
To: Markus Triska <markus.triska <at> gmx.at>
Cc: 16342 <at> debbugs.gnu.org
Subject: Re: bug#16342: 24.3.50;
 RET during search inserts newline in PostScript mode
Date: Mon, 06 Jan 2014 11:38:14 +0200
> With "test.ps" which only contains the string "test", when I do:
>
>    $ emacs -Q test.ps
>
> and then search for 'e' with:
>
>    C-s e
>
> and then press RET to stop the search, it unexpectedly inserts a
> newline. This does not happen for example in fundamental-mode.

This is because ps-mode.el binds [return] in addition to "\r":

  (define-key ps-mode-map "\r" 'ps-mode-newline)
  (define-key ps-mode-map [return] 'ps-mode-newline)

whereas isearch.el binds only "\r":

  (define-key isearch-mode-map "\r" 'isearch-exit)

We could remove the [return] keybinding from ps-mode.el,
but there are many other places that bind [return] and [backspace]
in the Emacs source tree, external packages as well as in
countless user init files, so maybe better would be to add [return]
and [backspace] keybindings to isearch-mode-map in isearch.el.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16342; Package emacs. (Mon, 06 Jan 2014 15:25:02 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Juri Linkov <juri <at> jurta.org>
Cc: 16342 <at> debbugs.gnu.org, Markus Triska <markus.triska <at> gmx.at>
Subject: Re: bug#16342: 24.3.50;
 RET during search inserts newline in PostScript mode
Date: Mon, 06 Jan 2014 10:24:16 -0500
> countless user init files, so maybe better would be to add [return]
> and [backspace] keybindings to isearch-mode-map in isearch.el.

Agreed.  Tho we should *also* remove the `return' binding in ps-mode.el.


        Stefan




Reply sent to Juri Linkov <juri <at> jurta.org>:
You have taken responsibility. (Tue, 07 Jan 2014 07:59:01 GMT) Full text and rfc822 format available.

Notification sent to Markus Triska <markus.triska <at> gmx.at>:
bug acknowledged by developer. (Tue, 07 Jan 2014 07:59:03 GMT) Full text and rfc822 format available.

Message #16 received at 16342-done <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> jurta.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Markus Triska <markus.triska <at> gmx.at>, 16342-done <at> debbugs.gnu.org
Subject: Re: bug#16342: 24.3.50;
 RET during search inserts newline in PostScript mode
Date: Tue, 07 Jan 2014 09:57:31 +0200
>> countless user init files, so maybe better would be to add [return]
>> and [backspace] keybindings to isearch-mode-map in isearch.el.
>
> Agreed.  Tho we should *also* remove the `return' binding in ps-mode.el.

The revno 115903 fixes this in both isearch.el and ps-mode.el.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 04 Feb 2014 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 106 days ago.

Previous Next


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