From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark Oteiza Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] RFC: eldoc-documentation-functions hook Date: Sun, 12 Jun 2016 15:44:52 -0400 Message-ID: <20160612194452.GA12853@holos.localdomain> References: <20160612061229.GA6463@holos.localdomain> <20160612185237.GA12617@holos.localdomain> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1465760721 20136 80.91.229.3 (12 Jun 2016 19:45:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Jun 2016 19:45:21 +0000 (UTC) Cc: emacs-devel@gnu.org, Noam Postavsky To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 12 21:45:07 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 1bCBJi-0005mG-GX for ged-emacs-devel@m.gmane.org; Sun, 12 Jun 2016 21:45:06 +0200 Original-Received: from localhost ([::1]:52499 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCBJh-0003KF-Kl for ged-emacs-devel@m.gmane.org; Sun, 12 Jun 2016 15:45:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58345) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCBJb-0003JE-LO for emacs-devel@gnu.org; Sun, 12 Jun 2016 15:45:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bCBJX-0008AG-Gd for emacs-devel@gnu.org; Sun, 12 Jun 2016 15:44:58 -0400 Original-Received: from mail-qk0-x22c.google.com ([2607:f8b0:400d:c09::22c]:33903) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCBJX-0008A8-AE for emacs-devel@gnu.org; Sun, 12 Jun 2016 15:44:55 -0400 Original-Received: by mail-qk0-x22c.google.com with SMTP id s186so61204844qkc.1 for ; Sun, 12 Jun 2016 12:44:54 -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=0bAIvUsmTmW8tEwJM8O7oy2VZXcgogDbT55v5w+UH6c=; b=WTPGSY78CZ/G37TmdSPVLX8T3OJjqgrCAVkhTi9oC08kt4UQ6ircNOqSi1YsmYJ504 75sQdNq1WcKseXIObME7tDCuOvhJtBfWPoNjoRt0vh4s6wW7xW5Yh2ax/Jv94JQI/aqo XXB1aAc+3uVvJh73p+8Mdij1+wR76rCfUrjJIT7Uq9MNy8YJWep8jZn8r4Exhqk832zF pe8Bz/riF0yMbfReLDxYFiOX3U7EiXndT7Jr5uq8xyLPLbIQLzJEzm6CmjqGCkzCXKZZ Fg8Qbrc0ays1lVGgXNVHhqGaeTPLIL2p9EX2jSgPJrbqGVj+YoeAWFAKVxtiUyQBWI9g XQtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=0bAIvUsmTmW8tEwJM8O7oy2VZXcgogDbT55v5w+UH6c=; b=lyXHJi8CDYAPogCph217ytNEtFln7LRJjFGoziVanKvoawigih0DHXLEM9hnF86EXs 0Q+pXmwpDG7/bG7goYCKfVjTL/mI8HRAC+i6zGKd2UFy37cHla/161t/7QWOMFOAmKSn Oyn/lCbXv8WGX6D0g3XQG5FI0drAB1EyR9SBgP94+tPhVM8zPlBosJnyM+8jxJwgGAC+ pzMzzUnE0uvzi5wMXMEc8V5InsQ9Vy6DCFfU36TAq55ZeD5FeWST/cDF+AtDWnANSwNv WTkPVLnxAJlTRICgy03Wp3KNGdHeb3Ri2Yc7TOZ0q/d9lqpMGkqBAiHf8Zo+vxDTBCN/ Ww1A== X-Gm-Message-State: ALyK8tJHmQvgVrR9ApotLNd614w/C57HBpncSXIJ/1hyWbHilbLWMPpxBJyeVGIzS1zQTnmM X-Received: by 10.55.89.131 with SMTP id n125mr11871962qkb.143.1465760694478; Sun, 12 Jun 2016 12:44:54 -0700 (PDT) Original-Received: from holos.localdomain (ip68-100-200-121.dc.dc.cox.net. [68.100.200.121]) by smtp.gmail.com with ESMTPSA id l206sm5914070qhc.48.2016.06.12.12.44.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Jun 2016 12:44:53 -0700 (PDT) Original-Received: by holos.localdomain (Postfix, from userid 1000) id 0974469683; Sun, 12 Jun 2016 15:44:52 -0400 (EDT) Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.1+26 (8e342d73159b) (2016-04-27) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c09::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:204319 Archived-At: On 12/06/16 at 09:57pm, Dmitry Gutov wrote: > On 06/12/2016 09:52 PM, Mark Oteiza wrote: > > > > Could we improve the display of function values instead? > > > > Why not both? AFAICT the current behavior in eldoc is an imitation of > > what hooks do already. > > add-function is more powerful than hooks, see the different ways you can > combine the functions. That does not mean we should be using advice where hooks are a natural solution. Nothing prevents you from using add-function on a hook or a function that is part of a hook.