unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
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


  reply	other threads:[~2016-04-30  7:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87wpnlq1xu.fsf@gmail.com>
     [not found] ` <eb307773-2842-57fc-1246-962f9f5eda84@cs.ucla.edu>
     [not found]   ` <cd466f56-0733-48c2-8431-d082ae877014@default>
     [not found]     ` <83lh40287l.fsf@gnu.org>
     [not found]       ` <m2twinhqcz.fsf@newartisans.com>
     [not found]         ` <83eg9rzh3q.fsf@gnu.org>
2016-04-27 19:10           ` bug#23372: 25.0.93; text-quoting-style missing from manual and from customize John Wiegley
2016-04-28 21:45             ` Kaushal Modi
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

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

  List information: https://www.gnu.org/software/emacs/

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