unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Juri Linkov <juri@jurta.org>
Cc: emacs-devel@gnu.org
Subject: Re: Bug #8901: (C-u C-<space> fails in Isearch) - proposed fix.
Date: Mon, 29 Aug 2011 22:21:12 +0000	[thread overview]
Message-ID: <20110829222112.GD2908@acm.acm> (raw)
In-Reply-To: <87k49vykbb.fsf@mail.jurta.org>

Hi, Juri.

On Tue, Aug 30, 2011 at 12:33:28AM +0300, Juri Linkov wrote:
> > Bug #8901 again, for reference:
> > 1.   emacs -Q
> > 2.   M-: (setq isearch-allow-scroll t)
> > 3.   C-x C-f <any file>
> > 4.   C-s <a few characters>
> > 5.   C-u C-<space>

> > This last command ought to terminate the isearch and move point to where
> > the search began.  Instead, it pushes a mark, as though the C-u were not
> > there.

> Please note that it works correctly on X, but fails on a tty.
> So this is a tty-specific bug.

I hadn't actually tried it on X.  ;-(

I have now, though.  The difference seems to be (with C-h l):

tty:   C-u C-@
X:     C-u C-SPC

C-@ has an entry in local-function-key-map, which transforms it into the
vector [67108896] i.e. [2^26 + 32].  Because of this l-f-k-map entry, it
gets caught by the first arm of the cond in `isearch-other-meta-char',
where there's no handling for prefix-arg.

In the X case, C-SPC drops through to some arm where the prefix-arg does
get set.  Probably.

It's too late for me to concentrate fully on this.

-- 
Alan Mackenzie (Nuremberg, Germany).



      reply	other threads:[~2011-08-29 22:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-29 21:06 Bug #8901: (C-u C-<space> fails in Isearch) - proposed fix Alan Mackenzie
2011-08-29 21:33 ` Juri Linkov
2011-08-29 22:21   ` Alan Mackenzie [this message]

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=20110829222112.GD2908@acm.acm \
    --to=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    --cc=juri@jurta.org \
    /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).