From: Stefan Huchler <stefan.huchler@mail.de>
To: help-gnu-emacs@gnu.org
Subject: special-mode buffer changes to fundamental when modified
Date: Thu, 20 Oct 2016 04:25:40 +0200 [thread overview]
Message-ID: <87wph3n4d7.fsf@jupiter.lan> (raw)
I try something like that:
(define-derived-mode foo-mode special-mode "foo"
(with-current-buffer-window "*foo*" nil nil
(print (concat "...:\n"
(substitute-command-keys
"\\{foo-mode-map}") ))
)
)
but then its no special mode buffer anymore, and it
overwrites my keymaps. Without the with-current-buffer-window macro it
works it supposed to be but the buffer is empty.
I tried I think most with- macros and nothing worked, not very obvious
for me how to write stuff in a special buffer.
next reply other threads:[~2016-10-20 2:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-20 2:25 Stefan Huchler [this message]
2016-10-20 15:33 ` special-mode buffer changes to fundamental when modified Michael Heerdegen
2016-10-20 16:34 ` Stefan Huchler
2016-10-21 10:58 ` Michael Heerdegen
2016-10-22 0:15 ` Stefan Huchler
2016-10-23 11:41 ` Michael Heerdegen
2016-10-23 12:58 ` Stefan Huchler
2016-10-23 16:24 ` Michael Heerdegen
2016-10-23 16:47 ` Stefan Huchler
2016-10-27 16:59 ` Michael Heerdegen
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wph3n4d7.fsf@jupiter.lan \
--to=stefan.huchler@mail.de \
--cc=help-gnu-emacs@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).