all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Getting more info on a variable in Customize buffers
@ 2005-01-02  6:41 Drew Adams
  2005-01-02 13:27 ` Luc Teirlinck
                   ` (2 more replies)
  0 siblings, 3 replies; 71+ messages in thread
From: Drew Adams @ 2005-01-02  6:41 UTC (permalink / raw)


Customize is the preferred way to alter user variables. It also provides
information about user variables. But it seems to me that it is in some ways
less helpful than `C-h v'.

If I do `C-h v ediff-before-setup-windows-hook', the *Help* buffer gives me,
in addition to the variable's value and the doc string: 1) a link to
Customize the variable and 2) a link to the source code. And I can search on
the variable name in Info and in the source code to learn more about the
variable.

However:

1) If I click Customize in the *Help* buffer from `C-h v', I arrive at a
Customize buffer for only that variable, where there is no link to the
custom group of the variable, so I can't see how it might be related to
other variables in the group. It might be that what I really need is a
similarly named variable, but I can't browse the group to find it. In fact,
I can't even see what custom group the variable belongs to (no group name is
indicated).

2) If I somehow get to the Customize group (ediff-hook) to customize the
same variable, without coming from the `C-h v' *Help* buffer:

2a) The variable name does not appear as such. Instead, the name is
prettified using title-case and replacing dashes with spaces. A variable
with a mixed-case name like `Info-enable-edit' is indistiguishable in this
format from one that is all lowercase. There is nothing that indicates to a
user what the real name of the variable is and that the displayed name is a
transformation of the real name.

This is important because it is the real variable name that is the user's
link to more information; the title-case headline name is, at best, just a
pretty face. It is only with the real variable name that you can use apropos
or search the Info doc or the source code or even the rest of the Customize
buffer (for references from other doc strings). It is the real variable name
that serves everywhere to refer to the variable. If you understand that
there _is_ a variable named similarly to the pretty title (already not that
obvious), and you understand the name transformation (again, not that
obvious), then you can search for more information on the variable. But you
can't use `C-s C-w' to grab the name for searching, and you can't use `C-h
v' with the cursor on the pretty name to pick up the real name.

For me, it would be more useful to show the real variable name than the
title-case headline-style pretty name.

2b) There is no link to the source code that defines the variable. You need
to derive the real variable name from the pretty name and type that into
`C-h v', just to get a link to the source code. Getting to the definition of
a variable or function is one of the great strengths of Emacs over other
programs. Doc strings are great, but they don't always substitute for
looking at the real definitions. In Emacs, there is a progression from doc
to code, and the two reinforce each other. Lack of a link to the defining
code is an obstacle to that reinforcement.

2c) The variable value does not appear in its Lisp form. In some cases, it
is possible to see the Lisp form, but in other cases it cannot be seen.
Since many Emacs users also program Emacs Lisp, it would be good to provide
a link (button) that displays the Lisp value, exactly as shown in `C-v'.
Yes, Customize was designed so you don't have to be a Lisp programmer, but
it wouldn't hurt to make Lisp info available on demand.


All of this means that you are handicapped using Customize: you have less
information accessible to help you understand a variable and its relations
to commands and other variables. Customize should provide more information
than `C-h v', not less, even if that info is revealed only on demand.

