GNU bug report logs -
#19887
24.4; Cannot kill buffer; Wrong type argument: overlayp, nil
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 19887 in the body.
You can then email your comments to 19887 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#19887
; Package
emacs
.
(Tue, 17 Feb 2015 16:47:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Damian Nadales <damian.nadales <at> asml.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 17 Feb 2015 16:47:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello,
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.
If you need further information please do not hesitate in contacting me.
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.
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#19887
; Package
emacs
.
(Tue, 17 Feb 2015 19:26:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 19887 <at> debbugs.gnu.org (full text, mbox):
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.
Please do
M-x toggle-debug-on-error
repeat the problem, and post the resulting backtrace.
(I can't reproduce it.)
Information forwarded
to
bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org
:
bug#19887
; Package
emacs,org-mode
.
(Wed, 18 Feb 2015 00:36:02 GMT)
Full text and
rfc822 format available.
Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):
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.
Information forwarded
to
bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org
:
bug#19887
; Package
emacs,org-mode
.
(Wed, 18 Feb 2015 01:14:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 19887 <at> debbugs.gnu.org (full text, mbox):
Hello,
Alexis <flexibeast <at> 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
Information forwarded
to
emacs-orgmode <at> gnu.org
:
bug#19887
; Package
org-mode
.
(Wed, 18 Feb 2015 09:08:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 19887 <at> debbugs.gnu.org (full text, mbox):
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.
Information forwarded
to
emacs-orgmode <at> gnu.org
:
bug#19887
; Package
org-mode
.
(Thu, 19 Feb 2015 15:50:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 19887 <at> debbugs.gnu.org (full text, mbox):
> From: Damian Nadales <damian.nadales <at> asml.com>
> Date: Tue, 17 Feb 2015 16:04:54 +0000
>
> 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?
Information forwarded
to
emacs-orgmode <at> gnu.org
:
bug#19887
; Package
org-mode
.
(Fri, 20 Feb 2015 07:33:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 19887 <at> debbugs.gnu.org (full text, mbox):
> 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.
Information forwarded
to
emacs-orgmode <at> gnu.org
:
bug#19887
; Package
org-mode
.
(Fri, 20 Feb 2015 10:38:01 GMT)
Full text and
rfc822 format available.
Message #26 received at 19887 <at> debbugs.gnu.org (full text, mbox):
> From: Damian Nadales <damian.nadales <at> asml.com>
> CC: "19887 <at> debbugs.gnu.org" <19887 <at> debbugs.gnu.org>
> Date: Fri, 20 Feb 2015 07:32:12 +0000
>
> > 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?
Information forwarded
to
emacs-orgmode <at> gnu.org
:
bug#19887
; Package
org-mode
.
(Fri, 20 Feb 2015 11:20:02 GMT)
Full text and
rfc822 format available.
Message #29 received at 19887 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Damian Nadales <damian.nadales <at> 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 <mail <at> nicolasgoaziou.fr>
AuthorDate: Wed Feb 18 01:59:51 2015 +0100
Commit: Nicolas Goaziou <mail <at> 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
Information forwarded
to
emacs-orgmode <at> gnu.org
:
bug#19887
; Package
org-mode
.
(Fri, 20 Feb 2015 11:23:02 GMT)
Full text and
rfc822 format available.
Message #32 received at 19887 <at> debbugs.gnu.org (full text, mbox):
> From: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>
> Cc: Damian Nadales <damian.nadales <at> asml.com>, 19887 <at> debbugs.gnu.org, Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
> Date: Fri, 20 Feb 2015 12:20:15 +0100
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
> >> From: Damian Nadales <damian.nadales <at> 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.
Information forwarded
to
emacs-orgmode <at> gnu.org
:
bug#19887
; Package
org-mode
.
(Fri, 20 Feb 2015 12:18:01 GMT)
Full text and
rfc822 format available.
Message #35 received at 19887 <at> debbugs.gnu.org (full text, mbox):
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.
Information forwarded
to
emacs-orgmode <at> gnu.org
:
bug#19887
; Package
org-mode
.
(Fri, 20 Feb 2015 12:57:02 GMT)
Full text and
rfc822 format available.
Message #38 received at 19887 <at> debbugs.gnu.org (full text, mbox):
> > 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.
Information forwarded
to
emacs-orgmode <at> gnu.org
:
bug#19887
; Package
org-mode
.
(Fri, 01 Dec 2017 19:03:01 GMT)
Full text and
rfc822 format available.
Message #41 received at 19887 <at> debbugs.gnu.org (full text, mbox):
Hello,
Damian Nadales <damian.nadales <at> asml.com> writes:
> 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 Goaziou 0x80A93738
bug closed, send any further explanations to
19887 <at> debbugs.gnu.org and Damian Nadales <damian.nadales <at> asml.com>
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Fri, 01 Dec 2017 19:10:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 30 Dec 2017 12:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 7 years and 231 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.