From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Bug #29083: Is it OK to add a new function to the emacs-26 branch? Date: Fri, 3 Nov 2017 16:22:54 +0000 Message-ID: <20171103162254.GA4277@ACM> References: <20171101112144.GB5276@ACM> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1509726615 12832 195.159.176.226 (3 Nov 2017 16:30:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 3 Nov 2017 16:30:15 +0000 (UTC) User-Agent: Mutt/1.7.2 (2016-11-26) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 03 17:30:09 2017 Return-path: Envelope-to: ged-emacs-devel@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 1eAer9-0002hO-5P for ged-emacs-devel@m.gmane.org; Fri, 03 Nov 2017 17:30:07 +0100 Original-Received: from localhost ([::1]:37569 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eAerG-0005EZ-4s for ged-emacs-devel@m.gmane.org; Fri, 03 Nov 2017 12:30:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52476) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eAer5-0005Cz-Qw for emacs-devel@gnu.org; Fri, 03 Nov 2017 12:30:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eAer2-0005lr-MY for emacs-devel@gnu.org; Fri, 03 Nov 2017 12:30:03 -0400 Original-Received: from ocolin.muc.de ([193.149.48.4]:51227 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1eAer2-0005kM-Fe for emacs-devel@gnu.org; Fri, 03 Nov 2017 12:30:00 -0400 Original-Received: (qmail 58098 invoked by uid 3782); 3 Nov 2017 16:29:55 -0000 Original-Received: from acm.muc.de (p548C6FD6.dip0.t-ipconnect.de [84.140.111.214]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 03 Nov 2017 17:29:54 +0100 Original-Received: (qmail 4322 invoked by uid 1000); 3 Nov 2017 16:22:54 -0000 Content-Disposition: inline In-Reply-To: X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 193.149.48.4 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:219889 Archived-At: Hello, Stefan. On Fri, Nov 03, 2017 at 11:35:54 -0400, Stefan Monnier wrote: > > However, the OP has requested that a function which actually displays > > this name be put into CC Mode. Would it still be OK to do this on the > > emacs-26 branch, or is this branch now closed for such things? > FWIW, it would be even better to add this command to which-function-mode > so it can work in "any" mode. which-function-mode is something a little different - it displays the current function name continuously in the mode line. This new feature of mine displays the current function name in the minibuffer on typing a key sequence. (I am proposing C-c C-z in CC Mode.) Am I right in thinking the meaning of your "to add this command to w-f-m" is that (i) There would be a command to display the current function name in the minibuffer, together with a line offset in it, and the other refinements currently in c-display-defun-name. (ii) This command would be available regardless of whether or not w-f-m is currently enabled. ? If so, I agree this is a good idea. However it would need some key sequence in the global map (or we could expect each user to set her own C-c binding for it). One disadvantage: this new facility can scarcely be included in Emacs 26, as it would be too big a change at this stage. I would probably be prepared to work on this. > Stefan -- Alan Mackenzie (Nuremberg, Germany).