From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/88235 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.gnus.general Subject: Re: Gnorb and org-refile-use-outline-path Date: Fri, 09 Nov 2018 03:43:58 +0100 Message-ID: <87in17nf69.fsf@web.de> References: <8736sebxyt.fsf@web.de> <87o9b2wwvr.fsf@ericabrahamsen.net> <87k1lpixdm.fsf@web.de> <875zx9wl65.fsf@ericabrahamsen.net> <87tvkt1m6b.fsf@web.de> <87in19s8i2.fsf@ericabrahamsen.net> <87va59s7ci.fsf@web.de> <87bm6zscab.fsf@ericabrahamsen.net> <874lcrsbw8.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1541731400 14018 195.159.176.226 (9 Nov 2018 02:43:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 9 Nov 2018 02:43:20 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: ding@gnus.org To: Eric Abrahamsen Original-X-From: ding-owner+M36445@lists.math.uh.edu Fri Nov 09 03:43:16 2018 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gKwlP-0003Tn-WF for ding-account@gmane.org; Fri, 09 Nov 2018 03:43:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.90_1) (envelope-from ) id 1gKwmc-0006qz-Ke; Thu, 08 Nov 2018 20:44:30 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1gKwmS-0006mx-PS for ding@lists.math.uh.edu; Thu, 08 Nov 2018 20:44:20 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) (envelope-from ) id 1gKwmQ-0000SP-Q1 for ding@lists.math.uh.edu; Thu, 08 Nov 2018 20:44:20 -0600 Original-Received: from mout.web.de ([217.72.192.78]) by quimby.gnus.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gKwmO-0001hA-NV for ding@gnus.org; Fri, 09 Nov 2018 03:44:16 +0100 Original-Received: from drachen.dragon ([94.218.210.177]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0M3BZj-1fTfUu2N1z-00ssHY; Fri, 09 Nov 2018 03:43:59 +0100 In-Reply-To: <874lcrsbw8.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Thu, 08 Nov 2018 09:43:35 -0800") X-Provags-ID: V03:K1:YA7vcR8nkxK0dP/HcXVkUgz30eoNUpG8WvocFoFN5dNoI5Mx/Uj fEOOJC0+R+ODpDcqE22Lam6pEYhwhS1cvvRqpJu/tJPuQwO5GGIFE7owo+Q7NqOocxFpNc7 Cx/qlm0PN4IX9YZ/KohoVl7Bu+Rkt6Xs1nJP8KyY5gXHxOV2lq4auqL//Q9ruoVHcEvMXP9 6l7bBA4GEvfwZIPjdpm5g== X-UI-Out-Filterresults: notjunk:1;V01:K0:koPZkttY+sE=:r+a7BfCgooA/9i1OjhlNBV 0EpH9+Xb8JymDsCIqEemWLzg/ytjVsxpFUaToF5uItVYJmppJQO4oI/SlcXNTlYaCodfrEDWK tWKB55UG6cc9Ti/BPFuhErB/XCLX0NX4V2qo3324/0+bDxz2N6wCszp2z2C+u7oOmvuOTieh6 5Bs1jjyJPjrYdwYkfuot1DkichZPsTqiLufEY3BuKteGOfRennuZQm5W7Z1J6LaMgkOpSsjzq sYdPgF+e9CqU3kuyQg62k9xnEvyNI9KfZOHMN1cIIs6OWYXVbwbZhWdrA/WbnHqFuFmL28dEN i3igQFMgPggpmlucLFW+osPE6cvzcZSEUM0UfinKcBGvOXkufciNgn4ngsu7WI4ntlck119YB +Vt3ZlceUUt/z5hamL4qNQlLuPb4L3hdrRl4duPIJOy+OZc1b/Yg+f15g0tMThYQXRIGiWlHO U5FX/cqQTQv5HdWrNl6qzS9+mjwAAiOBAvrRQ5NV5hH7zK8EPrbEy9Ta7JSKPOUq9rskjlx/O wZ9Oztrhik1x42a08u9xTK2MyfzJo7MeZQTXuiBoGjdje/OgRgLxV0d8eEkNVVcOE9y/yqEp8 ZBE0zUoenHr+Z4bJRkCeo6vICSdAJVVPiKPveLTOwFWVZuKoQm5ny7UgjeqaOKN/U0N7JH71T jOr74FQ7hgQQbFGZeWGKqkRZoFkVyBjj3ZMuO50p7TVPzaT2ovrCSbuMhDTRg7RrXFOXXVE6F Pwm7T37pwmVyN5Z8R4LI6aWeBW+9IGPKv4+0oPjj8aDF64eViRbvfEeJgNyrx/3+0knx6b1r X-Spam-Score: -2.9 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:88235 Archived-At: Eric Abrahamsen writes: > > So like this? > > > > (eval-after-load 'org > > (unless gnorb-gnus-refile-use-outline-path > > (setq gnorb-gnus-refile-use-outline-path > > org-refile-use-outline-path))) > > Quoted, of course.... (or just `with-eval-after-load'?). You can do that, but of course only if gnorb-gnus-refile-use-outline-path -> nil is not a significant value. Which, I guess, is in your case. There should still be a way for the user to set gnorb-gnus-refile-use-outline-path nil while having org-refile-use-outline-path non-nil. What I often do in my code instead is: I make such options have an extra dedicated value, say 'use-org-value-maybe, to mean, in this case, use the org value or 'file, for example And in the code, whenever the variable is referenced, I would use (let ((org-refile-use-outline-path (if (eq gnorb-gnus-refile-use-outline-path 'use-org-value-maybe) (or org-refile-use-outline-path 'file) gnorb-gnus-refile-use-outline-path))) code...) That's cleaner than silently changing values of options which can lead to confusion. You would want to make that dedicated value the default, obviously. Michael.