help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

special-mode buffer changes to fundamental when modified


From: Stefan Huchler
Subject: special-mode buffer changes to fundamental when modified
Date: Thu, 20 Oct 2016 04:25:40 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]