From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: bug#19887: 24.4; Cannot kill buffer; Wrong type argument: overlayp, nil Date: Wed, 18 Feb 2015 02:12:31 +0100 Message-ID: <87iof0m39c.fsf__36314.9539138705$1424222079$gmane$org@nicolasgoaziou.fr> References: <87k2zgm4z7.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNtDJ-0003HL-Un for emacs-orgmode@gnu.org; Tue, 17 Feb 2015 20:14:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YNtDG-0003Bj-Ot for emacs-orgmode@gnu.org; Tue, 17 Feb 2015 20:14:05 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87k2zgm4z7.fsf@gmail.com> (Alexis's message of "Wed, 18 Feb 2015 11:35:24 +1100") 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: Alexis Cc: 19887@debbugs.gnu.org Hello, Alexis writes: > On 2015-02-18T06:25:57+1100, Glenn Morris said: > > GM> Damian Nadales wrote: > >>> - Run emacs -Q >>> - Create an org-mode file (i.e. ``myorgfile.org``) >>> - Insert the following text: >>> o #+BEGIN_SRC C++ >>> #+END_SRC >>> - Edit the source block by placing the cursor inside the SRC block. >>> - Start C++ mode (c++-mode) >>> - Try to kill the buffer. > > GM> Please do > > GM> M-x toggle-debug-on-error > > GM> repeat the problem, and post the resulting backtrace. (I can't > GM> reproduce it.) > > Running a manually compiled Emacs 24.4.1 on Debian Wheezy(+updates) > x86_64, and following the above steps, i can't reproduce this either. > > From the above description, i assume by the "Start C++ mode" line, > you're not moving the cursor inside the source block and then doing: > > C-c ' > > (i.e. `org-edit-special`) in order to open a c++-mode buffer for > editing the block contents? This should be fixed. Thank you. However, it is not a good idea to change major mode in an edit buffer, as it removes local variables used to synchronize with the source block. Proper major mode, when non-trivial, should be defined with ``org-src-lang-modes' instead. Regards, -- Nicolas Goaziou