all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ralf Angeli <angeli@caeruleus.net>
To: emacs-devel@gnu.org
Subject: Package menu not read-only
Date: Sun, 24 Oct 2010 12:08:31 +0200	[thread overview]
Message-ID: <87eibfucm8.fsf@caeruleus.net> (raw)

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



             reply	other threads:[~2010-10-24 10:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-24 10:08 Ralf Angeli [this message]
2010-10-24 15:53 ` Package menu not read-only Chong Yidong
2010-10-24 17:45   ` Ralf Angeli

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87eibfucm8.fsf@caeruleus.net \
    --to=angeli@caeruleus.net \
    --cc=emacs-devel@gnu.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 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.