From: Kai Grossjohann <kai@emptydomain.de>
Subject: define-generic-mode: unexpected handling of comment-end
Date: Wed, 24 Nov 2004 10:46:21 +0100 [thread overview]
Message-ID: <86u0rfk2aa.fsf@ketchup.de.uu.net> (raw)
It seems that it doesn't work to specify ("# " . "") for comments:
Debugger entered--Lisp error: (args-out-of-range "" 0)
generic-mode-set-comments((("# " . "")))
generic-mode-internal(baselib-config-mode (("# " . "")) ("include") nil nil)
baselib-config-mode()
set-auto-mode-0(baselib-config-mode nil)
set-auto-mode()
normal-mode(t)
after-find-file(nil nil t t nil)
revert-buffer(t)
call-interactively(revert-buffer)
Specifying ("# " . nil) instead works as I intended ("# " . "") to work.
Shouldn't the documentation say that comment-end is handled specially?
Here's the code:
(define-generic-mode
'baselib-config-mode ;name
'(("# " . nil)) ;comment-list
'("include") ;keyword-list
nil ;font-lock-list
'("\\.cfg\\'") ;auto-mode-list
nil ;function-list
"Mode for editing baselib config files.")
Kai
next reply other threads:[~2004-11-24 9:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-24 9:46 Kai Grossjohann [this message]
2004-11-24 14:03 ` define-generic-mode: unexpected handling of comment-end Stefan Monnier
2004-11-25 9:54 ` Kai Grossjohann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86u0rfk2aa.fsf@ketchup.de.uu.net \
--to=kai@emptydomain.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.