From: Juri Linkov <juri@jurta.org>
To: Markus Triska <markus.triska@gmx.at>
Cc: 16342@debbugs.gnu.org
Subject: bug#16342: 24.3.50; RET during search inserts newline in PostScript mode
Date: Mon, 06 Jan 2014 11:38:14 +0200 [thread overview]
Message-ID: <87sit1cuwn.fsf@mail.jurta.org> (raw)
In-Reply-To: <m2iotzbgis.fsf@gmx.at> (Markus Triska's message of "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.
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.
next prev parent reply other threads:[~2014-01-06 9:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-04 21:09 bug#16342: 24.3.50; RET during search inserts newline in PostScript mode Markus Triska
2014-01-06 9:38 ` Juri Linkov [this message]
2014-01-06 15:24 ` Stefan Monnier
2014-01-07 7:57 ` Juri Linkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sit1cuwn.fsf@mail.jurta.org \
--to=juri@jurta.org \
--cc=16342@debbugs.gnu.org \
--cc=markus.triska@gmx.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).