From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.devel Subject: Re: [PATCH v3] RFC: eldoc-documentation-functions hook Date: Tue, 19 Jul 2016 21:50:17 -0700 Message-ID: References: <838tyahoim.fsf@gnu.org> <20160612182453.GA12034@holos.localdomain> <20160613211735.GA5969@holos.localdomain> <20160617210849.GA3775@holos.localdomain> <20160707033019.GA22360@holos.localdomain> <87oa5u63hq.fsf@udel.edu> <20160719232017.GA16820@holos.localdomain> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1468990292 2486 80.91.229.3 (20 Jul 2016 04:51:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Jul 2016 04:51:32 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Mark Oteiza Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 20 06:51:24 2016 Return-path: Envelope-to: ged-emacs-devel@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 1bPjTf-0006UC-8V for ged-emacs-devel@m.gmane.org; Wed, 20 Jul 2016 06:51:23 +0200 Original-Received: from localhost ([::1]:60549 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPjTa-00052L-Rk for ged-emacs-devel@m.gmane.org; Wed, 20 Jul 2016 00:51:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41178) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPjTT-000523-Su for emacs-devel@gnu.org; Wed, 20 Jul 2016 00:51:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bPjTP-0002qW-QF for emacs-devel@gnu.org; Wed, 20 Jul 2016 00:51:11 -0400 Original-Received: from mail-yw0-x22c.google.com ([2607:f8b0:4002:c05::22c]:34103) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPjTP-0002qS-LW for emacs-devel@gnu.org; Wed, 20 Jul 2016 00:51:07 -0400 Original-Received: by mail-yw0-x22c.google.com with SMTP id z8so13665759ywa.1 for ; Tue, 19 Jul 2016 21:51:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:mail-followup-to:mime-version:content-transfer-encoding; bh=lvqSJxOyjFw1gRfcKkGuBgwUT8hr9N55IevUUdDzq5o=; b=SsyiIpaezj3YXpmbKBQzQct5BC8h0Sept347/pDom91A4jlHSowbYfnsrU1mpOznTI QJt9ZFgfULAbX9fy4v4/Y2EOAuxrlDV68TMbTe7qPTQ2Tr3UHTGa0ROdNDjWcB++UhSj IBwSpL+gyF3RPZXHwyyYb/r7GBnEobBrJ9Q1Gb3VQz+ptflzhoCNCNEuhbyRjrSsJm/V IrnHFL5WICPaT9j4JZ9413TM77gLV+4hi0hr2y3QCSNg7W66VZKDWJ3iLJ/k3Rjc6/JP KTk9s8smNb1PHWSrECh08ObLffi/SQW9FPHniTGdQEMtelKQKZ4iAZyTKtcB+Rfgxn6R uxYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id :references:user-agent:mail-followup-to:mime-version :content-transfer-encoding; bh=lvqSJxOyjFw1gRfcKkGuBgwUT8hr9N55IevUUdDzq5o=; b=QyjaIdsw/Bbtfylgv697TPWdxmrRIZDq/a50xbnAcA0DWnEYdyXNBBqNcY61CB6ZKA ITW5obX8eFIfnr+LcaYGlqM61wgVYqXo8TNGjW0iKOUgSsr9J36ikyQ/YP5hLe7BS4uV 23Ro564syOsexbZasaj3e0Z4u3RY51VzXxIwLeoMUgduh+4BpwUVl7Chi4JDKyvOorhd yZNXCVRdccBr9KExxIvV8JQBbOr/JC2poqHzpk0aoXHzapdBUYtfTTFjk6A/jLOKodtt uj0FSPRzJNienwF2iszRmrq5TMehG0CJgY02CjF2pna6DX4soXtGgLdpQ234CHWuoJfP AcVA== X-Gm-Message-State: ALyK8tLKRogqCmTdEWGoyEfN/ufM0Jn9rO6UEyUU2zWP67zuq72T+RHsobihvg9kJ0aIvA== X-Received: by 10.13.249.66 with SMTP id j63mr26905770ywf.270.1468990267055; Tue, 19 Jul 2016 21:51:07 -0700 (PDT) Original-Received: from Vulcan.local (76-234-68-79.lightspeed.frokca.sbcglobal.net. [76.234.68.79]) by smtp.gmail.com with ESMTPSA id u189sm394071ywe.25.2016.07.19.21.51.05 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 19 Jul 2016 21:51:05 -0700 (PDT) X-Google-Original-From: "John Wiegley" Original-Received: by Vulcan.local (Postfix, from userid 501) id BB8441AAA22C; Tue, 19 Jul 2016 21:51:04 -0700 (PDT) In-Reply-To: <20160719232017.GA16820@holos.localdomain> (Mark Oteiza's message of "Tue, 19 Jul 2016 19:20:17 -0400") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.95 (darwin) Mail-Followup-To: Mark Oteiza , Stefan Monnier , emacs-devel@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4002:c05::22c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:205857 Archived-At: >>>>> Mark Oteiza writes: > Ok, then perhaps something to the effect of > (defun run-single-function-hook (hook) > (let ((global-hook (default-value hook)) > (local-hook (when (local-variable-p hook) (symbol-value hook)))) > (or (and (functionp local-hook) (funcall local-hook)) > (and (functionp global-hook) (funcall global-hook))))) > can instead be used. Haven't bothered looking to see if this is useful > outside of eldoc=E2=80=A6 Hi Mark, I'd like to steer this discussion away from -function vs. -functions, to get at the underlying concern you've expressed. Is it that the use of nadvice in cases like these seems heavyweight? I'm wonder if eldoc-documentation-functions has become something of a red herring, when really the point you were making is more fundamental. --=20 John Wiegley GPG fingerprint =3D 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2