Grupos de Google ya no admite nuevas publicaciones ni suscripciones de Usenet. El contenido anterior sigue siendo visible.

( at the beginning of a line in docstring

Visto 1 vez
Saltar al primer mensaje no leído

Tamas Papp

no leída,
21 jul 2007, 7:57:2821/7/07
a
Take a function

(defun foo (x)
"Add 1 to x and return the result.
Example:
(foo 1) => 2"
(1+ foo))

Now if I remove the leading space after "Example:", ie

(defun foo (x)
"Add 1 to x and return the result.
Example:
(foo 1) => 2"
(1+ foo))

the ( will be pink in SLIME and compiling the function gives a reader
error. No other character but ( appear to have such an effect. I
would like to learn why the ( at the beginning of the line is handled
differently even if it is inside a docstring -- I tried to find it in
the Hyperspec with no success.

Thanks,

Tamas

Rainer Joswig

no leída,
21 jul 2007, 8:07:3721/7/07
a
In article <87hcnyo...@pu100877.student.princeton.edu>,
Tamas Papp <tkp...@gmail.com> wrote:

This is a 'feature' of SLIME/Emacs. A bug, if you will.

--
http://lispm.dyndns.org

Tamas Papp

no leída,
21 jul 2007, 9:08:1321/7/07
a
Rainer Joswig <jos...@lisp.de> writes:

Thanks Rainer, I reported it to slime-devel.

Tamas

Kalle Olavi Niemitalo

no leída,
21 jul 2007, 17:10:5521/7/07
a
Rainer Joswig <jos...@lisp.de> writes:

> This is a 'feature' of SLIME/Emacs. A bug, if you will.

The Emacs convention is to write \( instead of ( at the beginning of
a line in a documentation string. Info: (elisp)Documentation Tips.

mmcconn...@yahoo.com

no leída,
23 jul 2007, 11:25:1623/7/07
a
> This is a 'feature' of SLIME/Emacs. A bug, if you will.

Emacs regards this as something you simply have to live with. Within
Emacs, go to Info (ctrl-h i and then choose Emacs), and find the entry
"Left Margin Paren".

0 mensajes nuevos