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

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

Re: XEmacs feature missing in GNU Emacs? (was: XEmacs)


From: Ian van der Neut
Subject: Re: XEmacs feature missing in GNU Emacs? (was: XEmacs)
Date: Mon, 29 Apr 2013 19:11:46 +0200

Well, answering my own question. While googling for the deselect-frame-hook, I found that since I last looked, someone came up with a solution:

http://datamaskinen.medeltiden.org/emacs-save-buffers-on-window-blur.html (dated 22 January, and last I searched was December... figures)

Just tested it. Works too.

Ian :)


On Mon, Apr 29, 2013 at 7:04 PM, Ian van der Neut <ivdneut@gmail.com> wrote:
Not sure if it's small, but here goes.

In vim, Sublime Text, and others (osx textmate I've been told) you can set an option that will save the file in the current frame when it loses focus. While googling to check if Emacs can be configured to have the same behaviour I found that XEmacs has a 'deselect-frame-hook' that could be used for this. From the same googling, I found that Emacs would require something beyond a mere elisp module, but it would have to be implemented in the core C code itself.

I would really like this option, since I am "frame oriented". I tend to have quite a few frames open and use "focus follows mouse" which is available in any Linux desktop. I move my mouse to a terminal window to type 'make' or run the python/bash/what-have-you script and I would like emacs to save at least the buffer of the frame I just left and perhaps even all buffers (but since they wouldn't have focus anymore, they'd already been saved anyway).

Ian.


On Mon, Apr 29, 2013 at 6:21 PM, Bastien <bzg@altern.org> wrote:
glyn.millington@gmail.com writes:

> I suspect that one  reason for sticking with Xemacs now is lots of little
> customizations  and tweaks which don't easily transfer to Gnu Emacs - the
> same reason why I wouldn't willingly swap my init.el for yours, because
> it would change the way I work.

I changed the subject -- maybe this thread is an opportunity to get a
list of XEmacs features that would be nice to have in GNU Emacs.  I'm
not thinking of architectural differences, rather of small convenient
commands or options.

--
 Bastien




--
One man's "magic" is another man's engineering. "Supernatural" is a null word.
-- Excerpt from the notebooks of Lazarus Long, from Robert Heinlein's "Time Enough for Love"



--
One man's "magic" is another man's engineering. "Supernatural" is a null word.
-- Excerpt from the notebooks of Lazarus Long, from Robert Heinlein's "Time Enough for Love"

reply via email to

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