GNU bug report logs - #37890
27.0.50; Org-mode: org-capture and final newline

Previous Next

Package: emacs;

Reported by: Michael Heerdegen <michael_heerdegen <at> web.de>

Date: Wed, 23 Oct 2019 16:01:01 UTC

Severity: normal

Found in version 27.0.50

Done: Bastien <bzg <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 37890 in the body.
You can then email your comments to 37890 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#37890; Package emacs. (Wed, 23 Oct 2019 16:01:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Michael Heerdegen <michael_heerdegen <at> web.de>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 23 Oct 2019 16:01:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.50; Org-mode: org-capture and final newline
Date: Wed, 23 Oct 2019 18:00:12 +0200
Hello,

this happens quite often to me and scrambles my todo.org:

I want to capture an APPT with `org-capture'.  I the pop-up buffer to
edit the item I move the date to the second line and add text after the
date (personal preference).  That loses the final newline in
CAPTURE-todo.org.  As a result, the headline of the item following the
item to be inserted gets appended to the last line of the text:

** APPT Abc
   <2019-10-23 Mi>
text... ** APPT 8:30 Important Appointment

breaking the whole item.  The user should somehow be prevented from that
happening.

TIA,

Michael.


In GNU Emacs 27.0.50 (build 27, x86_64-pc-linux-gnu, GTK+ Version 3.24.12)
 of 2019-10-23 built on drachen
Repository revision: 39ba44f18445c7759de5ac91ce25e53123c2abeb
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12004000
System Description: Debian GNU/Linux bullseye/sid





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#37890; Package emacs. (Wed, 30 Oct 2019 17:50:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: bug-gnu-emacs <at> gnu.org
Cc: 37890 <at> debbugs.gnu.org
Subject: Re: 27.0.50; Org-mode: org-capture and final newline
Date: Wed, 30 Oct 2019 18:49:37 +0100
Michael Heerdegen <michael_heerdegen <at> web.de> writes:

> ** APPT Abc
>    <2019-10-23 Mi>
> text... ** APPT 8:30 Important Appointment

Note that this can also happen if you just paste something info the last
line of the capture buffer.  Bad.

Another way to damage your notes file: kill the capture buffer.  If you
realize that you should have hit C-c C-k instead, it's too late: you
have to revert the partial addition to the notes org file manually.

Killing the buffer should clean up automatically instead (using
`kill-buffer-hook' presumably).


Thanks,

Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#37890; Package emacs. (Wed, 30 Oct 2019 17:50:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#37890; Package emacs. (Thu, 13 Feb 2020 08:45:02 GMT) Full text and rfc822 format available.

Message #14 received at 37890 <at> debbugs.gnu.org (full text, mbox):

From: Bastien <bzg <at> gnu.org>
To: Michael Heerdegen <michael_heerdegen <at> web.de>
Cc: 37890 <at> debbugs.gnu.org
Subject: Re: bug#37890: 27.0.50; Org-mode: org-capture and final newline
Date: Thu, 13 Feb 2020 09:44:22 +0100
Hi Michael,

Michael Heerdegen <michael_heerdegen <at> web.de> writes:

> this happens quite often to me and scrambles my todo.org:

This may have been fixed in latest Org; please check out 9.3.6 and
confirm if it is fixed, so that I can close this bug.

Thanks,

-- 
 Bastien




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#37890; Package emacs. (Fri, 21 Feb 2020 19:25:01 GMT) Full text and rfc822 format available.

Message #17 received at 37890 <at> debbugs.gnu.org (full text, mbox):

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Bastien <bzg <at> gnu.org>
Cc: 37890 <at> debbugs.gnu.org
Subject: Re: bug#37890: 27.0.50; Org-mode: org-capture and final newline
Date: Fri, 21 Feb 2020 20:24:16 +0100
Bastien <bzg <at> gnu.org> writes:

> > this happens quite often to me and scrambles my todo.org:
>
> This may have been fixed in latest Org; please check out 9.3.6 and
> confirm if it is fixed, so that I can close this bug.

I'm using 9.3 from Emacs master, and it seems to be fixed there as well,
for already quite some time.  Has there been any related change in more
recent org versions that I should test?

Thanks,

Michael.




Reply sent to Bastien <bzg <at> gnu.org>:
You have taken responsibility. (Sat, 22 Feb 2020 15:20:01 GMT) Full text and rfc822 format available.

Notification sent to Michael Heerdegen <michael_heerdegen <at> web.de>:
bug acknowledged by developer. (Sat, 22 Feb 2020 15:20:02 GMT) Full text and rfc822 format available.

Message #22 received at 37890-done <at> debbugs.gnu.org (full text, mbox):

From: Bastien <bzg <at> gnu.org>
To: Michael Heerdegen <michael_heerdegen <at> web.de>
Cc: 37890-done <at> debbugs.gnu.org
Subject: Re: bug#37890: 27.0.50; Org-mode: org-capture and final newline
Date: Sat, 22 Feb 2020 16:19:09 +0100
Hello Michael,

Michael Heerdegen <michael_heerdegen <at> web.de> writes:

> Bastien <bzg <at> gnu.org> writes:
>
>> > this happens quite often to me and scrambles my todo.org:
>>
>> This may have been fixed in latest Org; please check out 9.3.6 and
>> confirm if it is fixed, so that I can close this bug.
>
> I'm using 9.3 from Emacs master, and it seems to be fixed there as well,
> for already quite some time.

Thanks for confirming, I'm closing this now.

> Has there been any related change in more
> recent org versions that I should test?

Well, quite a few, you can read ORG-NEWS to see what you need to test:
https://code.orgmode.org/bzg/org-mode/raw/master/etc/ORG-NEWS

-- 
 Bastien




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 22 Mar 2020 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 173 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.