From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Alekseyev Subject: Re: Org-edit-special and C-x C-s strange behavior Date: Fri, 13 Jan 2012 14:58:22 -0600 Message-ID: References: <87pqeqb76j.fsf@ucl.ac.uk> <878vlem00k.fsf@med.uni-goettingen.de> <87zkdtuwc3.fsf@ucl.ac.uk> <87vcohgrdc.fsf@med.uni-goettingen.de> <30ae09b29d262e6156ec9818df085441@mail.rickster.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RloCi-0006Rd-CG for emacs-orgmode@gnu.org; Fri, 13 Jan 2012 15:58:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RloCe-0006EA-BI for emacs-orgmode@gnu.org; Fri, 13 Jan 2012 15:58:28 -0500 Received: from mail-pz0-f41.google.com ([209.85.210.41]:48159) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RloCd-0006E4-UY for emacs-orgmode@gnu.org; Fri, 13 Jan 2012 15:58:24 -0500 Received: by dadp12 with SMTP id p12so613995dad.0 for ; Fri, 13 Jan 2012 12:58:22 -0800 (PST) In-Reply-To: <30ae09b29d262e6156ec9818df085441@mail.rickster.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Emacs orgmode >>>>>>> >>>>>>> You still have to C-c ' to get back to the full buffer, mind you, b= ut >>>>>>> that's better, IMO, than changing the behaviour of such a fundament= al >>>>>>> key binding as C-x C-s. >>>>> >>>>> >>>>> It appears that this bug is Emacs-version dependent: it functions as >>>>> you describe with 23.2, but the buffer gets buried (with an error >>>>> message "basic-save-buffer: Wrong type argument: stringp, nil") in >>>>> 24.0.92. =A0Org mode is the current git HEAD. =A0I tried to step thro= ugh >>>>> basic-save-buffer in edebug, but I couldn't catch the error (I'm not >>>>> very experienced with edebug). =A0Can someone test this on Emacs 24 a= nd >>>>> confirm what I'm seeing? >>>> >>>> >>>> I am using 24.0.92 and I have no problems at all (just tried right >>>> now). >>>> >>>> One difference, however, could be the window configurations we >>>> use. =A0Specifically, I have >>>> >>>> =A0 =A0 =A0 (setq org-src-window-setup (quote current-window)) >> >> >> Yes, this works. It's also a more sensible default. However, it >> doesn't change the fact that there's a bug, it just switches to a case >> where the bug isn't triggered :) > > > It is also not triggered by the "other-window" option, which behaves more > like > "reorganize-frame" than "current-window" (emacs 24.0.92) Folks, I still think that the fact that buffer-file-name is not nil is a bug and should be fixed. If I'm wrong, can someone point out why this is so? I have seen many functions that test whether or not a buffer is visiting a file by checking buffer-file-name. For instance, if I wanted to enable autosave for org-src buffers, it would break since my make-auto-save-file-name checks whether a file is being visited. --Leo