[O] bug#19887: 24.4; Cannot kill buffer; Wrong type argument: overlayp, nil
Hello, Damian Nadaleswrites: > I must add that I discovered the bug by accident. Normally I don't > change the mode when editing an special org buffer. Since the issue is fixed, I'm closing this bug. Regards, -- Nicolas Goaziou0x80A93738
[O] bug#19887: 24.4; Cannot kill buffer; Wrong type argument: overlayp, nil
From: Nicolas Richard theonewiththeevill...@yahoo.fr Cc: Damian Nadales damian.nada...@asml.com, 19...@debbugs.gnu.org, Nicolas Goaziou m...@nicolasgoaziou.fr Date: Fri, 20 Feb 2015 12:20:15 +0100 Eli Zaretskii e...@gnu.org writes: From: Damian Nadales damian.nada...@asml.com That's weird. Which buffer are you killing, the Org buffer, or the new buffer that is created when pressing C-c ' inside the source block? Is the latter the one I cannot kill. There was no C-c ' in the recipe you posted. What is the full recipe to reproduce the problem, please? PMJI, but at http://permalink.gmane.org/gmane.emacs.orgmode/95159, Nicolas Goaziou said This should be fixed. Perhaps this bug report can simply be closed then ? If it's fixed, please close it.
[O] bug#19887: 24.4; Cannot kill buffer; Wrong type argument: overlayp, nil
From: Damian Nadales damian.nada...@asml.com CC: 19...@debbugs.gnu.org 19...@debbugs.gnu.org Date: Fri, 20 Feb 2015 07:32:12 + I cannot reproduce this. I tried both Emacs 24.4 and the pretest of 24.5. In both cases, Emacs asks me whether to kill a buffer that is modified, and once I answer YES, the buffer is killed. [Damian Nadales] That's weird. Which buffer are you killing, the Org buffer, or the new buffer that is created when pressing C-c ' inside the source block? Is the latter the one I cannot kill. There was no C-c ' in the recipe you posted. What is the full recipe to reproduce the problem, please?
[O] bug#19887: 24.4; Cannot kill buffer; Wrong type argument: overlayp, nil
Eli Zaretskii e...@gnu.org writes: From: Damian Nadales damian.nada...@asml.com That's weird. Which buffer are you killing, the Org buffer, or the new buffer that is created when pressing C-c ' inside the source block? Is the latter the one I cannot kill. There was no C-c ' in the recipe you posted. What is the full recipe to reproduce the problem, please? PMJI, but at http://permalink.gmane.org/gmane.emacs.orgmode/95159, Nicolas Goaziou said This should be fixed. Perhaps this bug report can simply be closed then ? IIUC, he fixed it in: --8---cut here---start-8--- Commit c41bbc577e81e9fa5bab2509a8141189e45fe6c7 References: origin/maint Author: Nicolas Goaziou m...@nicolasgoaziou.fr AuthorDate: Wed Feb 18 01:59:51 2015 +0100 Commit: Nicolas Goaziou m...@nicolasgoaziou.fr CommitDate: Wed Feb 18 01:59:51 2015 +0100 Fix Wrong type argument: overlayp * lisp/org-src.el (org-src-mode-configure-edit-buffer): Fix Wrong type argument: overlayp. Changing major mode in a source edit buffer resets local variables used to link it to source buffer. As a consequence, overlay in source buffer can no longer be found nor deleted. --8---cut here---end---8--- -- Nicolas Richard
Re: [O] bug#19887: 24.4; Cannot kill buffer; Wrong type argument: overlayp, nil
On 2015-02-20T18:32:12+1100, Damian Nadales said: DN That's weird. Which buffer are you killing, the DN Org buffer, or the new buffer that is created when pressing C-c ' DN inside the source block? Is the latter the one I cannot kill. DN I've only installed packages through the emacs DN package manager, and Org mode was not one of them. The command DN ``org-version`` reports: DN Org-mode version 8.2.10 (release_8.2.10 @ DN /home/dnadales/opt/share/emacs/24.4/lisp/org/) Having thought about it a bit, i seem to remember that a while back, i had the same issue as the one you're currently experiencing. (Even though, as i noted above, i can't reproduce it my current setup, a manually compiled 24.4.1 on Debian Wheezy(+updates) x86_64.) Unfortunately, i can't remember what made the problem go away; the only two things that come to mind are: * installing and using Org from the orgmode.org ELPA, i.e. (add-to-list 'package-archives '(org . http://orgmode.org/elpa/;) t) or * removing existing Org-related byte-compiled files (i.e. *.elc files), so that they got regenerated. Alexis.
[O] bug#19887: 24.4; Cannot kill buffer; Wrong type argument: overlayp, nil
PMJI, but at http://permalink.gmane.org/gmane.emacs.orgmode/95159, Nicolas Goaziou said This should be fixed. Perhaps this bug report can simply be closed then ? If it's fixed, please close it. [Damian Nadales] Thanks for the fix. I must add that I discovered the bug by accident. Normally I don't change the mode when editing an special org buffer. Best, Damian. -- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. Unless explicitly stated otherwise in the body of this communication or the attachment thereto (if any), the information is provided on an AS-IS basis without any express or implied warranties or liabilities. To the extent you are relying on this information, you are doing so at your own risk. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. The sender nor the company/group of companies he or she represents shall be liable for the proper and complete transmission of the information contained in this communication, or for any delay in its receipt.
[O] bug#19887: 24.4; Cannot kill buffer; Wrong type argument: overlayp, nil
Hi Eli, [Damian Nadales] That's weird. Which buffer are you killing, the Org buffer, or the new buffer that is created when pressing C-c ' inside the source block? Is the latter the one I cannot kill. There was no C-c ' in the recipe you posted. [Damian Nadales] No, it wasn't. Sorry for that. I replied to Glenn Morris yesterday, mentioning these extra details. What is the full recipe to reproduce the problem, please? [Damian Nadales] So the recipe full recipe is: - launch emacs -Q - Create a buffer ``myorgfile.org`` - Insert the following text: #+BEGIN_SRC C++ #+END_SRC - Position the cursor in the source code block (between the BEGIN and END directives) - Press C-c ' (this will open a new buffer) - Perform M-x c++-mode in the new buffer - C-x k (kill the newly created buffer) - You should see the error message now. Let me know if there is anything else I could do. Sorry for the vagueness in my first instructions. Best regards, Damian. -- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. Unless explicitly stated otherwise in the body of this communication or the attachment thereto (if any), the information is provided on an AS-IS basis without any express or implied warranties or liabilities. To the extent you are relying on this information, you are doing so at your own risk. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. The sender nor the company/group of companies he or she represents shall be liable for the proper and complete transmission of the information contained in this communication, or for any delay in its receipt.
[O] bug#19887: 24.4; Cannot kill buffer; Wrong type argument: overlayp, nil
From: Damian Nadales damian.nada...@asml.com Date: Tue, 17 Feb 2015 16:04:54 + Running Emacs 24.4, compiled from source I found I cannot kill a buffer when performing these steps: - 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. I cannot reproduce this. I tried both Emacs 24.4 and the pretest of 24.5. In both cases, Emacs asks me whether to kill a buffer that is modified, and once I answer YES, the buffer is killed. Is it possible that you are using Org mode from the Org repository, not the one bundled with Emacs?
[O] bug#19887: 24.4; Cannot kill buffer; Wrong type argument: overlayp, nil
I cannot reproduce this. I tried both Emacs 24.4 and the pretest of 24.5. In both cases, Emacs asks me whether to kill a buffer that is modified, and once I answer YES, the buffer is killed. [Damian Nadales] That's weird. Which buffer are you killing, the Org buffer, or the new buffer that is created when pressing C-c ' inside the source block? Is the latter the one I cannot kill. Is it possible that you are using Org mode from the Org repository, not the one bundled with Emacs? [Damian Nadales] I've only installed packages through the emacs package manager, and Org mode was not one of them. The command ``org-version`` reports: Org-mode version 8.2.10 (release_8.2.10 @ /home/dnadales/opt/share/emacs/24.4/lisp/org/) I don't know if there is any other information I could give. In any case thanks for your time. -- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. Unless explicitly stated otherwise in the body of this communication or the attachment thereto (if any), the information is provided on an AS-IS basis without any express or implied warranties or liabilities. To the extent you are relying on this information, you are doing so at your own risk. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. The sender nor the company/group of companies he or she represents shall be liable for the proper and complete transmission of the information contained in this communication, or for any delay in its receipt.
[O] bug#19887: 24.4; Cannot kill buffer; Wrong type argument: overlayp, nil
Hi Glenn, 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. [Damian Nadales] By the way, here editing should be done by placing the cursor in the org buffer ``myorgfile.org``, and then pressing C-' to edit the source code in a different buffer. And this is the buffer that cannot be killed. - Start C++ mode (c++-mode) - Try to kill the buffer. Please do M-x toggle-debug-on-error repeat the problem, and post the resulting backtrace. (I can't reproduce it.) [Damian Nadales] This is what I got. Debugger entered--Lisp error: (wrong-type-argument overlayp nil) delete-overlay(nil) #[nil \301!\207 [org-edit-src-overlay delete-overlay] 2]() kill-buffer(*Org Src myorgfile.org[ c++ ]*) call-interactively(kill-buffer nil nil) command-execute(kill-buffer) Thanks for your help. -- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. Unless explicitly stated otherwise in the body of this communication or the attachment thereto (if any), the information is provided on an AS-IS basis without any express or implied warranties or liabilities. To the extent you are relying on this information, you are doing so at your own risk. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. The sender nor the company/group of companies he or she represents shall be liable for the proper and complete transmission of the information contained in this communication, or for any delay in its receipt.
[O] bug#19887: 24.4; Cannot kill buffer; Wrong type argument: overlayp, nil
Hello, Alexis flexibe...@gmail.com 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
[O] bug#19887: 24.4; Cannot kill buffer; Wrong type argument: overlayp, nil
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? Alexis.