From: Martin Pohlack <mp26@os.inf.tu-dresden.de>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: Fwd: Patch for sgml-mode.el
Date: Fri, 23 Nov 2007 16:26:17 +0100 [thread overview]
Message-ID: <4746F119.2090504@os.inf.tu-dresden.de> (raw)
In-Reply-To: <jwvtznd6m62.fsf-monnier+emacs@gnu.org>
Stefan Monnier wrote:
>> sgml-mode.el currently contains such lines:
>
>> (define-derived-mode sgml-mode text-mode '(sgml-xml-mode "XML" "SGML")
>
>> and
>
>> (define-derived-mode html-mode sgml-mode '(sgml-xml-mode "XHTML" "HTML")
>> .
>
>> This violates that the third argument of define-derived-mode shall be a
>> string. Furthermore, it results in "mode-name" not being a string for
>> html buffers.
>
> I don't see a problem with that. It's obviously been done on purpose.
Well, this was not obvious to me ...
> Please describe where it causes a problem so we can fix that spot.
Most obviously: the documentation for "define-derived-mode" states:
(define-derived-mode child parent name &optional docstring &rest body)
...
name: a string which will appear in the status line (e.g. "Hypertext")
So name should be a string.
Second, I could not find the documentation for the varibale mode-name in
emacs, but in xemacs it is documented as:
Pretty name of current buffer's major mode (a string).
Third, I have a buffer-switching module here locally, which relies on
mode-name being a string.
http://os.inf.tu-dresden.de/~mp26/download/cycbuf.el
Could you advice another way to get the mode-name as a string for a
buffer apart from accessing mode-name? Maybe this could be documented?
Cheers,
Martin
next prev parent reply other threads:[~2007-11-23 15:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-23 4:36 [mp26@os.inf.tu-dresden.de: Patch for sgml-mode.el] Richard Stallman
2007-11-23 15:02 ` Fwd: Patch for sgml-mode.el Stefan Monnier
2007-11-23 15:26 ` Martin Pohlack [this message]
2007-11-23 16:26 ` Stefan Monnier
2007-11-23 19:55 ` Glenn Morris
2007-11-30 4:46 ` Stefan Monnier
2007-11-30 20:58 ` Glenn Morris
2007-12-01 3:16 ` Stefan Monnier
2007-12-02 21:59 ` Glenn Morris
2007-12-01 4:07 ` Stefan Monnier
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=4746F119.2090504@os.inf.tu-dresden.de \
--to=mp26@os.inf.tu-dresden.de \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=rms@gnu.org \
/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.