* [PATCH] "@" is not recognized as part of defun name for emacs-lisp
@ 2005-03-10 21:38 Jérôme Marant
2005-03-10 23:44 ` Johan Bockgård
0 siblings, 1 reply; 3+ messages in thread
From: Jérôme Marant @ 2005-03-10 21:38 UTC (permalink / raw)
Hi,
It is seem that @ is a valid character in function names (although
I did not see any place in the Lisp Ref where valid characters are mentioned.
I guess everything but parentheses would be the answer?)
Lisp-mode does not properly highlight function names containing
such a character.
This patch is contributed by Joe Edmonds <joe-bugs-debian-org@elem.com>
--- /usr/share/emacs/21.3/lisp/emacs-lisp/lisp-mode.el 2003-10-31 10:30:36.000000000 -0800
+++ lisp-mode.el 2004-03-19 10:11:23.000000000 -0800
@@ -143,7 +143,7 @@
(setq font-lock-defaults
'((lisp-font-lock-keywords
lisp-font-lock-keywords-1 lisp-font-lock-keywords-2)
- nil nil (("+-*/.<>=!?$%_&~^:" . "w")) beginning-of-defun
+ nil nil (("+-*/.<>=!?$%_&~^:@" . "w")) beginning-of-defun
(font-lock-mark-block-function . mark-defun))))
(defun lisp-outline-level ()
--
Jérôme Marant
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] "@" is not recognized as part of defun name for emacs-lisp
2005-03-10 21:38 [PATCH] "@" is not recognized as part of defun name for emacs-lisp Jérôme Marant
@ 2005-03-10 23:44 ` Johan Bockgård
2005-03-11 8:03 ` Jérôme Marant
0 siblings, 1 reply; 3+ messages in thread
From: Johan Bockgård @ 2005-03-10 23:44 UTC (permalink / raw)
Jérôme Marant <jmarant@free.fr> writes:
> It is seem that @ is a valid character in function names (although I
> did not see any place in the Lisp Ref where valid characters are
> mentioned. I guess everything but parentheses would be the answer?)
A symbol name can contain any characters whatever. Most symbol
names are written with letters, digits, and the punctuation
characters `-+=*/'. Such names require no special punctuation; the
characters of the name suffice as long as the name does not look
like a number. (If it does, write a `\' at the beginning of the
name to force interpretation as a symbol.) The characters
`_~!@$%^&:<>{}?' are less often used but also require no special
punctuation. Any other characters may be included in a symbol's
name by escaping them with a backslash.
(info "(elisp)Symbol Type")
--
Johan Bockgård
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] "@" is not recognized as part of defun name for emacs-lisp
2005-03-10 23:44 ` Johan Bockgård
@ 2005-03-11 8:03 ` Jérôme Marant
0 siblings, 0 replies; 3+ messages in thread
From: Jérôme Marant @ 2005-03-11 8:03 UTC (permalink / raw)
Quoting Johan Bockgård <bojohan+news@dd.chalmers.se>:
> Jérôme Marant <jmarant@free.fr> writes:
>
> > It is seem that @ is a valid character in function names (although I
> > did not see any place in the Lisp Ref where valid characters are
> > mentioned. I guess everything but parentheses would be the answer?)
>
> A symbol name can contain any characters whatever. Most symbol
> names are written with letters, digits, and the punctuation
> characters `-+=*/'. Such names require no special punctuation; the
> characters of the name suffice as long as the name does not look
> like a number. (If it does, write a `\' at the beginning of the
> name to force interpretation as a symbol.) The characters
> `_~!@$%^&:<>{}?' are less often used but also require no special
> punctuation. Any other characters may be included in a symbol's
> name by escaping them with a backslash.
>
> (info "(elisp)Symbol Type")
I found it. Thanks.
--
Jérôme Marant
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-03-11 8:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-10 21:38 [PATCH] "@" is not recognized as part of defun name for emacs-lisp Jérôme Marant
2005-03-10 23:44 ` Johan Bockgård
2005-03-11 8:03 ` Jérôme Marant
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.