unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#19887: 24.4; Cannot kill buffer; Wrong type argument: overlayp, nil
@ 2015-02-17 16:04 Damian Nadales
  2015-02-17 19:25 ` Glenn Morris
  0 siblings, 1 reply; 4+ messages in thread
From: Damian Nadales @ 2015-02-17 16:04 UTC (permalink / raw)
  To: 19887

[-- Attachment #1: Type: text/plain, Size: 1444 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 8186 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#19887: 24.4; Cannot kill buffer; Wrong type argument: overlayp, nil
  2015-02-17 16:04 bug#19887: 24.4; Cannot kill buffer; Wrong type argument: overlayp, nil Damian Nadales
@ 2015-02-17 19:25 ` Glenn Morris
  2015-02-18  0:35   ` Alexis
       [not found]   ` <87k2zgm4z7.fsf@gmail.com>
  0 siblings, 2 replies; 4+ messages in thread
From: Glenn Morris @ 2015-02-17 19:25 UTC (permalink / raw)
  To: Damian Nadales; +Cc: 19887

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.)





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#19887: 24.4; Cannot kill buffer; Wrong type argument: overlayp, nil
  2015-02-17 19:25 ` Glenn Morris
@ 2015-02-18  0:35   ` Alexis
       [not found]   ` <87k2zgm4z7.fsf@gmail.com>
  1 sibling, 0 replies; 4+ messages in thread
From: Alexis @ 2015-02-18  0:35 UTC (permalink / raw)
  To: 19887


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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#19887: 24.4; Cannot kill buffer; Wrong type argument: overlayp, nil
       [not found]   ` <87k2zgm4z7.fsf@gmail.com>
@ 2015-02-18  1:12     ` Nicolas Goaziou
  0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2015-02-18  1:12 UTC (permalink / raw)
  To: Alexis; +Cc: 19887

Hello,

Alexis <flexibeast@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





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-02-18  1:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-17 16:04 bug#19887: 24.4; Cannot kill buffer; Wrong type argument: overlayp, nil Damian Nadales
2015-02-17 19:25 ` Glenn Morris
2015-02-18  0:35   ` Alexis
     [not found]   ` <87k2zgm4z7.fsf@gmail.com>
2015-02-18  1:12     ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).