From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mark Oteiza Newsgroups: gmane.emacs.bugs Subject: bug#28257: 26.0.50; [PATCH] expose eldoc functions in a hook Date: Sun, 27 Aug 2017 23:11:04 -0400 Message-ID: <20170828031104.GA15524@holos.localdomain> References: <87ziakwifi.fsf@holos> <87val88l0d.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Trace: blaine.gmane.org 1503889933 29169 195.159.176.226 (28 Aug 2017 03:12:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 28 Aug 2017 03:12:13 +0000 (UTC) User-Agent: Mutt/1.8.3 (2017-05-23) Cc: 28257@debbugs.gnu.org To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 28 05:12:08 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dmAT7-0007ES-N7 for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Aug 2017 05:12:05 +0200 Original-Received: from localhost ([::1]:36693 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dmATE-0005Ol-Jf for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Aug 2017 23:12:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dmAT8-0005MM-6C for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2017 23:12:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dmAT5-0004Wf-1B for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2017 23:12:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49848) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dmAT4-0004Wa-SG for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2017 23:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dmAT4-0003JE-Mw for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2017 23:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mark Oteiza Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Aug 2017 03:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28257 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 28257-submit@debbugs.gnu.org id=B28257.150388987212661 (code B ref 28257); Mon, 28 Aug 2017 03:12:02 +0000 Original-Received: (at 28257) by debbugs.gnu.org; 28 Aug 2017 03:11:12 +0000 Original-Received: from localhost ([127.0.0.1]:58529 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dmASG-0003I9-HX for submit@debbugs.gnu.org; Sun, 27 Aug 2017 23:11:12 -0400 Original-Received: from mail-qk0-f194.google.com ([209.85.220.194]:37111) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dmASF-0003Hx-5N for 28257@debbugs.gnu.org; Sun, 27 Aug 2017 23:11:11 -0400 Original-Received: by mail-qk0-f194.google.com with SMTP id o184so4288021qkc.4 for <28257@debbugs.gnu.org>; Sun, 27 Aug 2017 20:11:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=udel-edu.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=SEfm5XZPcxrU3a86itmhxNE+fBBbVwmrm+PtBfA33r8=; b=KlwTxQ1kTIj4+4/V8Fckq4xIXvgdLDX9Dpq+pbPmb/6AfOEwXdot0FeEvKQAG3tDIi MVIwDZQUxFCgjvtzGMiScwY8TDWMoK+/HJhUi0Kpc6H+Dkz+y7lS5mFintPMgUjt64da 5eER0Vfj+D0heeBikonbpA41jDqdDVkDxQRjd09DwYftvghoanw/mdXtYup7ls07TGyX hRo8k+pvO2NjUWBKQIgTFIcyK332czGzkDLd160qQICFr3d9Pu3pTkx2Zv4dqVXUg5TZ ghRbF72uJXE4u7q7GzC2Nciy82O1boBrJEBEbI9rqb/rEGAA1fDoxTGc0lPbNKINbrCy XIFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=SEfm5XZPcxrU3a86itmhxNE+fBBbVwmrm+PtBfA33r8=; b=kg5v5o6h91LZPbTEo8gFrZHOhF5F65T/xnmyZu+mzQb0r9sfG3L0nPgZBw7fi5tUJB ZrF4kI9p0Ze10BblqB2vQTLJNn/cdMbI1FtKfDoPA5H0xJvqs7axH+A677TNGL8qVvBw ZHrrcO12qJOv0SakBTOaMHKFoGEKG+qyvJL8mubeBrzuniJ+GzuMY2ggcSUXxRdimD6m kSPAIybUh4gk1L+9YLTVMGEq12lwjamUo3CR8I3eWEiq+kET5iC1Yh+0P8PsgZXKjodC NoMs1xDk1m2vFRmdmqMR5yfgL+oN3WevB325QiWTljS6njE7TIH1Zrq/rnfIIp6oKcId v6sQ== X-Gm-Message-State: AHYfb5g3dy0plKSSSCcxlhzd6aRsNhYNPeccEiy/yhpWE0eztkwj1TR6 Zp49yTNwhYTPw4AJCTbmRQ== X-Received: by 10.55.92.199 with SMTP id q190mr8245094qkb.127.1503889865487; Sun, 27 Aug 2017 20:11:05 -0700 (PDT) Original-Received: from holos.localdomain (pool-173-64-88-95.bltmmd.fios.verizon.net. [173.64.88.95]) by smtp.gmail.com with ESMTPSA id p42sm8698799qtc.56.2017.08.27.20.11.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 27 Aug 2017 20:11:04 -0700 (PDT) Original-Received: by holos.localdomain (Postfix, from userid 1000) id 16BEC6B4DD; Sun, 27 Aug 2017 23:11:04 -0400 (EDT) Content-Disposition: inline In-Reply-To: <87val88l0d.fsf@users.sourceforge.net> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:136288 Archived-At: On 27/08/17 at 10:49pm, npostavs@users.sourceforge.net wrote: >Mark Oteiza writes: > >> This makes it possible to use the results from multiple eldoc functions >> at once, through the addition of an abnormal hook. > > I'm not sure >what exactly what you mean by "use the results from multiple eldoc >functions". Is that something not possible currently? If both the buffer mode's documentation function and the function in the default-value return non-nil at a point, execution stops at the :before-until function, analogous to run-hook-with-args-until-success. I want to see both results. See what eldoc-documentation-compose does. >> I'm not aware of a good way to access the default value (or other local >> values) of eldoc-documentation-function when shadowed by a :before-until >> advice returning non-nil. > >Doesn't (default-value 'eldoc-documentation-function) work? FSVO "work". To do what is described above, not only does one have to write some wrapper function to advise eldoc-documentation-function buffer-locally, but also one has to hook into any/every mode that might add its own doc function.