From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#45333: complex command history should not save optional nil parameters Date: Thu, 07 Jul 2022 17:21:26 +0200 Message-ID: <87k08peyo9.fsf@gnus.org> References: <0DJzRuBn1S9jW_MoJt5HXcLQWrzb7Vjkfmlwa9zPvgLIFeEfdPLoiguSztbL4TnuHyxd59Z7BpS9qJo5BinMO3n1mDlWjcytLjq9HmoGIl0=@protonmail.com> <8735ggk7nz.fsf@gnus.org> <83ee007gxo.fsf@gnu.org> <87o7z3bcsp.fsf@gnus.org> <875ykbabl1.fsf@web.de> <87o7y31pho.fsf@gnus.org> <87wncrs8js.fsf@web.de> <87sfnfmm41.fsf@gnus.org> <87k08rs7jg.fsf@web.de> <87bku3ml4x.fsf@gnus.org> <87fsjfs5v2.fsf@web.de> <871quzmj9a.fsf@gnus.org> <87o7y3l1xm.fsf@gnus.org> <87v8s9idnx.fsf@gnus.org> <87sfndf1xp.fsf@gnus.org> <87o7y1f016.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23888"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Michael Heerdegen , laszlomail@protonmail.com, Eli Zaretskii , 45333@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 07 17:23:34 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o9TLq-00060o-3b for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Jul 2022 17:23:34 +0200 Original-Received: from localhost ([::1]:59388 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o9TLo-0007hW-NN for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Jul 2022 11:23:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9TKM-0005g9-Tf for bug-gnu-emacs@gnu.org; Thu, 07 Jul 2022 11:22:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35513) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o9TKM-0006w6-K5 for bug-gnu-emacs@gnu.org; Thu, 07 Jul 2022 11:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o9TKM-0006G8-Gc for bug-gnu-emacs@gnu.org; Thu, 07 Jul 2022 11:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Jul 2022 15:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45333 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 45333-submit@debbugs.gnu.org id=B45333.165720730224025 (code B ref 45333); Thu, 07 Jul 2022 15:22:02 +0000 Original-Received: (at 45333) by debbugs.gnu.org; 7 Jul 2022 15:21:42 +0000 Original-Received: from localhost ([127.0.0.1]:57641 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o9TK2-0006FR-JK for submit@debbugs.gnu.org; Thu, 07 Jul 2022 11:21:42 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:40378) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o9TJx-0006FA-Mc for 45333@debbugs.gnu.org; Thu, 07 Jul 2022 11:21:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=bSks2nR2kniaU4uy7H69OfEdGA2vWIju9u+Dox0IOnY=; b=GdpXs3GObuWLAVh1NwFhqbT4HE VG/y6Qg/hwSBDhe7UXQfaXgVz0M0UmzVxL2bN1zubNEW5tr/p+axFvLZoG/a+YSebW90U56MmXuSr So24ZWKMtFskaqN0J/VMGS/Y8r81x7oZKi21GsDLhox/SQbG3WSAPVFgtgddORngmG5M=; Original-Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o9TJn-0000sd-0e; Thu, 07 Jul 2022 17:21:29 +0200 In-Reply-To: (Stefan Monnier's message of "Thu, 07 Jul 2022 11:05:02 -0400") Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEU7GBm6JSvYy8T/ //+ng3msAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+YHBw4yDiNo4uoAAAF3SURBVCjPVdFBS8MwFAfw 19KObadOFtCd9LBLP0UCzc6J7A305FH3KcpAkJ1kbAN7kjJHfZ/Sf9pVNIfQX/L6+Cch+jseZfO1 q2RX5WXe4ghsBJiJfH1XInICHlqspTo1OQ2V2SszzTS+iAayV7rtlZJJmdn7MDEZi9kbDmsBJiCs ke2xVACzsX1ZCw4NAB2x5ozGCPFBBCh3QSyPCPaSAxXFDbBu5vhlBYzXkje3bYNYBgF3HZo4l/wU oC5o5suA6C0eXavniI37vRekmRINY9lqkVfLCHodi5Tn8wENlsiWep0VOE8PLnyB6+igCkfLC0gV OOy0g1PWeg5bUeJdZuzEO/o/dOKNTtNk4jpYp9C7B03YesqAFGWZsojhAhzKLMqeAO5wO8XDJMwA pqigMuEJEhQc0pX9UcOOTiKUXn3iwoTKUb3eDs+1HMIrjGrZjutNi3ImTT6WqsX7jcgMT7A9yoFo JAuR+mBXwugU0WJ4H+kiTX8A+hWg7VXPXpYAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjItMDctMDdU MTQ6NTA6MTQrMDA6MDCBD99jAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTA3LTA3VDE0OjUwOjE0 KzAwOjAw8FJn3wAAAABJRU5ErkJggg== X-Now-Playing: Soft Cell's _Cruelty Without Beauty (2)_: "The Night (Manhattan Clique Mix)" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:236384 Archived-At: Stefan Monnier writes: > Ah, so you're not talking about advertised-calling-convention!? No, I'm talking about the... advertised calling convention. > Basically, if we want to go there, we start to want to distinguish > between: > - the "final and pretty" advertized arglist > - the "final and pretty" arglist but disregarding advertised-calling-convention > - the original arglist rather than the one stashed in the docstring. > - the raw arglist seen by the interpreter. > I doubt very many chunks of code will know which level to choose (and > even fewer will have a good justification for that choice). I think there's just two levels that are interesting. We have the er advertised calling convention (whether from advertised-calling-convention or "(fn ...)"), and then the real, actual for sure arglist. The former is what `C-h f' and eldoc wants, and particularly for the latter, it's a shame that it's so hard to get at -- i.e., opening .elc files and chopping up doc strings etc. The actual for sure arglist is needed when you want to redefine functions and the like, and need to actually retain the interface in all details, and today you have to look at the source code to do that, which a self-documenting editor shouldn't need. (But it's pretty rare to need this, so it doesn't matter that it's slow.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no