From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian van der Neut <ivdneut@gmail.com> Newsgroups: gmane.emacs.help Subject: Re: XEmacs feature missing in GNU Emacs? (was: XEmacs) Date: Mon, 29 Apr 2013 19:11:46 +0200 Message-ID: <CANyFcg1dMhC3tC8LG+iCD0vfWMajG-50WVmienN7LLxZ1n=koQ@mail.gmail.com> References: <CACeWA3iaQXuz6uv7ejA2O8Z0CLS2VfTbEBtMmEhAxyLi3EtwRg@mail.gmail.com> <CAAuthdRKjbaMnoNUgqA-o0n2Y-AN3ZO-rgq5ymVBy0Gb4gM-eQ@mail.gmail.com> <87li82icgp.fsf@nowhere.org> <alpine.DEB.2.02.1304282326100.3673@james-System-Product-Name> <871u9t7te9.fsf@nowhere.org> <8761z51f4z.fsf_-_@bzg.ath.cx> <CANyFcg25y8bQ-OGyx=SC5+Gf4bamoDwV=en6Q5oCOd2dn01XOA@mail.gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b3a7d92c6f85204db82fa8d X-Trace: ger.gmane.org 1367255538 3142 80.91.229.3 (29 Apr 2013 17:12:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Apr 2013 17:12:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 29 19:12:18 2013 Return-path: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org> Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>) id 1UWrcd-0003k1-0F for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Apr 2013 19:12:15 +0200 Original-Received: from localhost ([::1]:58687 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>) id 1UWrcc-0002pa-8u for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Apr 2013 13:12:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60396) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <ivdneut@gmail.com>) id 1UWrcE-0002hZ-V6 for help-gnu-emacs@gnu.org; Mon, 29 Apr 2013 13:11:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <ivdneut@gmail.com>) id 1UWrcB-0007eE-W3 for help-gnu-emacs@gnu.org; Mon, 29 Apr 2013 13:11:50 -0400 Original-Received: from mail-la0-x22b.google.com ([2a00:1450:4010:c03::22b]:56034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ivdneut@gmail.com>) id 1UWrcB-0007e8-KS for help-gnu-emacs@gnu.org; Mon, 29 Apr 2013 13:11:47 -0400 Original-Received: by mail-la0-f43.google.com with SMTP id ea20so5692629lab.30 for <help-gnu-emacs@gnu.org>; Mon, 29 Apr 2013 10:11:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=6YTIIkXdWRgdLUes4VZ6miGcMviD5nfkKDP+Zh/FMao=; b=yVt09wuooR0xUnBsCVIJioO9DOJ2PfEJMosAeyDmgQNd1fhyDJoZ/o1gZ/bh9BXZe6 qohwI+PxEl7Uh4qPsNuTNN9pmcUF/P9Ss9jU2J/NBqW5nzVEjrVz1gmD4xy+HifXyoMh 76M8W+79ov9NYF4YUavMGt1Cy4j4fINY7hiyuE3kN3ws+YgUwheKSvRiMeX+QAWnRjT8 irHK/ZN4Ga4kHbY1K7tD0IGvTeIWB09/Pts7an5HzxFljEQig8R1+rNadYGOylaDl5b8 y0Z65D3nFxJZpZCh0BrMMPfw5LWXHIewIbVtBNUVKa4It6RpCvz+KG9+9vTDQ/X6uDbE MH9g== X-Received: by 10.112.145.230 with SMTP id sx6mr19045677lbb.49.1367255506415; Mon, 29 Apr 2013 10:11:46 -0700 (PDT) Original-Received: by 10.112.168.228 with HTTP; Mon, 29 Apr 2013 10:11:46 -0700 (PDT) In-Reply-To: <CANyFcg25y8bQ-OGyx=SC5+Gf4bamoDwV=en6Q5oCOd2dn01XOA@mail.gmail.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22b X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-gnu-emacs>, <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/archive/html/help-gnu-emacs> List-Post: <mailto:help-gnu-emacs@gnu.org> List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-gnu-emacs>, <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe> Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:90404 Archived-At: <http://permalink.gmane.org/gmane.emacs.help/90404> --047d7b3a7d92c6f85204db82fa8d Content-Type: text/plain; charset=ISO-8859-1 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" --047d7b3a7d92c6f85204db82fa8d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Well, answering my own question. While googling for t= he deselect-frame-hook, I found that since I last looked, someone came up w= ith a solution:<br><br><a href=3D"http://datamaskinen.medeltiden.org/emacs-= save-buffers-on-window-blur.html">http://datamaskinen.medeltiden.org/emacs-= save-buffers-on-window-blur.html</a> (dated 22 January, and last I searched= was December... figures)<br> <br></div><div>Just tested it. Works too.<br></div><div><br></div>Ian :)<br= ></div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On Mon= , Apr 29, 2013 at 7:04 PM, Ian van der Neut <span dir=3D"ltr"><<a href= =3D"mailto:ivdneut@gmail.com" target=3D"_blank">ivdneut@gmail.com</a>></= span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div><div><div>Not sure if = it's small, but here goes.<br><br></div>In vim, Sublime Text, and other= s (osx textmate I've been told) you can set an option that will save th= e 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 m= odule, but it would have to be implemented in the core C code itself.<br> <br></div>I would really like this option, since I am "frame oriented&= quot;. I tend to have quite a few frames open and use "focus follows m= ouse" which is available in any Linux desktop. I move my mouse to a te= rminal window to type 'make' or run the python/bash/what-have-you s= cript and I would like emacs to save at least the buffer of the frame I jus= t left and perhaps even all buffers (but since they wouldn't have focus= anymore, they'd already been saved anyway).<br> <br></div>Ian.<br></div><div class=3D"gmail_extra"><div><div class=3D"h5"><= br><br><div class=3D"gmail_quote">On Mon, Apr 29, 2013 at 6:21 PM, Bastien = <span dir=3D"ltr"><<a href=3D"mailto:bzg@altern.org" target=3D"_blank">b= zg@altern.org</a>></span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"><a href=3D"mailto:glyn.millington@gmail.com"= target=3D"_blank">glyn.millington@gmail.com</a> writes:<br> <br> > I suspect that one =A0reason for sticking with Xemacs now is lots of l= ittle<br> > customizations =A0and tweaks which don't easily transfer to Gnu Em= acs - the<br> > same reason why I wouldn't willingly swap my init.el for yours, be= cause<br> > it would change the way I work.<br> <br> I changed the subject -- maybe this thread is an opportunity to get a<br> list of XEmacs features that would be nice to have in GNU Emacs. =A0I'm= <br> not thinking of architectural differences, rather of small convenient<br> commands or options.<br> <span><font color=3D"#888888"><br> --<br> =A0Bastien<br> <br> </font></span></blockquote></div><br><br clear=3D"all"><br></div></div><spa= n class=3D"HOEnZb"><font color=3D"#888888">-- <br><div>One man's "= magic" is another man's engineering. "Supernatural" is a= null word.</div> <div>-- Excerpt from the notebooks of Lazarus Long, from Robert Heinlein= 9;s "Time Enough for Love"</div> </font></span></div> </blockquote></div><br><br clear=3D"all"><br>-- <br><div>One man's &quo= t;magic" is another man's engineering. "Supernatural" is= a null word.</div><div>-- Excerpt from the notebooks of Lazarus Long, from= Robert Heinlein's "Time Enough for Love"</div> </div> --047d7b3a7d92c6f85204db82fa8d--