Gnus development mailing list
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: ding@gnus.org
Cc: help-gnu-emacs@gnu.org
Subject: eval'ing message-use-idna defcustom hangs emacs
Date: Wed, 23 Apr 2014 10:04:50 +0800	[thread overview]
Message-ID: <87zjjcdcn1.fsf@ericabrahamsen.net> (raw)

Yesterday, emacs started hanging when I loaded gnus. The problem turned
out to be this defcustom from message.el:

;; (defcustom message-use-idna (and (condition-case nil (require 'idna)
;; 				   (file-error))
;; 				 (mm-coding-system-p 'utf-8)
;; 				 (executable-find idna-program)
;; 				 (string= (idna-to-ascii "räksmörgås")
;; 					  "xn--rksmrgs-5wao1o")
;; 				 t)
;;   "Whether to encode non-ASCII in domain names into ASCII according to IDNA.
;; GNU Libidn, and in particular the elisp package \"idna.el\" and
;; the external program \"idn\", must be installed for this
;; functionality to work."
;;   :version "22.1"
;;   :group 'message-headers
;;   :link '(custom-manual "(message)IDNA")
;;   :type '(choice (const :tag "Ask" ask)
;; 		 (const :tag "Never" nil)
;; 		 (const :tag "Always" t)))

idna can be required, and the executable is found (/usr/bin/idn).
Archlinux's libidn package is at 1.28-2. I'm using git gnus and
emacs-version "24.3.1". I don't think anything has changed recently.

It seems that the process call to idna never returns. I set
toggle-debug-on-quit, and hit C-g during the hang, and get this
backtrace:

Debugger entered--Lisp error: (quit)
  accept-process-output(#<process idna> 1)
  (while (and (eq (process-status idna-to-ascii-process) (quote run)) (null idna-to-ascii-response)) (accept-process-output idna-to-ascii-process 1))
  idna-to-ascii-response()
  (setq string (idna-to-ascii-response))
  (if (null proc) (error "Cannot start idn application (to-ascii)") (idna-to-ascii-response-clear) (process-send-string proc (concat str "\n")) (setq string (idna-to-ascii-response)) (if (and string (string= (substring string (1- (length string))) "\n")) (substring string 0 (1- (length string))) string))
  (let ((proc (idna-to-ascii-process)) string) (if (null proc) (error "Cannot start idn application (to-ascii)") (idna-to-ascii-response-clear) (process-send-string proc (concat str "\n")) (setq string (idna-to-ascii-response)) (if (and string (string= (substring string (1- (length string))) "\n")) (substring string 0 (1- (length string))) string)))
  idna-to-ascii("räksmörgås")
  eval((idna-to-ascii "räksmörgås") nil)
  eval-last-sexp-1(nil)
  eval-last-sexp(nil)
  call-interactively(eval-last-sexp nil nil)

I've just commented out the defcustom and set the variable directly to
t. That seems to work, but I hope someone can shed some light on the
above!

Thanks,
Eric




             reply	other threads:[~2014-04-23  2:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-23  2:04 Eric Abrahamsen [this message]
2015-01-28  6:12 ` Lars Ingebrigtsen
2015-01-28 15:32   ` Eli Zaretskii
2015-01-29 22:36     ` Jason L Tibbitts III
     [not found]     ` <mailman.18939.1422571379.1147.help-gnu-emacs@gnu.org>
2015-01-29 23:36       ` Lars Magne Ingebrigtsen
2015-01-30  2:42         ` Eric Abrahamsen

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=87zjjcdcn1.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=ding@gnus.org \
    --cc=help-gnu-emacs@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).