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#12443: 24.2.50; Default values in the minibuffer prompt (fix inconsisntecy) Date: Tue, 25 Aug 2020 21:12:27 +0200 Message-ID: <87wo1m4k10.fsf@gnus.org> References: <871ui48di4.fsf@mail.jurta.org> <878se2aox0.fsf@gnus.org> <87imd669dh.fsf@gnus.org> <875z961u2l.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34444"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Dani Moncayo , Stefan Kangas , Stefan Monnier , 12443@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 25 21:13:09 2020 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 1kAeNZ-0008sK-QQ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Aug 2020 21:13:09 +0200 Original-Received: from localhost ([::1]:41866 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kAeNY-0000Ux-Tg for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Aug 2020 15:13:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36790) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kAeNS-0000Sj-Hd for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2020 15:13:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52843) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kAeNS-0004uC-7k for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2020 15:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kAeNS-00016X-2Y for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2020 15:13: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: Tue, 25 Aug 2020 19:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12443 X-GNU-PR-Package: emacs Original-Received: via spool by 12443-submit@debbugs.gnu.org id=B12443.15983827614205 (code B ref 12443); Tue, 25 Aug 2020 19:13:02 +0000 Original-Received: (at 12443) by debbugs.gnu.org; 25 Aug 2020 19:12:41 +0000 Original-Received: from localhost ([127.0.0.1]:36152 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAeN6-00015k-SC for submit@debbugs.gnu.org; Tue, 25 Aug 2020 15:12:41 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:44882) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAeN5-00015W-5w for 12443@debbugs.gnu.org; Tue, 25 Aug 2020 15:12:39 -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:In-Reply-To:Date: References: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=At+1xyaLeuXMzhLA4TJ/pE+gVw9TEJ9u74vQ9PL4mR0=; b=Xagzs3FcuKuBslZ3l6bKbgJzt+ YOuakTjq7ybk8Ifv4JEfPGMwup5ILyBRzpZuHRHV1Eb6PKOLwKJCwIbdVZKuBvzA82sJwE/yDc5Is +gEArPTh0YYd+WBDLEYvP3uuVuSHJP5+QXnzz9FN1CoCYUlfz/4i4CxoPYslZCUYWgtA=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kAeMv-0000wP-A8; Tue, 25 Aug 2020 21:12:31 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEUBAgEnMS1UYls4 SkKcp514hnz///9NkLG6AAAAAWJLR0QGYWa4fQAAAAd0SU1FB+QIGRMLBz+Q8aEAAAF8SURBVDjL vZNBcoMwDEVJMt1jfAGQ0D6WcoBOxuxbat//Kv0Q7ISZtJNu+pmxwc/Slww0zX+p3T8etvloPb2P iT4uzWDHvqO3suHc9722PZ1a0nPnaNhA13+6i7qhG9qRqBtUNuADnTyRtNx47s50OlaztvlVBwet wzPgnoPg/PNUP3mEF0+qevp1MLMNECQxxplW5TxXkDPW43QDJAWoDC4thEpIieCDlyw53fZTmmoq 55W17JdYQSIODsVIXhXj1lfOREqmSJ6nRxABxjiniAqmKcodoM6J1rriiipYlGNR2gN6Bq4JNhLv 2sC0gjBeDW3w0ssG5EpsyhIzfNNEJaLxRgOAjnJFETtwYTKciZnuTtf57kvVNH55ZyrVAxHIg5gE L1xKcwU3KSnPLDKXCLu96IUwAmBWwCaCe6AlcQVwYGMKhqlDk3ewlMlmeFsBm+jBHJmNB7eyChZr LKN/3AFw+eBKUUscgFZQlmG1B4fyn59C69oXP/g/6Bv0wWzDJd3VcAAAABBlWElmSUkqAAgAAAAA AAAAAAAAAJw8uSgAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjAtMDgtMjVUMTk6MTE6MDcrMDA6MDBa KVdIAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTA4LTI1VDE5OjExOjA3KzAwOjAwK3Tv9AAAAABJ RU5ErkJggg== X-Now-Playing: Tuxedomoon's _Live in San Francisco (1979)_: "What Use-" In-Reply-To: <875z961u2l.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 25 Aug 2020 21:23:46 +0300") 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:186341 Archived-At: Juri Linkov writes: >> (setq from-coding (read-coding-system >> (format-prompt "Recode filename %s" >> default-coding filename) >> default-coding)) > > Simpler would be to format arguments separately: > > (setq from-coding (read-coding-system > (format-prompt (format "Recode filename %s from" > filename) > default-coding) > default-coding)) Yeah, but that's longer and more awkward, isn't it? > that would allow easier replacement of 'format' with 'gettext' later: > > (setq from-coding (read-coding-system > (format-prompt (gettext "Recode filename %s from" > filename) > default-coding) > default-coding)) I don't think we have to have gettexting in mind, because that's never gonna happen. :-) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no