The variable name is the most important piece of info in the Customize
buffer. With it, you can obtain most of the other info displayed there (`C-h
v'). If there is one thing the Customize buffer should show clearly,
literally, it's the variable name.

So, I suggest:

 - To the Customize buffer for a group containing a variable, we add:
   1) the real variable name, in such a way that it can be copied
      for pasting and searching and picked up by variable-at-point
   2) a link to the variable definition in the source code
   3) a button to display the Lisp value of the variable (Hide/
      Show/Show Lisp would do the trick).
   4) perhaps a link to the variable's explanation in Info
      (when appropriate)

   These could all be hidden under the More button, but it would be
   better if the variable name were not hidden, so it can be the
   target of a search. Alternatively, if the real name were hidden
   under More, we could add a single button to expand all the More
   buttons, to enable search across all the More information. Expand
   All for values might also be useful (though less so), for the same
   reason.

 - To the Customize buffer for an individual variable only, we add:
   1) everything listed above for the Customize group buffer
   2) a link to the Customize group buffer

Alternatively, we could eliminate the Customize buffer for an individual
variable altogether. Clicking the Customize link in *Help* would instead
take you to the correct entry in the Customize group buffer. That would have
the advantage of providing more context and related information.

^ permalink raw reply	[flat|nested] 71+ messages in thread

end of thread, other threads:[~2005-01-24 22:29 UTC | newest]

Thread overview: 71+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-02  6:41 Getting more info on a variable in Customize buffers Drew Adams
2005-01-02 13:27 ` Luc Teirlinck
2005-01-02 19:48   ` Drew Adams
2005-01-02 20:44     ` Luc Teirlinck
2005-01-02 23:52       ` Drew Adams
2005-01-03 16:55         ` Robert J. Chassell
2005-01-03 17:13           ` Drew Adams
2005-01-03 17:20             ` Luc Teirlinck
2005-01-03 17:57               ` Drew Adams
2005-01-04  9:03                 ` Per Abrahamsen
2005-01-04  9:10         ` Per Abrahamsen
2005-01-04  9:26           ` Miles Bader
2005-01-04 10:16             ` Per Abrahamsen
2005-01-04 15:55           ` Luc Teirlinck
2005-01-04 18:12             ` Drew Adams
2005-01-04 18:27               ` Luc Teirlinck
2005-01-04 19:50                 ` Drew Adams
2005-01-05  8:33             ` Per Abrahamsen
2005-01-05 17:50               ` Robert J. Chassell
2005-01-02 20:25 ` Reiner Steib
2005-01-02 20:34   ` Andreas Schwab
2005-01-02 23:52   ` Drew Adams
2005-01-03  0:35     ` Stefan
2005-01-03  1:57       ` Drew Adams
2005-01-03 17:39         ` Stefan Monnier
2005-01-03 20:45           ` Drew Adams
2005-01-04  9:46             ` Per Abrahamsen
2005-01-04 18:12               ` Drew Adams
2005-01-05  3:31               ` Richard Stallman
2005-01-05 17:31                 ` Drew Adams
2005-01-05 20:48                   ` Lennart Borgman
2005-01-05 21:43                     ` Drew Adams
2005-01-05 21:54                       ` Lennart Borgman
2005-01-06  9:06                         ` Per Abrahamsen
2005-01-06 15:26                           ` Robert J. Chassell
2005-01-06 20:23                             ` Lennart Borgman
2005-01-06 19:05                           ` Drew Adams
2005-01-06 19:55                         ` Richard Stallman
2005-01-06 20:30                           ` Lennart Borgman
2005-01-24 22:29                           ` Lennart Borgman
2005-01-09  3:23                   ` Richard Stallman
2005-01-04  9:24           ` Per Abrahamsen
2005-01-04 14:13             ` Stefan
2005-01-04 19:54               ` Richard Stallman
2005-01-04 20:39                 ` Stefan Monnier
2005-01-05 20:07                   ` Richard Stallman
2005-01-05 20:25                     ` Stefan Monnier
2005-01-06 19:56                       ` Richard Stallman
2005-01-05  8:48               ` Per Abrahamsen
2005-01-03 17:47         ` Robert J. Chassell
2005-01-03 20:39           ` Stefan Monnier
2005-01-04  1:58             ` Robert J. Chassell
2005-01-03  7:51       ` David Kastrup
2005-01-04  0:54         ` Luc Teirlinck
2005-01-05  3:31           ` Richard Stallman
2005-01-05  4:43             ` Stefan Monnier
2005-01-06  3:46               ` Luc Teirlinck
2005-01-06 13:43                 ` Stefan Monnier
2005-01-07  2:49                   ` Richard Stallman
2005-01-06 19:56                 ` Richard Stallman
2005-01-07  4:17                   ` Luc Teirlinck
2005-01-07 23:04                     ` Richard Stallman
2005-01-04  3:38         ` Richard Stallman
2005-01-03 17:28       ` drkm
2005-01-03 18:16         ` Lennart Borgman
2005-01-03 18:56           ` drkm
2005-01-04  9:49         ` Per Abrahamsen
2005-01-04  9:32     ` Per Abrahamsen
2005-01-04 12:53       ` Lennart Borgman
2005-01-04 18:12       ` Drew Adams
2005-01-03  0:58 ` Richard Stallman

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.