* bug#16595: registers can now end up with non-character names
@ 2014-01-30 8:14 Glenn Morris
2014-01-31 2:51 ` Glenn Morris
0 siblings, 1 reply; 4+ messages in thread
From: Glenn Morris @ 2014-01-30 8:14 UTC (permalink / raw)
To: 16595
Package: emacs
Version: 24.3.50
In Emacs 24.3 under X:
emacs -Q
M-x point-to-register RET <right-arrow>
-> Non-character input-event
In current trunk under X:
emacs -Q
M-x point-to-register RET <right-arrow>
-> accepted with no complaints
;; Add a second register to show the list-registers problem.
M-x point-to-register RET a
M-x list-registers
-> sort: Wrong type argument: number-or-marker-p, right
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#16595: registers can now end up with non-character names
2014-01-30 8:14 bug#16595: registers can now end up with non-character names Glenn Morris
@ 2014-01-31 2:51 ` Glenn Morris
2014-01-31 6:36 ` Leo Liu
0 siblings, 1 reply; 4+ messages in thread
From: Glenn Morris @ 2014-01-31 2:51 UTC (permalink / raw)
To: Leo; +Cc: 16595
This is due to register-read-with-preview, which use read-event and does
no sanity checking of the result. Why does it not use read-char?
Also on this subject, register-preview-functions is undocumented and unused.
Does it need to exist? Does it need to be a hook, as opposed to a
-function variable? Should it not exist until there is a use-case for it?
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#16595: registers can now end up with non-character names
2014-01-31 2:51 ` Glenn Morris
@ 2014-01-31 6:36 ` Leo Liu
2014-01-31 9:59 ` Bastien
0 siblings, 1 reply; 4+ messages in thread
From: Leo Liu @ 2014-01-31 6:36 UTC (permalink / raw)
To: Glenn Morris; +Cc: Bastien Guerry, 16595
On 2014-01-31 10:51 +0800, Glenn Morris wrote:
> This is due to register-read-with-preview, which use read-event and does
> no sanity checking of the result. Why does it not use read-char?
It is due to handling help-event-list to allow f1 to manually bring up
the preview window, but this may not be important. Changing to read-char
looks fine to me.
> Also on this subject, register-preview-functions is undocumented and
>unused. Does it need to exist? Does it need to be a hook, as opposed to
>a -function variable? Should it not exist until there is a use-case for
>it?
This was left as a hook for registers-list.el (from ELPA). It seems
Bastien was going to do something with it. Bastien, what do you think?
It seems -hook or -function would be a better fit; the latter even
provides more flexibility with add-function
Leo
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#16595: registers can now end up with non-character names
2014-01-31 6:36 ` Leo Liu
@ 2014-01-31 9:59 ` Bastien
0 siblings, 0 replies; 4+ messages in thread
From: Bastien @ 2014-01-31 9:59 UTC (permalink / raw)
To: Leo Liu; +Cc: 16595
Hi Leo,
Leo Liu <sdl.web@gmail.com> writes:
> This was left as a hook for registers-list.el (from ELPA). It seems
> Bastien was going to do something with it. Bastien, what do you
> think?
My time in the last two months was swallowed by fixing Org bugs,
I didn't have time to integrate features from register-list.el
into register.el.
For now, I suggest register.el should behave independently of
register-list.el, ignoring it completely.
When I've time to merge some features, I'll do so.
--
Bastien
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-01-31 9:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-30 8:14 bug#16595: registers can now end up with non-character names Glenn Morris
2014-01-31 2:51 ` Glenn Morris
2014-01-31 6:36 ` Leo Liu
2014-01-31 9:59 ` Bastien
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.