From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Devon Sean McCullough Newsgroups: gmane.emacs.bugs Subject: bug#12393: 24.1; run-hook-with-args-until-failure Date: Sun, 9 Sep 2012 20:37:36 +0800 Message-ID: <6A761754-032E-4368-8926-39FEC4197204@jovi.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1347194323 8114 80.91.229.3 (9 Sep 2012 12:38:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Sep 2012 12:38:43 +0000 (UTC) To: 12393@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 09 14:38:45 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TAgmh-0001LN-3E for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Sep 2012 14:38:43 +0200 Original-Received: from localhost ([::1]:35946 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAgmd-0002Kv-SL for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Sep 2012 08:38:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAgmZ-0002Kf-UD for bug-gnu-emacs@gnu.org; Sun, 09 Sep 2012 08:38:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TAgmY-0003J6-7P for bug-gnu-emacs@gnu.org; Sun, 09 Sep 2012 08:38:35 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40152) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAgmY-0003J0-2w for bug-gnu-emacs@gnu.org; Sun, 09 Sep 2012 08:38:34 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TAgn0-0003w8-8x for bug-gnu-emacs@gnu.org; Sun, 09 Sep 2012 08:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Devon Sean McCullough Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 Sep 2012 12:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12393 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.134719430415086 (code B ref -1); Sun, 09 Sep 2012 12:39:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Sep 2012 12:38:24 +0000 Original-Received: from localhost ([127.0.0.1]:49698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TAgmN-0003vH-UA for submit@debbugs.gnu.org; Sun, 09 Sep 2012 08:38:24 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46621) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TAgmJ-0003v7-RZ for submit@debbugs.gnu.org; Sun, 09 Sep 2012 08:38:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TAglp-0003F4-IU for submit@debbugs.gnu.org; Sun, 09 Sep 2012 08:37:50 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:45082) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAglp-0003F0-AL for submit@debbugs.gnu.org; Sun, 09 Sep 2012 08:37:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAgln-00025j-QN for bug-gnu-emacs@gnu.org; Sun, 09 Sep 2012 08:37:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TAglm-0003Ed-5S for bug-gnu-emacs@gnu.org; Sun, 09 Sep 2012 08:37:47 -0400 Original-Received: from gateway12.websitewelcome.com ([69.93.157.3]:58985) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAgll-0003EW-TE for bug-gnu-emacs@gnu.org; Sun, 09 Sep 2012 08:37:46 -0400 Original-Received: by gateway12.websitewelcome.com (Postfix, from userid 5007) id 31312B4ACE27E; Sun, 9 Sep 2012 07:37:46 -0500 (CDT) Original-Received: from leaf.websitewelcome.com (leaf.websitewelcome.com [174.121.85.66]) by gateway12.websitewelcome.com (Postfix) with ESMTP id 24015B4ACE25E for ; Sun, 9 Sep 2012 07:37:46 -0500 (CDT) Original-Received: from [119.122.79.5] (port=57474 helo=[192.168.1.104]) by leaf.websitewelcome.com with esmtps (TLSv1:AES128-SHA:128) (Exim 4.77) (envelope-from ) id 1TAglh-0006Wc-UE for bug-gnu-emacs@gnu.org; Sun, 09 Sep 2012 07:37:43 -0500 X-Mailer: Apple Mail (2.1084) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - leaf.websitewelcome.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jovi.net X-BWhitelist: no X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.1.104]) [119.122.79.5]:57474 X-Source-Auth: jovinet X-Email-Count: 1 X-Source-Cap: am92aW5ldDtkZXZvbjtsZWFmLndlYnNpdGV3ZWxjb21lLmNvbQ== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:64002 Archived-At: (let ((hook 'identity)) (run-hook-with-args-until-failure 'hook 42)) returns t but the doc falsely says 42: ... If the value is a function, it is called with the given arguments and its return value is returned. (let ((hook nil)) (run-hook-with-args-until-failure 'hook 42)) also returns t but the doc is improperly silent on the matter. (let ((hook '(identity not))) (run-hook-with-args-until-failure 'hook = 42)) (let ((hook '(not identity))) (run-hook-with-args-until-failure 'hook = 42)) (let ((hook '(not print))) (run-hook-with-args-until-failure 'hook 42)) all return nil, which is correct. (let ((hook '(print not))) (run-hook-with-args-until-failure 'hook 42)) outputs 42 and returns nil, which is correct. The doc should either correctly describe all three cases (function/nil/list) or not mention return values at all. I suggest =ABreturns nil if a hook function returns nil, otherwise returns t=BB or something like that. Peace --Devon P.S. My old return address, used *only* for this list, got spammed. I changed it but in the future please be more careful. In GNU Emacs 24.1.1 (x86_64-apple-darwin10.8.0, NS apple-appkit-1038.36) of 2012-06-22 on RA.local Windowing system distributor `Apple', version 10.3.1038 Configured using: `configure '--with-ns' 'CC=3Dgcc'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: Lisp Minor modes in effect: eldoc-mode: t display-time-mode: t slime-mode: t shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t temp-buffer-resize-mode: t line-number-mode: t transient-mark-mode: t Recent input: =20 l a m b d a SPC M-( x SPC 1 2 3 4 =20 =20 =20 =20 M-1 M-( i f M-( c o n s p SPC=20 M-) C-M-o M-( l i=20 s t SPC M-) C-M-t=20 M-^ C-M-a C-M-q C-j =20 =20 C-e C-M-k C-M-u M-) t C-M-x=20 C-q C-g C-j M-"=20 U A r t r t =20 c t u a l , SPC n o t SPC c o =20 d o c u m e n t e d , M-b M-b M-b A s SPC=20 i m p l e m e n t e d M-d =20 SPC a s =20 =20 . SPC - SPC n e w=20 w e b e =20 v e r SPC r =20 r e t u r n s SPC o n l y SPC t SPC o r SPC n i l =20 =20 M-b M-b M-b M-b=20 M-b M-b M-f M-f M-b C-y , SPC M-l M-b C-b =20 M-b M-b C-a M-c M-: M-p =20 =20 C-M-k ' i d=20 e n t i t y M-: M-p C-M-k C-g C-g M-x r e=20 p o r t SPC e Recent messages: Auto-saving... Mark set Auto-saving... t [2 times] Auto-saving...done =3D> EMACS-LISP:RUN-HOOK-WITH-ARGS-UNTIL-FAILURE Mark set Auto-saving...done t Quit Quit Load-path shadows: /Applications/Emacs.app/Contents/Resources/lisp/xml hides = /Users/devon/emacs/xml /Applications/Emacs.app/Contents/Resources/lisp/net/tramp-ftp hides = /Users/devon/emacs/tramp-ftp /Applications/Emacs.app/Contents/Resources/lisp/textmodes/sgml-mode = hides /Users/devon/emacs/sgml-mode /Applications/Emacs.app/Contents/Resources/lisp/mail/sendmail hides = /Users/devon/emacs/sendmail /Applications/Emacs.app/Contents/Resources/lisp/replace hides = /Users/devon/emacs/replace /Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp/regexp-opt = hides /Users/devon/emacs/regexp-opt /Applications/Emacs.app/Contents/Resources/lisp/rect hides = /Users/devon/emacs/rect /Applications/Emacs.app/Contents/Resources/lisp/textmodes/picture hides = /Users/devon/emacs/picture /Applications/Emacs.app/Contents/Resources/lisp/play/morse hides = /Users/devon/emacs/morse /Applications/Emacs.app/Contents/Resources/lisp/lpr hides = /Users/devon/emacs/lpr /Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp/lisp hides = /Users/devon/emacs/lisp /Applications/Emacs.app/Contents/Resources/lisp/progmodes/inf-lisp hides = /Users/devon/emacs/inf-lisp ~/emacs/slime/hyperspec hides /Users/devon/emacs/hyperspec /Applications/Emacs.app/Contents/Resources/lisp/mail/hashcash hides = /Users/devon/emacs/hashcash /Applications/Emacs.app/Contents/Resources/lisp/forms hides = /Users/devon/emacs/forms /Applications/Emacs.app/Contents/Resources/lisp/dired-aux hides = /Users/devon/emacs/dired-aux /Applications/Emacs.app/Contents/Resources/lisp/comint hides = /Users/devon/emacs/comint /Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp/cl-macs hides = /Users/devon/emacs/cl-macs /usr/share/emacs/site-lisp/bmacs/bug hides /Users/devon/emacs/bug /Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp/advice hides = /Users/devon/emacs/advice /Users/devon/emacs/gvoice hides /Users/devon/emacs/Leda/gvoice /Users/devon/emacs/nicferrier-elnode-ff5d553/elnode hides = /Users/devon/emacs/Leda/elnode /Users/devon/emacs/compose hides /Users/devon/emacs/Leda/compose Features: (shadow mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail goto-addr noutline outline compare-w parse-time vc-cvs mule-util pcmpl-unix tabify man lisp-cycle server cus-edit cus-start cus-load dired-aux newcomment reposition grep compile debug help-mode view eldoc network-stream auth-source eieio assoc gnus-util password-cache starttls tls vc-git hi-lock baal vt-mouse rmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time ange-ftp slime-pale slime-fancy slime-fontifying-fu slime-package-fu warnings slime-references slime-xref-browser tree-widget wid-edit slime-scratch slime-presentations slime-highlight-edits slime-fuzzy slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc slime-parse slime-repl slime byte-opt bytecomp byte-compile cconv macroexp derived apropos edmacro kmacro easy-mmode hideshow pp hyperspec thingatpt browse-url which-func imenu ude-autoload bmacs-gnu-emacs bmacs lzx new rect shell pcomplete comint ansi-color sort etags ring diary-lib diary-loaddefs cal-menu calendar cal-loaddefs paren sgml-mode dired advice help-fns advice-preload info-look info easymenu hy-test regexp-opt cl time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs)