* Package menu not read-only
@ 2010-10-24 10:08 Ralf Angeli
2010-10-24 15:53 ` Chong Yidong
0 siblings, 1 reply; 3+ messages in thread
From: Ralf Angeli @ 2010-10-24 10:08 UTC (permalink / raw)
To: emacs-devel
Hi,
the buffer with the package menu (`M-x list-packages <RET>') is not
read-only. The problem is due to `buffer-read-only' being set to nil in
`package--generate-package-list'. This seems to be unnecessary because
`inhibit-read-only' is temporarily set to t anyway. So I'd suggest the
following fix which I can apply if there are no objections.
--- lisp/emacs-lisp/package.el 2010-09-22 03:31:30 +0000
+++ lisp/emacs-lisp/package.el 2010-10-24 09:50:14 +0000
@@ -1474,7 +1474,6 @@
(package-initialize)
(let ((inhibit-read-only t)
info-list name desc hold builtin)
- (setq buffer-read-only nil)
(erase-buffer)
;; List installed packages
(dolist (elt package-alist)
I noticed the problem when typing <TAB> in the buffer in order to jump
to the next "link". Apparently the package names are no links at all
and <TAB> does not make much sense here. Wouldn't it be better from a
usability point of view to remove the underlining from the package
names?
In order to make it more apparent that commands in the buffer work on
whole lines and the horizontal position of point is not really relevant
one could also highlight the whole line in which point is located,
similar to what RefTeX does in table of contents (`C-c =' in a LaTeX
file).
--
Ralf
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Package menu not read-only
2010-10-24 10:08 Package menu not read-only Ralf Angeli
@ 2010-10-24 15:53 ` Chong Yidong
2010-10-24 17:45 ` Ralf Angeli
0 siblings, 1 reply; 3+ messages in thread
From: Chong Yidong @ 2010-10-24 15:53 UTC (permalink / raw)
To: Ralf Angeli; +Cc: emacs-devel
Ralf Angeli <angeli@caeruleus.net> writes:
> the buffer with the package menu (`M-x list-packages <RET>') is not
> read-only. The problem is due to `buffer-read-only' being set to nil in
> `package--generate-package-list'. This seems to be unnecessary because
> `inhibit-read-only' is temporarily set to t anyway. So I'd suggest the
> following fix which I can apply if there are no objections.
Thanks, committed.
> I noticed the problem when typing <TAB> in the buffer in order to jump
> to the next "link". Apparently the package names are no links at all
> and <TAB> does not make much sense here.
They are links, or rather buttons, and are clickable with the mouse.
I've just changed package-menu-mode-map to make button-buffer-map its
parent. This should let TAB work.
> In order to make it more apparent that commands in the buffer work on
> whole lines and the horizontal position of point is not really
> relevant one could also highlight the whole line in which point is
> located, similar to what RefTeX does in table of contents (`C-c =' in
> a LaTeX file).
I don't think it's a good idea for non-electric modes to highlight the
whole line. For the case of the *Packages* menu, the text color helps
to indicate each package's installation status, and it would be annoying
to have this information masked hidden for the current line.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Package menu not read-only
2010-10-24 15:53 ` Chong Yidong
@ 2010-10-24 17:45 ` Ralf Angeli
0 siblings, 0 replies; 3+ messages in thread
From: Ralf Angeli @ 2010-10-24 17:45 UTC (permalink / raw)
To: Chong Yidong; +Cc: emacs-devel
* Chong Yidong (2010-10-24) writes:
> Ralf Angeli <angeli@caeruleus.net> writes:
>
>> I noticed the problem when typing <TAB> in the buffer in order to jump
>> to the next "link". Apparently the package names are no links at all
>> and <TAB> does not make much sense here.
>
> They are links, or rather buttons, and are clickable with the mouse.
> I've just changed package-menu-mode-map to make button-buffer-map its
> parent. This should let TAB work.
Yup. A much nicer experience now. (c:
--
Ralf
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-10-24 17:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-24 10:08 Package menu not read-only Ralf Angeli
2010-10-24 15:53 ` Chong Yidong
2010-10-24 17:45 ` Ralf Angeli
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).