From: phillip.lord@russet.org.uk (Phillip Lord)
To: emacs-devel@gnu.org
Subject: Re: bug#23365 and Org-mode for 25.1
Date: Sat, 30 Apr 2016 08:48:45 +0100 [thread overview]
Message-ID: <87pot7o7tu.fsf@russet.org.uk> (raw)
In-Reply-To: <m2k2jgun15.fsf@newartisans.com> (John Wiegley's message of "Fri, 29 Apr 2016 14:23:50 -0700")
[-- Attachment #1: Type: text/plain, Size: 824 bytes --]
John Wiegley <jwiegley@gmail.com> writes:
>>>>>> Phillip Lord <phillip.lord@russet.org.uk> writes:
>
>> I've submitted a bug recently on org-mode (#23365) which is present in
>> Emacs-25 head, but has been fixed in the org-mode on ELPA.
>
>> Is org-mode in core going to be sync'd before 25.1?
>
> No, I've spoken to the Org-mode maintainer about this, and it's too late in
> the game for such a large upgrade. Org 8.3 has some rather major changes, and
> we haven't had it in enough pretests to know what the impact will be now.
> However, it's welcome in 25.2.
Okay, no worries.
I've made a patch based on this commit:
http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=44c8cd7136e3fcd1e6bfa08895cac437b7a691fa
identifed by Kaushal Modi on the org-mode mailing list.
Is it okay to apply this backport to emacs-25
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-org-map-entries-Fix-org-agenda-prepare-buffers-call.patch --]
[-- Type: text/x-diff, Size: 1421 bytes --]
From 51d927a6479fdfca1ef58086d4fd70f394238f7d Mon Sep 17 00:00:00 2001
From: Phillip Lord <phillip.lord@newcastle.ac.uk>
Date: Sat, 30 Apr 2016 08:43:39 +0100
Subject: [PATCH] org-map-entries: Fix org-agenda-prepare-buffers call
* lisp/org.el (org-map-entries): Check that buffer-file-name is non-nil
before passing to org-agenda-prepare-buffers.
This is a backport of commit 44c8cd7136e3fcd1e6bfa08895cac437b7a691fa
from upstream org-mode. Addresses bug #23365.
---
lisp/org/org.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/org/org.el b/lisp/org/org.el
index 231daa9..61bcb45 100644
--- a/lisp/org/org.el
+++ b/lisp/org/org.el
@@ -15069,7 +15069,7 @@ org-map-entries
(if (not scope)
(progn
(org-agenda-prepare-buffers
- (list (buffer-file-name (current-buffer))))
+ (and buffer-file-name (list buffer-file-name)))
(setq res (org-scan-tags func matcher todo-only start-level)))
;; Get the right scope
(cond
@@ -15081,7 +15081,7 @@ org-map-entries
(setq scope (org-agenda-files t))
(setq scope (org-add-archive-files scope)))
((eq scope 'file)
- (setq scope (list (buffer-file-name))))
+ (setq scope (and buffer-file-name (list buffer-file-name))))
((eq scope 'file-with-archives)
(setq scope (org-add-archive-files (list (buffer-file-name))))))
(org-agenda-prepare-buffers scope)
--
2.8.1
next prev parent reply other threads:[~2016-04-30 7:48 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-25 12:59 bug#23372: 25.0.93; `text-quoting-style' missing from manual and from customize N. Jackson
2016-04-25 22:26 ` bug#23372: 25.0.93; text-quoting-style " Paul Eggert
2016-04-26 1:41 ` Drew Adams
2016-04-26 6:30 ` Eli Zaretskii
2016-04-27 0:02 ` John Wiegley
2016-04-27 6:43 ` Eli Zaretskii
2016-04-27 19:10 ` John Wiegley
2016-04-28 21:45 ` Kaushal Modi
2016-04-28 21:45 ` Kaushal Modi
2016-04-29 21:22 ` John Wiegley
2016-04-29 21:22 ` John Wiegley
2016-04-29 10:37 ` bug#23365 and Org-mode for 25.1 Phillip Lord
2016-04-29 21:23 ` John Wiegley
2016-04-30 7:48 ` Phillip Lord [this message]
2016-04-30 7:51 ` John Wiegley
2016-04-29 12:54 ` bug#23372: 25.0.93; text-quoting-style missing from manual and from customize Nicolas Petton
2016-04-29 12:54 ` Nicolas Petton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pot7o7tu.fsf@russet.org.uk \
--to=phillip.lord@russet.org.uk \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.