* bug#6881: 23.2; bookmark-bmenu-search makes menu disappear
@ 2010-08-18 18:00 Leo
2010-08-19 7:10 ` Leo
0 siblings, 1 reply; 7+ messages in thread
From: Leo @ 2010-08-18 18:00 UTC (permalink / raw)
To: 6881
1. C-x r l to list bookmarks
2. M-g s and the menu bar becomes blank.
Tested on emacs 23.2 on OSX.
Leo
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#6881: 23.2; bookmark-bmenu-search makes menu disappear
2010-08-18 18:00 bug#6881: 23.2; bookmark-bmenu-search makes menu disappear Leo
@ 2010-08-19 7:10 ` Leo
2010-08-19 9:22 ` Thierry Volpiatto
2010-08-19 14:47 ` Stefan Monnier
0 siblings, 2 replies; 7+ messages in thread
From: Leo @ 2010-08-19 7:10 UTC (permalink / raw)
To: 6881
This is a bug in read-key.
It appears using read-char solve this problem and the key echoing one.
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#6881: 23.2; bookmark-bmenu-search makes menu disappear
2010-08-19 7:10 ` Leo
@ 2010-08-19 9:22 ` Thierry Volpiatto
2010-08-19 14:47 ` Stefan Monnier
1 sibling, 0 replies; 7+ messages in thread
From: Thierry Volpiatto @ 2010-08-19 9:22 UTC (permalink / raw)
To: bug-gnu-emacs
Leo <sdl.web@gmail.com> writes:
> This is a bug in read-key.
read-key should not echo the command in minibuffer.
> It appears using read-char solve this problem and the key echoing one.
Note that if read-char is used in `bookmark-read-search-input'
`inhibit-quit' need to be set to t, as read-char is not aware of C-g
like read-key.
It is safe to use inhibit-quit in bookmark-read-search-input, i use it
without problems since months in bookmark-extensions.el (with
read-char).
An alternative to read-char is to use most of the time read-char and
when read-char fail use read-event instead:
(defun ioccur-read-char-or-event (prompt)
"Replace `read-key' when not available using PROMPT."
(if (fboundp 'read-key)
(read-key prompt)
-> (let* ((chr (condition-case nil (read-char prompt) (error nil)))
-> (evt (unless chr (read-event prompt))))
-> (or chr evt))))
--
Thierry Volpiatto
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#6881: 23.2; bookmark-bmenu-search makes menu disappear
2010-08-19 7:10 ` Leo
2010-08-19 9:22 ` Thierry Volpiatto
@ 2010-08-19 14:47 ` Stefan Monnier
2010-08-19 15:21 ` Leo
` (2 more replies)
1 sibling, 3 replies; 7+ messages in thread
From: Stefan Monnier @ 2010-08-19 14:47 UTC (permalink / raw)
To: Leo; +Cc: 6881
> This is a bug in read-key.
> It appears using read-char solve this problem and the key echoing one.
I strongly encourage people to switch from read-char to read-key, so if
there's a problem with read-key, I'd rather try and fix it rather than
return to read-char.
I've just installed the patch below into emacs-23 which should fix it.
Stefan
=== modified file 'lisp/subr.el'
--- lisp/subr.el 2010-07-10 18:52:53 +0000
+++ lisp/subr.el 2010-08-19 14:25:12 +0000
@@ -1842,7 +1842,12 @@
(throw 'read-key keys)))))))
(unwind-protect
(progn
- (use-global-map read-key-empty-map)
+ (use-global-map
+ (let ((map (make-sparse-keymap)))
+ ;; Don't hide the menu-bar and tool-bar entries.
+ (define-key map [menu-bar] (lookup-key global-map [menu-bar]))
+ (define-key map [tool-bar] (lookup-key global-map [tool-bar]))
+ map))
(aref (catch 'read-key (read-key-sequence-vector prompt nil t)) 0))
(cancel-timer timer)
(use-global-map old-global-map))))
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#6881: 23.2; bookmark-bmenu-search makes menu disappear
2010-08-19 14:47 ` Stefan Monnier
@ 2010-08-19 15:21 ` Leo
2010-08-19 15:30 ` Thierry Volpiatto
2010-08-19 21:37 ` Stefan Monnier
2 siblings, 0 replies; 7+ messages in thread
From: Leo @ 2010-08-19 15:21 UTC (permalink / raw)
To: Stefan Monnier; +Cc: 6881
On 2010-08-19 15:47 +0100, Stefan Monnier wrote:
>> This is a bug in read-key.
>> It appears using read-char solve this problem and the key echoing one.
>
> I strongly encourage people to switch from read-char to read-key, so if
> there's a problem with read-key, I'd rather try and fix it rather than
> return to read-char.
>
> I've just installed the patch below into emacs-23 which should fix it.
>
[...]
I confirm the patch fixes the menu bar issue. There is another issue
regarding read-key. I have reported it as another bug and CC'd you.
Thanks.
Regards,
Leo
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#6881: 23.2; bookmark-bmenu-search makes menu disappear
2010-08-19 14:47 ` Stefan Monnier
2010-08-19 15:21 ` Leo
@ 2010-08-19 15:30 ` Thierry Volpiatto
2010-08-19 21:37 ` Stefan Monnier
2 siblings, 0 replies; 7+ messages in thread
From: Thierry Volpiatto @ 2010-08-19 15:30 UTC (permalink / raw)
To: bug-gnu-emacs
Hi Stefan,
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> This is a bug in read-key.
>> It appears using read-char solve this problem and the key echoing one.
>
> I strongly encourage people to switch from read-char to read-key, so if
> there's a problem with read-key, I'd rather try and fix it rather than
> return to read-char.
>
> I've just installed the patch below into emacs-23 which should fix it.
Thanks to fix that so fast.
I didn't try, but that seem to fix the menu-bar problem but not the key
echoing in minibuffer that Leo have reported also.
Here on GNU/Linux, i can't reproduce it, so it's not annoying, but it
seem really annoying for OSX mac users.
It would be great read-key don't echo key in minibuffer.
--
Thierry Volpiatto
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#6881: 23.2; bookmark-bmenu-search makes menu disappear
2010-08-19 14:47 ` Stefan Monnier
2010-08-19 15:21 ` Leo
2010-08-19 15:30 ` Thierry Volpiatto
@ 2010-08-19 21:37 ` Stefan Monnier
2 siblings, 0 replies; 7+ messages in thread
From: Stefan Monnier @ 2010-08-19 21:37 UTC (permalink / raw)
To: Leo
>> I've just installed the patch below into emacs-23 which should fix it.
> Thanks to fix that so fast.
Closing this bug. The echoing problem has a new bug number.
Stefan
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-08-19 21:37 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-18 18:00 bug#6881: 23.2; bookmark-bmenu-search makes menu disappear Leo
2010-08-19 7:10 ` Leo
2010-08-19 9:22 ` Thierry Volpiatto
2010-08-19 14:47 ` Stefan Monnier
2010-08-19 15:21 ` Leo
2010-08-19 15:30 ` Thierry Volpiatto
2010-08-19 21:37 ` Stefan Monnier
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).