From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Goaziou Newsgroups: gmane.emacs.bugs 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@nicolasgoaziou.fr> References: <87k2zgm4z7.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1424222068 10357 80.91.229.3 (18 Feb 2015 01:14:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Feb 2015 01:14:28 +0000 (UTC) Cc: 19887@debbugs.gnu.org To: Alexis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 18 02:14:15 2015 Return-path: Envelope-to: geb-bug-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 ) id 1YNtDR-0007EM-Bp for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Feb 2015 02:14:13 +0100 Original-Received: from localhost ([::1]:48008 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNtDQ-0003La-E0 for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Feb 2015 20:14:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNtDL-0003HR-Pi for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2015 20:14:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YNtDK-0003Dp-Uu for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2015 20:14:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55542) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNtDG-0003Ba-Lz; Tue, 17 Feb 2015 20:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YNtDG-0007NR-EP; Tue, 17 Feb 2015 20:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Nicolas Goaziou Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Resent-Date: Wed, 18 Feb 2015 01:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19887 X-GNU-PR-Package: emacs,org-mode X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 19887-submit@debbugs.gnu.org id=B19887.142422201328309 (code B ref 19887); Wed, 18 Feb 2015 01:14:02 +0000 Original-Received: (at 19887) by debbugs.gnu.org; 18 Feb 2015 01:13:33 +0000 Original-Received: from localhost ([127.0.0.1]:46782 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YNtCm-0007MW-9x for submit@debbugs.gnu.org; Tue, 17 Feb 2015 20:13:32 -0500 Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:49358) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YNtAf-0007JI-Th for 19887@debbugs.gnu.org; Tue, 17 Feb 2015 20:11:22 -0500 Original-Received: from mfilter16-d.gandi.net (mfilter16-d.gandi.net [217.70.178.144]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id 68D65172090; Wed, 18 Feb 2015 02:11:21 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter16-d.gandi.net Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by mfilter16-d.gandi.net (mfilter16-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id 938VSshQDcuU; Wed, 18 Feb 2015 02:11:20 +0100 (CET) X-Originating-IP: 91.224.148.150 Original-Received: from selenimh (unknown [91.224.148.150]) (Authenticated sender: mail@nicolasgoaziou.fr) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id CF59517208B; Wed, 18 Feb 2015 02:11:19 +0100 (CET) In-Reply-To: <87k2zgm4z7.fsf@gmail.com> (Alexis's message of "Wed, 18 Feb 2015 11:35:24 +1100") X-Mailman-Approved-At: Tue, 17 Feb 2015 20:13:29 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:99525 Archived-At: 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