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

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

Re: bug#8225: 23.3; wish: hook to run when manually creating a buffer wi


From: Ted Zlatanov
Subject: Re: bug#8225: 23.3; wish: hook to run when manually creating a buffer with C-x b (be able to save all created buffers at creation time)
Date: Fri, 11 Mar 2011 13:27:37 -0600
User-agent: Gnus/5.110014 (No Gnus v0.14) Emacs/24.0.50 (gnu/linux)

On Thu, 10 Mar 2011 21:29:01 -0500 Stefan Monnier <monnier@iro.umontreal.ca> 
wrote: 

>> Essentially I want to turn the manual creation of a new buffer into a
>> persistent new-file creation so I as user don’t have to think about the
>> target location (this is in line with basket and KJots and other quick
>> note programs which make it unnecessary for the user to think about save
>> locations before writing content - but still save the content).

SM> Since internal buffers get created all the time, it seems clear you
SM> really only want to do that in response to C-x b, right.
SM> Or are there other cases?

SM> One simple approach is to replace C-x b by a new command that does
SM> little more than (find-file (format "~/.emacs.d/data/%s-%s" name date)).

Would it be useful to add saving the buffer contents to session.el
instead?  So any buffers with a visible name (not starting with SPC or
`*') are saved as part of your session?  session.el already saves the
user's place in the buffer so this is probably not too hard to add.

It feels like it could be useful functionality, for information that's
useful but not yet permanent, like temporary notes or code snippets.

Ted


reply via email to

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