From mboxrd@z Thu Jan 1 00:00:00 1970 From: Markus Hauck Subject: Re: [PATCH] Fix: allow org-refile in goto mode from everywhere Date: Mon, 21 Apr 2014 19:59:32 +0200 Message-ID: <87y4yy7ed7.fsf@gmail.com> References: <878urhgh9y.fsf@gmail.com> <87oazwsfi8.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47223) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcIUo-00049q-Uz for emacs-orgmode@gnu.org; Mon, 21 Apr 2014 13:59:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WcIUj-0005Nw-GX for emacs-orgmode@gnu.org; Mon, 21 Apr 2014 13:59:10 -0400 In-reply-to: <87oazwsfi8.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Hi Bastien, I think you're right, sorry for any inconveniences ;) Bastien writes: > Hi Markus, > > Markus Hauck writes: > >> It seems like org-refile with the goto argument is no longer allowed >> From non org-mode buffers. > > I reverted your patch. > >> In commit 49da67d the condition was changed from: >> >> (unless goto ...) >> >> to: >> >> (unless (and goto (listp goto)) ...) >> >> where the condition of unless is only true for non-empty lists. > > That's in fact on purpose. If you want to use org-refile to go to > a location, use (org-refile '(4)), the '(4) emulates the universal > prefix argument. Note that > > With your patch, the prompt for org-refile (as (org-refile nil)) > was asking "Goto: " because (listp nil) is `t'. > > Let me know if I missed something. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJTVVyEAAoJEJY8eoendnVZA2AH/jB5BKrV6bummAKJAfuDBTPF pOPNGIeir4tgUNaOV9GJY8lxWUjasy1Ny2QIspaNLDMOWVduKdL1/S/89bly/7RF cOdiylnjjK+xyf7qb1KW0HPZ2m79yaXGd7IUH1gE5w0Mpnzp5vZWvbD87uCfV71z 3LfAH7m0R54FQlHfTFLc5rneJvpJFTsbe3Ss6IiDTLlPfIMY+yvXyDhkLQazGnol QiHQubQ9JvLOH7tI+tQv4FHGUrAEccUVFv8K1KiRvZQOFKDkmLbQhpOqNzXZlyxp yudGUEaNZbDoFVYw9zktl41dvKje/UWB5gxqi/WOZU2QB6AR/5aS9pADLmZzDYs= =WUPB -----END PGP SIGNATURE----- --=-=-=--