all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: 5299@debbugs.gnu.org
Subject: bug#5299: custom-reevaluate-setting / custom-initialize-delay
Date: Wed, 24 Feb 2010 11:30:21 -0500	[thread overview]
Message-ID: <jwvy6iiy51k.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <BB975888A4A54378A5B1EFC90A3AE639@us.oracle.com> (Drew Adams's message of "Tue, 23 Feb 2010 21:30:53 -0800")

>>>>> "Drew" == Drew Adams <drew.adams@oracle.com> writes:

>> [ Bringing this back to #5299 where it belongs ]
>> 
>> > (setq message-send-mail-function 'mailclient-send-it)
>> >
>> > shell-command-to-string: Searching for program: no such 
>> > file or directory, /bin/bash
>> 
>> Can you get a backtrace of that?
>> [with (setq debug-on-error t) and if
>> that doesn't work with additionally (setq 
>> debug-ignored-errors nil) and/or
>> maybe even (setq debug-on-signal t)]
>> 
>> Also, can you explain why "bash" shows up here?  Do you have 
>> the envvar SHELL set to "/bin/bash" somehow?

> Yes, in my Windows settings (since I use Cygwin).

> With those 3 variables set, emacs -Q:

> Help > Send Bug Report

> Type "ffffffffff" as the subject.
[...]
> Starting over, emacs -Q, with only `debug-on-error' set:

> I get to buffer *mail to bug-gnu-emacs@gnu.org*. I type some text "xxxxxxxxxxx",
> then `C-c C-c', reply "yes". I get this backtrace:

> Debugger entered--Lisp error: (file-error "Searching for program" "no such file
> or directory" "/bin/bash")
>   call-process("/bin/bash" nil t nil "-c" "uncompface")
>   shell-command-to-string("uncompface")
>   (string-match "^0x" (shell-command-to-string "uncompface"))

Thanks, so I think the patch below is needed, can you try it to see if
it helps?

There's still another bug in sendmail.el where we use
custom-initialize-delay on a defcustom that's autoloaded (the problem
there being that autoloaded defcustoms aren't copied verbatim, so only
some of the defcustom features are supported for autoloaded defcustoms,
and currently custom-initialize-delay is not one of them), but this
patch may be sufficient for you and seems useful in anny case.


        Stefan


=== modified file 'lisp/gnus/gnus-art.el'
--- lisp/gnus/gnus-art.el	2010-01-13 08:35:10 +0000
+++ lisp/gnus/gnus-art.el	2010-02-24 16:25:07 +0000
@@ -1422,8 +1422,12 @@
        (gnus-image-type-available-p 'xbm)
        (if (featurep 'xemacs)
 	   (featurep 'xface)
+	 (condition-case nil
 	 (and (string-match "^0x" (shell-command-to-string "uncompface"))
-	      (executable-find "icontopbm")))
+                  (executable-find "icontopbm"))
+           ;; shell-command-to-string may signal an error, e.g. if
+           ;; shell-file-name is not found.
+           (error nil)))
        'head)
   "Display X-Face headers.
 Valid values are nil and `head'.








  reply	other threads:[~2010-02-24 16:30 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-23  1:41 custom-reevaluate-setting / custom-initialize-delay David Reitter
2010-02-23 18:04 ` Glenn Morris
2010-02-23 18:40   ` David Reitter
2010-02-24  1:14     ` Glenn Morris
2010-02-24  3:47       ` David Reitter
2010-02-26  4:45       ` Glenn Morris
2010-02-23 18:42   ` Eli Zaretskii
2010-02-23 18:49   ` Eli Zaretskii
2010-02-23 19:08     ` Drew Adams
2010-02-24  4:14       ` Eli Zaretskii
2010-02-24  4:19         ` Drew Adams
2010-02-24  3:09     ` Glenn Morris
2010-02-24  4:15       ` Eli Zaretskii
2010-02-24  4:15       ` Drew Adams
2010-02-24  5:11         ` bug#5299: " Stefan Monnier
2010-02-24  5:30           ` Drew Adams
2010-02-24 16:30             ` Stefan Monnier [this message]
2010-02-24 17:35               ` Drew Adams
2010-02-24 18:51                 ` bug#5299: Default mailer (was: custom-reevaluate-setting / custom-initialize-delay) Stefan Monnier
2010-02-24 20:15                   ` Lennart Borgman
2010-02-24 21:13                   ` Drew Adams
2010-02-24 21:35                     ` bug#5299: Default mailer Stefan Monnier
2010-02-27  3:45                       ` bug#5299: Glenn Morris
2010-02-24  7:15         ` custom-reevaluate-setting / custom-initialize-delay Reiner Steib
2010-02-24 16:29           ` Drew Adams
2010-02-25  4:21             ` Eli Zaretskii
2010-02-25  6:47               ` Drew Adams
2010-02-26 14:26                 ` Stefan Monnier
2010-02-26 15:14                   ` Drew Adams
2010-02-26 17:34                     ` Stefan Monnier
2010-02-26 17:54                       ` Drew Adams
2010-02-24  4:17       ` Eli Zaretskii
2010-02-24  4:22         ` Drew Adams
2010-02-24  4:26           ` Drew Adams
2010-02-24  9:46             ` Lennart Borgman
2010-02-24 16:45 ` Stefan Monnier
2010-02-24 18:58   ` Glenn Morris

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=jwvy6iiy51k.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=5299@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    /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.