From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Make format-spec accept a function as the substitution Date: Thu, 29 Sep 2022 12:56:18 -0400 Message-ID: References: <166336105908.23797.12319380359602540227@vcs2.savannah.gnu.org> <20220916204419.B124FC00872@vcs2.savannah.gnu.org> <87edwavjyc.fsf@yahoo.com> <87wna1tr7z.fsf@yahoo.com> <87y1u51ddf.fsf@posteo.net> <87edvwrfg7.fsf@gmail.com> <83wn9oixdr.fsf@gnu.org> <83tu4sivtq.fsf@gnu.org> <87fsgatzvo.fsf@posteo.net> <87zgeixly7.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26772"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Thierry Volpiatto , Stefan Kangas , Eli Zaretskii , visuweshm@gmail.com, luangruo@yahoo.com, emacs-devel@gnu.org To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 29 19:55:12 2022 Return-path: Envelope-to: ged-emacs-devel@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 1odxke-0006ji-2h for ged-emacs-devel@m.gmane-mx.org; Thu, 29 Sep 2022 19:55:12 +0200 Original-Received: from localhost ([::1]:33498 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odxkc-0007jS-MC for ged-emacs-devel@m.gmane-mx.org; Thu, 29 Sep 2022 13:55:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58114) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odwpm-0006nW-Vj for emacs-devel@gnu.org; Thu, 29 Sep 2022 12:56:27 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:23671) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odwpj-0007LW-33; Thu, 29 Sep 2022 12:56:24 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id A619D100138; Thu, 29 Sep 2022 12:56:20 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 03EE21000FC; Thu, 29 Sep 2022 12:56:19 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1664470579; bh=FX3DJgmFSHc2l+x5QP9kv0jB1hMeEc14GgzcY27ziBU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=cb0FPTWD7JItV3eNzKYqjBbfSV0QqueQbM82LU74xq8rbfx0NcEYcXwo6lOAl1Emq Ky5HDyBZRHd/uaGzHkwc700OCt+SsuCeJ5GuzpTHZjjQZVe+oJjaEmXJR29OiXuXkq j3pYrEu2zRola+fsLeqdGfXRPzus54XoBFJVMgFRGAmsCf2p++RdKUr4nsi9B9K6pY gqIa/T9Jgbc4YIjvtEWbxiAVICqcDf12yhRLWJ3z/B0SfwaAUKWKb6AYCXx0ebqQFY mNuO3GHUrya0x5H5XJNd1w2JczHP3f7YGGeYlGG1FBJB+MJ7Zq5NuV2pE7xdMuInJT lMiYo+o5xHS7Q== Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id D368B12051F; Thu, 29 Sep 2022 12:56:18 -0400 (EDT) In-Reply-To: <87zgeixly7.fsf@posteo.net> (Philip Kaludercic's message of "Thu, 29 Sep 2022 15:02:56 +0000") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:296478 Archived-At: >> (format-spec "Go to line %n in file %f %g" >> `((?n . ,(=CE=BB () (read-number "Number: "))) >> (?g . "now") >> (?f . ,(=CE=BB () (read-file-name "File: "))))) > > Is there no worthwhile information to pass the lambda function? I was talking in very general terms, not specific to `format-spec`. You'd need someone more knowledgeable about `format-spec` to answer your question. > (I like the =CE=BB notation by the way, would be nice to have a (defalias= '=CE=BB > #'lambda) in subr.el). I use `prettify-symbols-mode` :-) Stefan