* Why are ` and ' shown in help for doc strings?
@ 2006-12-16 1:04 Lennart Borgman
2006-12-16 1:16 ` Juanma Barranquero
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Lennart Borgman @ 2006-12-16 1:04 UTC (permalink / raw)
If you write something like `some-var' it will show up just like that in
the doc string, but with some-var underlined. The underlining makes
some-var stick out pretty well. Why are ` and ' still shown then?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Why are ` and ' shown in help for doc strings?
2006-12-16 1:04 Why are ` and ' shown in help for doc strings? Lennart Borgman
@ 2006-12-16 1:16 ` Juanma Barranquero
2006-12-16 1:17 ` Drew Adams
2006-12-16 1:36 ` Miles Bader
2 siblings, 0 replies; 5+ messages in thread
From: Juanma Barranquero @ 2006-12-16 1:16 UTC (permalink / raw)
Cc: Emacs Devel
On 12/16/06, Lennart Borgman <lennart.borgman.073@student.lu.se>
wrote:
> If you write something like `some-var' it will show up just like that in
> the doc string, but with some-var underlined. The underlining makes
> some-var stick out pretty well. Why are ` and ' still shown then?
The underline means that `some-var' is a button linking to
`describe-variable' for some-var. But you could have customized the
`button' face so it is indistinguishable from the default font. Try
"M-: (set-face-attribute 'button nil :underline nil)".
/L/e/k/t/u
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Why are ` and ' shown in help for doc strings?
2006-12-16 1:04 Why are ` and ' shown in help for doc strings? Lennart Borgman
2006-12-16 1:16 ` Juanma Barranquero
@ 2006-12-16 1:17 ` Drew Adams
2006-12-17 5:37 ` Richard Stallman
2006-12-16 1:36 ` Miles Bader
2 siblings, 1 reply; 5+ messages in thread
From: Drew Adams @ 2006-12-16 1:17 UTC (permalink / raw)
> If you write something like `some-var' it will show up just like that in
> the doc string, but with some-var underlined. The underlining makes
> some-var stick out pretty well. Why are ` and ' still shown then?
Please don't change this (I know you didn't actually suggest that). One
reason might be that it isn't always underlined; I don't know.
My reasons: 1. Doc strings can be used in different places (e.g. by
3rd-party libraries), not all of which would show this as underlined (a
link). 2. This is a conventional notation, and as such is consistent with
other references to variables and other names in the manuals. 3. 3rd-party
code might use `...' to highlight names specially (I do that in Info, for
instance).
I think, but others will correct me, that the underlining is specific to the
help context, where the name happens to be a hyperlink, whereas the `...' is
a doc convention for names everywhere (and `...' is perhaps rendered
differently in printed doc).
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Why are ` and ' shown in help for doc strings?
2006-12-16 1:04 Why are ` and ' shown in help for doc strings? Lennart Borgman
2006-12-16 1:16 ` Juanma Barranquero
2006-12-16 1:17 ` Drew Adams
@ 2006-12-16 1:36 ` Miles Bader
2 siblings, 0 replies; 5+ messages in thread
From: Miles Bader @ 2006-12-16 1:36 UTC (permalink / raw)
Cc: Emacs Devel
Lennart Borgman <lennart.borgman.073@student.lu.se> writes:
> If you write something like `some-var' it will show up just like that in
> the doc string, but with some-var underlined. The underlining makes
> some-var stick out pretty well. Why are ` and ' still shown then?
Because that's how we write such things. The link fontification is an
_addition_ with a different, orthogonal, meaning.
-Miles
--
`There are more things in heaven and earth, Horatio,
Than are dreamt of in your philosophy.'
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Why are ` and ' shown in help for doc strings?
2006-12-16 1:17 ` Drew Adams
@ 2006-12-17 5:37 ` Richard Stallman
0 siblings, 0 replies; 5+ messages in thread
From: Richard Stallman @ 2006-12-17 5:37 UTC (permalink / raw)
Cc: emacs-devel
I think it would be unwise to delete those quote characters
when displaying the doc string.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-12-17 5:37 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-16 1:04 Why are ` and ' shown in help for doc strings? Lennart Borgman
2006-12-16 1:16 ` Juanma Barranquero
2006-12-16 1:17 ` Drew Adams
2006-12-17 5:37 ` Richard Stallman
2006-12-16 1:36 ` Miles Bader
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.