unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* definition lines in Info - 1) link, 2) highlight
@ 2006-08-11 15:16 Drew Adams
  2006-08-11 19:24 ` Richard Stallman
  0 siblings, 1 reply; 18+ messages in thread
From: Drew Adams @ 2006-08-11 15:16 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1410 bytes --]

1) This has perhaps been suggested before; I don't know.

How about having definition/reference lines such as the following be links
in the Elisp Info manual?

 - Variable: blink-paren-function
 - User Option: blink-matching-paren
 - Command: blink-matching-open

What would the link target be? Clicking such a link could 1) show you the
current value of a variable, a la pp-eval-expression, and 2) take you to the
defining source code. In many cases, the current value of a variable would
fit in the echo area; in other cases, two buffers would be displayed: the
source-code file and *Pp Eval Output*. For other than variables, only #2
would happen.


2) A related suggestion is this (which I think I might have made already):
highlight definition/reference lines in Info, so they stand out better. See
attached screenshot.

I do this in my own code, and I find that it helps readability. I use a
slightly different background color for the line, starting after the "- ",
and I use a different foregound color for each type name: Variable, User
Option, Command, Macro, Function, Special Form, and Syntax Class. In
particular, this helps you distinguish Variable and User Option visually;
likewise, Function and Command.

The regexp is trivial, and so far I've never seen a false or missed hit:
"^ --? \\(Function:\\|Variable:\\|Special Form:\\|\
Command:\\|User Option:\\|Macro:\\|Syntax class:\\)\\(.*\\)"



[-- Attachment #2: info-reference-items.jpg --]
[-- Type: image/jpeg, Size: 548624 bytes --]

[-- Attachment #3: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

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

end of thread, other threads:[~2006-08-16  6:33 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-11 15:16 definition lines in Info - 1) link, 2) highlight Drew Adams
2006-08-11 19:24 ` Richard Stallman
2006-08-12 11:42   ` Eli Zaretskii
2006-08-12 17:33     ` Drew Adams
2006-08-12 21:58       ` Eli Zaretskii
2006-08-13 13:53         ` Richard Stallman
2006-08-13 14:10           ` Drew Adams
2006-08-13 18:48           ` Eli Zaretskii
2006-08-15  2:42             ` Richard Stallman
2006-08-15 14:57               ` Drew Adams
2006-08-15 19:29                 ` Eli Zaretskii
2006-08-15 20:05                   ` Drew Adams
2006-08-15 21:01                 ` David Kastrup
2006-08-15 21:56                   ` Drew Adams
2006-08-15 22:49                     ` Chong Yidong
2006-08-15 23:24                       ` Drew Adams
2006-08-16  6:33                 ` Richard Stallman
2006-08-13 17:33   ` Drew Adams

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).