From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Liu Newsgroups: gmane.emacs.bugs Subject: bug#19324: 25.0.50; add-function and nil Date: Thu, 11 Dec 2014 08:57:33 +0800 Message-ID: <87bnnbt342.fsf@gmail.com> References: <87vbllxw05.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1418259509 26435 80.91.229.3 (11 Dec 2014 00:58:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Dec 2014 00:58:29 +0000 (UTC) Cc: 19324@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 11 01:58:21 2014 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 1Xys5F-0006s1-JT for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Dec 2014 01:58:21 +0100 Original-Received: from localhost ([::1]:48622 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xys5E-0000hu-SO for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Dec 2014 19:58:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xys54-0000hY-7n for bug-gnu-emacs@gnu.org; Wed, 10 Dec 2014 19:58:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xys4w-0003Sa-Mo for bug-gnu-emacs@gnu.org; Wed, 10 Dec 2014 19:58:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:61000) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xys4w-0003RI-J4 for bug-gnu-emacs@gnu.org; Wed, 10 Dec 2014 19:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xys4w-00074O-0R for bug-gnu-emacs@gnu.org; Wed, 10 Dec 2014 19:58:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Leo Liu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Dec 2014 00:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19324 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19324-submit@debbugs.gnu.org id=B19324.141825947427163 (code B ref 19324); Thu, 11 Dec 2014 00:58:01 +0000 Original-Received: (at 19324) by debbugs.gnu.org; 11 Dec 2014 00:57:54 +0000 Original-Received: from localhost ([127.0.0.1]:42133 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xys4n-000742-Rs for submit@debbugs.gnu.org; Wed, 10 Dec 2014 19:57:54 -0500 Original-Received: from mail-pa0-f54.google.com ([209.85.220.54]:43809) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xys4l-00073m-Gc for 19324@debbugs.gnu.org; Wed, 10 Dec 2014 19:57:52 -0500 Original-Received: by mail-pa0-f54.google.com with SMTP id fb1so3924482pad.27 for <19324@debbugs.gnu.org>; Wed, 10 Dec 2014 16:57:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:face:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=fcTSEdvophiMPTqAkM73r+de0LEH3Jhd+HrP/4Mq8So=; b=gdGOeusn4Jj9cd04vljawcnRdMORajKqNY+3kxgi+GjGoLrCXaa80uti6VVrRFsHsC kmn+EuOdFdzMry5l0hK1DVFZbpQGOfmYF4LkUUKpvHB2tA4LlLiD9SVrOX9HsFo2LEAX qu9/bwl1I/lJu5tOEwHT3k05kYudxmA5lABgzEtUBASrUVYQ/wEMckM+ma/CraJ+YynC M2rDDIqEPL+C85Azt3o5O1gKRbn64YvPTNA7cq31yZZiGD2Kray5IGbY+4FFe7hyGjVe gB/TM5E8LqzxwOuSDSdSsNWPYb4olfsHfi5ZbJ8pJNhZGC4PXH6wNMUtLQz/GXbbNbGl 0CcQ== X-Received: by 10.70.43.138 with SMTP id w10mr12127720pdl.50.1418259464148; Wed, 10 Dec 2014 16:57:44 -0800 (PST) Original-Received: from fortuna ([114.248.243.62]) by mx.google.com with ESMTPSA id m4sm5278855pdm.60.2014.12.10.16.57.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Dec 2014 16:57:43 -0800 (PST) Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoAgMAAADxkFD+AAAADFBMVEUvT09qWs3/pQD///+J kUVcAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMLOd3veKQA AACuSURBVBjTldE9CgIxEAXgB+lEyFUC2wo5ikdZ8DSypxhMY7H9VuIVwlqkGRgnm59VsHGafIQ3 CZlAtmKIRaHETgYa12lqvEsPYKf8wXHsPGfqPaUM0g9aJPKFXkmNQmSDqwzz4Fpgpz+6WAPY2z5o uPJJpu0uypcl4nyCibMLQ8lCiVjayLoQvw5LsVKQuHPRR958HZbOcVsKeepcLxpByjycGvnKmY+c MBvrtyjfe0vmuLvdq/kAAAAASUVORK5CYII= In-Reply-To: (Stefan Monnier's message of "Wed, 10 Dec 2014 14:54:42 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (CentOS Linux 7 (Core)) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:97181 Archived-At: On 2014-12-10 14:54 -0500, Stefan Monnier wrote: > - Make sure all the functions you add use either :override or :around > and check that the orig is not nil before calling it. Yes, I had expected this to work and obviously not so filed this bug. Otherwise it is not a bad workaround. Go to a buffer in text mode where the default eldoc-documentation-function is nil and eval (add-function :around (local 'eldoc-documentation-function) (lambda (orig) (or (and orig (funcall orig)) (ignore)))) Move around to get the error. Leo