From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84469 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general,gmane.emacs.help Subject: eval'ing message-use-idna defcustom hangs emacs Date: Wed, 23 Apr 2014 10:04:50 +0800 Message-ID: <87zjjcdcn1.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1398218561 15245 80.91.229.3 (23 Apr 2014 02:02:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Apr 2014 02:02:41 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: ding@gnus.org Original-X-From: ding-owner+M32715@lists.math.uh.edu Wed Apr 23 04:02:33 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WcmW9-0007gy-BQ for ding-account@gmane.org; Wed, 23 Apr 2014 04:02:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1WcmVf-0000q7-Kl; Tue, 22 Apr 2014 21:02:03 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1WcmVd-0000pv-Uh for ding@lists.math.uh.edu; Tue, 22 Apr 2014 21:02:01 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1WcmVc-0005gW-Jj for ding@lists.math.uh.edu; Tue, 22 Apr 2014 21:02:01 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1WcmVa-0002Ao-Hj for ding@gnus.org; Wed, 23 Apr 2014 04:01:58 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WcmVZ-0007EC-ND for ding@gnus.org; Wed, 23 Apr 2014 04:01:57 +0200 Original-Received: from 111.197.154.137 ([111.197.154.137]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Apr 2014 04:01:57 +0200 Original-Received: from eric by 111.197.154.137 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Apr 2014 04:01:57 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 48 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 111.197.154.137 User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:oPywALXyxdG35Xq9QYpM3t5DrMk= X-Spam-Score: -1.4 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84469 gmane.emacs.help:97316 Archived-At: 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(# 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