all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Referencing variables beginning with an asterisk in docstrings broken?
@ 2016-08-25 14:54 Nathanael Schweers
  2016-08-28  1:55 ` Stefan Monnier
  0 siblings, 1 reply; 10+ messages in thread
From: Nathanael Schweers @ 2016-08-25 14:54 UTC (permalink / raw)
  To: help-gnu-emacs

I wanted to include a reference to a global (dynamic) variable in one of
my docstrings.  According to the info page “(elisp) Documentation Tips”
one merely has to reference the variable in question between the
quotation marks ‘ and ’.

As far as I can tell so far, this works, as long as the variable does
not start with an asterisk.  I.e. ‘varname’ works, so does ‘varname*’,
yet not ‘*varname’.  Hence, ‘*varname*’ also does not work.

I’d like to adhere to the Common Lisp convention of naming special
variables in my elisp code, yet if I do so, I cannot seem to reference
them in docstrings.

Is this behaviour a bug?

Best Regards,
Nathanael Schweers
-- 



^ permalink raw reply	[flat|nested] 10+ messages in thread
* Referencing variables beginning with an asterisk in docstrings broken?
@ 2016-08-25 13:56 Nathanael Schweers
  2016-08-25 20:19 ` Drew Adams
  0 siblings, 1 reply; 10+ messages in thread
From: Nathanael Schweers @ 2016-08-25 13:56 UTC (permalink / raw)
  To: help-gnu-emacs

I wanted to include a reference to a global (dynamic) variable in one of
my docstrings.  According to the info page “(elisp) Documentation Tips”
one merely has to reference the variable in question between the
quotation marks ‘ and ’.

As far as I can tell so far, this works, as long as the variable does
not start with an asterisk.  I.e. ‘varname’ works, so does ‘varname*’,
yet not ‘*varname’.  Hence, ‘*varname*’ also does not work.

I’d like to adhere to the Common Lisp convention of naming special
variables in my elisp code, yet if I do so, I cannot seem to reference
them in docstrings.

Is this behaviour a bug?

Best Regards,
Nathanael Schweers
-- 



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

end of thread, other threads:[~2016-08-29  0:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-25 14:54 Referencing variables beginning with an asterisk in docstrings broken? Nathanael Schweers
2016-08-28  1:55 ` Stefan Monnier
2016-08-28 15:18   ` GDB GUD Variable Buffer Augusto Fraga Giachero
2016-08-28 15:53     ` Eli Zaretskii
2016-08-28 16:35       ` Augusto Fraga Giachero
2016-08-28 16:54         ` Eli Zaretskii
2016-08-28 23:32   ` Referencing variables beginning with an asterisk in docstrings broken? Nathanael Schweers
2016-08-29  0:32     ` Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2016-08-25 13:56 Nathanael Schweers
2016-08-25 20:19 ` Drew Adams

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.