From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: [PATCH v3] RFC: eldoc-documentation-functions hook Date: Tue, 19 Jul 2016 21:50:31 -0400 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: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="isgPK57gX7NiXokBMRplEqDOjfjGj4lbn" X-Trace: ger.gmane.org 1468979462 17790 80.91.229.3 (20 Jul 2016 01:51:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Jul 2016 01:51:02 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 20 03:50:54 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 1bPgez-0000lt-FU for ged-emacs-devel@m.gmane.org; Wed, 20 Jul 2016 03:50:53 +0200 Original-Received: from localhost ([::1]:60009 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPgey-000853-Km for ged-emacs-devel@m.gmane.org; Tue, 19 Jul 2016 21:50:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPger-00084m-OX for emacs-devel@gnu.org; Tue, 19 Jul 2016 21:50:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bPgeo-0001BU-07 for emacs-devel@gnu.org; Tue, 19 Jul 2016 21:50:45 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.133]:62588) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPgen-0001Aq-Ht for emacs-devel@gnu.org; Tue, 19 Jul 2016 21:50:41 -0400 Original-Received: from [172.17.11.203] ([162.223.5.123]) by mrelayeu.kundenserver.de (mreue003) with ESMTPSA (Nemesis) id 0LyhBT-1bJjJo2PqB-0168QN for ; Wed, 20 Jul 2016 03:50:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 In-Reply-To: <20160719232017.GA16820@holos.localdomain> X-Provags-ID: V03:K0:vrd6SxQ97dTeonQECyXVyS/noFh/OvpwVBeoxNNwUc376eooBBY 544ifVXDzfEo2vdODPLvQJA1bQI4KFKuUWdin3JqEOfkV+gfZiEzNSyy4OtBuK4frqwlPLf JkABdIqLYEtHXbEnVs7hf6QTD+w8ksRNqbh7NWPG5DhgVCsAvFOfkvR4JG8o+HM3WuNwcyX 6rv9zyxqMTmFhycZpTW0w== X-UI-Out-Filterresults: notjunk:1;V01:K0:gJot13q1skQ=:3LGAN/wp6wPzWuWZCxwKDz OJ186rzZS9CKmuozXy70c/3UrUYjl+9MW4KBNW73/uBxmW/Mc3cw1Nsj8uIhOefEN/56AZ/XD K1xksXy/CVUeaUqJnZDuu74PBFBYrFQooVAyO9RY2ab2PheuDtAUedXV8af9YJFpKXYkwOazA ZzkJldoDOFIOy76ktVGiHCEHbtscfGXtVA1kA3GR3j7rqfdzni0AvlKu+T3ZhIGL76zcYPfHr pOAH9G3FeBi7EJK31hmZRvpEdkL1Wwwe7IdpyI5VkTyD+nT7IRrPdsO83nBqjPtxdB2zocb1L MSeGj1ZDdhFibEUe2xWCa7PTS2qsdlb74JXnbXsdMb2RZcsdfM1xGI8LAlbXi0E1Aj0neZH5x qOoJLMNqe0e+ttBf86SmTuQOUm8OD5hYf9ez7gGtZYvhWb+yTF0SMTa4EK/T7+oJ+aQ2aC81f SAgSxU1IJ42NV0BZy8FOLbjgQ8+8goyVJjMqx9sZ2VPsd2+SudZu9js6gCQy0yflEfvNUe6U1 8PBTqj6LO4NgPHya1kbMzp601n7K+MdibRbvFeUWzZE9qAhF5OMPzQEeGEqfsfE3NuUe8dz8Y NCoPha9MKwyHxNjQ/ApgkILAPtOZg7p33sXnlIiObpx3j6gtdW3ZaOwvm4iVKYpsCoG4LWewE Mtpq/NcwVfFTTT0O+riTcJj7U9/RXApv27KKdMur9QZ1FQ8UBtdn+ycaBlTUQ8DLZ5bE= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.126.133 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:205853 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --isgPK57gX7NiXokBMRplEqDOjfjGj4lbn Content-Type: multipart/mixed; boundary="QM9nnCRdD81axklat8M1R8OQ7S1uPv9lX" From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= To: emacs-devel@gnu.org Message-ID: Subject: Re: [PATCH v3] RFC: eldoc-documentation-functions hook 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> In-Reply-To: <20160719232017.GA16820@holos.localdomain> --QM9nnCRdD81axklat8M1R8OQ7S1uPv9lX Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2016-07-19 19:20, Mark Oteiza wrote: > Ok, then perhaps something to the effect of >=20 > (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))))) >=20 > can instead be used. Haven't bothered looking to see if this is useful= > outside of eldoc=E2=80=A6 Looks nice; does it call global-hook on purpose if local-hook is a functi= on that returns false? Btw, (I hope this isn't a silly suggestion) is there any way to extend ad= d-hook and run-hook* to work with both traditional "list of functions" ho= oks and single-function hooks? --QM9nnCRdD81axklat8M1R8OQ7S1uPv9lX-- --isgPK57gX7NiXokBMRplEqDOjfjGj4lbn Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXjtjnAAoJEPqg+cTm90wjqlgP/2Q1SbExlwm5BpbjXZ3//Oad alZVQtephxkjG8Af6nV4j4uQW/ntN5/NU6GL03aGdJDGVNlEAyZaSaQjHq+MY69x 4rzk3jElkyVRZpubwe7FB58uLHlYA4lO3rZNycmAkab8jaGUSHLutsHSwhE8p+1z 8XWzf4i6mNTu7TrdM5UCHFrVc9odPk86XRe57+wC/JeZmGxS5ogDX3GC71tKqlTD dzAP5xmkGFCnKzQGo+OzKtYCoCKri5mqLzNvoi3EOs6kRINaClHvHcbicxggJUZn VIKNuXW+YehGuGI4eSJlJGHWMBezAWnq+VMsPz/7GvTDqhDVbsrYgIvBxshDt1Jx OrZewzlk0oSImqFvaGyv90p5uwPnmELn2GqXClGf+6t2iOHHOZ/8GTy+OZomcKrO Az/vtie43sq7/LHXW8d5XzEjFJPerGUrSIWwKxdqAa9lgM8N1xeRYn6brEaqd0/T FihUATUt9+Hriv5iorCsQ1xFtHSND+oaOnVsmyJIPSXM+FLbn4BUuwY61cQ5XV+1 F3m1+awAvX4NfIvws5ns+EIklVoO8hVbrPkwSAkL+NqZl8Ded9fMscDfOeZ+IMRg YaZx0QuYqZFGsdwO3zPknCj4fNJhsCIrYC2LDd5UPsTHmN4zJyAHT6+yrAk1I/0h mVVXWBRLaPC9wHmm8ZfG =INqX -----END PGP SIGNATURE----- --isgPK57gX7NiXokBMRplEqDOjfjGj4lbn--