Don't create marker if target is entire file.
commit4273e50ab703ea673e51ce57b7928731bd1765d3
authorDavid Maus <dmaus@ictsoc.de>
Tue, 6 Jul 2010 00:28:34 +0000 (6 00:28 +0000)
committerCarsten Dominik <carsten.dominik@gmail.com>
Tue, 6 Jul 2010 06:55:02 +0000 (6 08:55 +0200)
treebb2adbb9709c959c06ebdeebec79f8d94931bf10
parent6d889cc363c9fd8bb23b973ddd05505892b7faeb
Don't create marker if target is entire file.

* org-agenda.el (org-agenda-bulk-action): Don't create marker for
position if target is entire file.

If the target of a bulk refile operation is the entire file,
`org-refile-get-location' returns nil for the refile position.
Creating a marker for the target file's buffer at position nil returns
a marker that points nowhere (Cf. GNU Emacs Lisp Reference Manual,
31.6).  `org-refile' adds headings to level 1 if the target position
for the target file is nil -- and hence a marker that points nowhere
is not nil, tries to jump to nowhere.
lisp/org-agenda.el