all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Joseph Mingrone <jrm@ftfl.ca>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: movemail location
Date: Sun, 10 Jun 2018 12:20:00 -0300	[thread overview]
Message-ID: <86zi02mzxb.fsf@phe.ftfl.ca> (raw)
In-Reply-To: <83a7s2sn4s.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 10 Jun 2018 17:59:47 +0300")

[-- Attachment #1: Type: text/plain, Size: 2190 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Joseph Mingrone <jrm@ftfl.ca>
>> Cc: emacs-devel@gnu.org
>> Date: Sat, 09 Jun 2018 23:45:33 -0300

>> >> Robert's suggestion [1] sounds reasonable.

>> >> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31737#15

>> > And mine doesn't?  If so, could you say why?

>> Let's make sure we are on the same page.

>> This is what Robert suggested.

>> "Perhaps gnus should check in 'exec-directory' first if
>> mail-source-movemail-program is nil, and then fall back to
>> 'executable-find'? Or perhaps we should just forget about 'our' movemail
>> and require people to install Mailutils.

>> I think you are suggesting that Gnus simply specify the executable name,
>> movemail, and PATH will take care of finding it.  Is that correct?
>> Assuming that works, that also seems reasonable.  The only possible
>> drawback could be for users who specify a value for
>> `mail-source-movemail-program'.  Won't that value be ignored?

> Sorry, I should have been more explicit.  My suggestion is to replace
> this:

> 		      (apply
> 		       'call-process
> 		       (append
> 			(list
> 			 (or mail-source-movemail-program
> 			     (expand-file-name "movemail" exec-directory))
> 			 nil errors nil from to)))))

> with this:

> 		      (apply
> 		       'call-process
> 		       (append
> 			(list
> 			 (or mail-source-movemail-program "movemail")
> 			 nil errors nil from to)))))

> Since call-process calls the moral equivalent of executable-find
> internally, calling executable-find during initialization is
> redundant: call-process will find movemail on exec-path; moreover,
> Robert's suggestion will not work if movemail was installed or moved
> after mail-source.el was loaded.

> Did I succeed to explain myself this time?

Yes, this is clear and seems reasonable.

The way things work now, if a user configures using --with-mailutils=no,
then he will be guaranteed by default [1] to be using Emacs' own
movemail installed under exec-directory.  This will change with your
suggestion.  I think that's reasonable, but we were just pointing out
that the default behaviour will change.

[1] Since mail-source-movemail-program default to nil

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

  reply	other threads:[~2018-06-10 15:20 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-09 17:02 movemail location Joseph Mingrone
2018-06-09 17:23 ` Paul Eggert
2018-06-09 17:30 ` Eli Zaretskii
2018-06-09 19:03   ` Joseph Mingrone
2018-06-09 19:24     ` Eli Zaretskii
2018-06-09 19:39       ` Joseph Mingrone
2018-06-10  2:31         ` Eli Zaretskii
2018-06-10  2:45           ` Joseph Mingrone
2018-06-10 14:59             ` Eli Zaretskii
2018-06-10 15:20               ` Joseph Mingrone [this message]
2018-06-11  8:31                 ` Robert Pluim
2018-06-14 22:34               ` Paul Eggert

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=86zi02mzxb.fsf@phe.ftfl.ca \
    --to=jrm@ftfl.ca \
    --cc=eliz@gnu.org \
    --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.