GNU bug report logs -
#16342
24.3.50; RET during search inserts newline in PostScript mode
Previous Next
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.
Full log
Message #8 received at 16342 <at> debbugs.gnu.org (full text, mbox):
> 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.
This bug report was last modified 11 years and 135 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.