all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* special-mode buffer changes to fundamental when modified
@ 2016-10-20  2:25 Stefan Huchler
  2016-10-20 15:33 ` Michael Heerdegen
  0 siblings, 1 reply; 10+ messages in thread
From: Stefan Huchler @ 2016-10-20  2:25 UTC (permalink / raw)
  To: help-gnu-emacs

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.




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-10-27 16:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-20  2:25 special-mode buffer changes to fundamental when modified Stefan Huchler
2016-10-20 15:33 ` 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

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.