GNU bug report logs -
#15200
isearch-other-meta-char and shift
Previous Next
Reported by: Juri Linkov <juri <at> jurta.org>
Date: Tue, 27 Aug 2013 16:30:02 UTC
Severity: normal
Merged with 15383,
15544
Found in version 24.3.50
Done: Juri Linkov <juri <at> jurta.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> This happens after this code:
> (memq scroll-command
> '(universal-argument
> negative-argument digit-argument))))))
> (command-execute scroll-command)
This code can be simplified as follows: `scroll-command' can be removed,
instead its value is immediately available as `this-command'.
> Perhaps `command-execute' should be removed here.
Indeed. For isearch-allow-prefix, that's all that's needed.
> It's not yet removed in this patch since I'm not sure
> because after moving its post-processing code:
> (let ((ab-bel (isearch-string-out-of-window isearch-point)))
> (if ab-bel
> (isearch-back-into-window (eq ab-bel 'above) isearch-point)
> (goto-char isearch-point)))
Yes, this needs to be moved to post-command-hook.
Another alternative is to do something like
(setq this-command
`(lambda () (interactive)
(let ((isearch-point (point)))
(command-execute ',this-command)
(let ((ab-bel (isearch-string-out-of-window isearch-point)))
(if ab-bel
(isearch-back-into-window (eq ab-bel 'above) isearch-point)
(goto-char isearch-point))))))
but this is probably going to bring us more trouble than it's worth.
Stefan
This bug report was last modified 11 years and 227 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.