From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#28257: 26.0.50; [PATCH] expose eldoc functions in a hook Date: Sun, 27 Aug 2017 22:49:06 -0400 Message-ID: <87val88l0d.fsf@users.sourceforge.net> References: <87ziakwifi.fsf@holos> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1503888503 17697 195.159.176.226 (28 Aug 2017 02:48:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 28 Aug 2017 02:48:23 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) Cc: 28257@debbugs.gnu.org To: Mark Oteiza Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 28 04:48:17 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 1dmA5y-0003fk-7w for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Aug 2017 04:48:10 +0200 Original-Received: from localhost ([::1]:36617 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dmA60-0001dt-4e for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Aug 2017 22:48:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dmA5t-0001dP-DF for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2017 22:48:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dmA5q-0003CV-BD for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2017 22:48:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49819) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dmA5q-0003CL-70 for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2017 22:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dmA5p-0002j0-Kt for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2017 22:48:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Aug 2017 02:48:01 +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.150388845410441 (code B ref 28257); Mon, 28 Aug 2017 02:48:01 +0000 Original-Received: (at 28257) by debbugs.gnu.org; 28 Aug 2017 02:47:34 +0000 Original-Received: from localhost ([127.0.0.1]:58500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dmA5O-0002iK-IH for submit@debbugs.gnu.org; Sun, 27 Aug 2017 22:47:34 -0400 Original-Received: from mail-it0-f67.google.com ([209.85.214.67]:33217) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dmA5M-0002i8-VZ for 28257@debbugs.gnu.org; Sun, 27 Aug 2017 22:47:33 -0400 Original-Received: by mail-it0-f67.google.com with SMTP id 77so3412618itj.0 for <28257@debbugs.gnu.org>; Sun, 27 Aug 2017 19:47:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=McwbDTqCLQSI4sKXECRFOov5Mk+uwnvKqck9wIQUZiU=; b=e0kVA0vWM5d6d0YNMZXIVzBHmP2CLzt9DgznnblNzJqfvKL0oyEln+ZTou9r8MibNE crmyUU7MNzH03+VgZlTtv/g/MVYtQDOiPW7/MiMByvUeED8S5jypeU7oiORoa3bUK2Ar BnfXKMBoLjKWBYKezg41oc9JLA9GCMw7LOHq97X6Teau9IdjwiKOPanW3PRqOtJEZtcc KKDTegGg44+Gvceg88RzbibI/GIxTJyeR9KBAaS8ZbcAn13TSIUgM/yLw74DTQ0JEInj Ly+60BoASeLIcY7kDs8K7nT2N2VUYcJ75F2JpzYSiaK85py0pRMX1FfDrdI2iLSZNvB7 ksfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=McwbDTqCLQSI4sKXECRFOov5Mk+uwnvKqck9wIQUZiU=; b=Xy9rVrh9NROqnQP7XAIK5potnOhEFAC68MyVX0H0Gm0S82vywBKCbEeuvtz/Jww6sA SCepyLyy2yjQFmLlWT6YF8nrROqOa3VwsqWX9bP3GT9WcEP4uXwG/TtAtPDtbThGocjG JjRJ8guEAFScR1pO/FZt86N7uEsL9BH2y+4GiVS+O/IzjtrngFivqOu+OTV2z0kGimLh 0/D8htFLMIdreMY29kUGYEe1zX/72tI+06/AovrIyk7RQYVz+NoNmjvFsi2lzsjKbbbI ivrGjkIG6TxQrWBG92zrGmZdZdormzO4jc2jskGbJRjmwSm8MaUYOKGKev1xE3eAgw47 O10A== X-Gm-Message-State: AHYfb5iVcmj+jPMr+MD27jjHbxHAE9AbVZD5+C+QwIfcp94cuevkSzUL rExYnnEFqvEvnTAC X-Received: by 10.36.34.80 with SMTP id o77mr5760547ito.121.1503888447181; Sun, 27 Aug 2017 19:47:27 -0700 (PDT) Original-Received: from zony ([45.2.119.49]) by smtp.googlemail.com with ESMTPSA id i129sm985735iti.0.2017.08.27.19.47.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 27 Aug 2017 19:47:26 -0700 (PDT) In-Reply-To: <87ziakwifi.fsf@holos> (Mark Oteiza's message of "Sun, 27 Aug 2017 22:10:57 -0400") 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:136287 Archived-At: Mark Oteiza writes: > This makes it possible to use the results from multiple eldoc functions > at once, through the addition of an abnormal hook. Last time this came up, there were some objections[1]. I'm not sure what exactly what you mean by "use the results from multiple eldoc functions". Is that something not possible currently? [1]: http://lists.gnu.org/archive/html/emacs-devel/2016-07/msg00291.html > 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? Note also that (cl-prin1 eldoc-documentation-function) will print out a representation of all the added functions. It uses some "internal" advice--* functions, perhaps they should be "externalized"?