From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: read-from-minibuffer INITIAL-CONTENTS/DEFAULT-VALUE Date: Sat, 13 Jul 2019 02:05:00 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="27818"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 13 02:05:11 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hm5XL-00077M-H5 for ged-emacs-devel@m.gmane.org; Sat, 13 Jul 2019 02:05:11 +0200 Original-Received: from localhost ([::1]:52918 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hm5XJ-0005BQ-FF for ged-emacs-devel@m.gmane.org; Fri, 12 Jul 2019 20:05:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60805) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hm5XG-0005B6-Fn for emacs-devel@gnu.org; Fri, 12 Jul 2019 20:05:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hm5XF-0008Gq-EJ for emacs-devel@gnu.org; Fri, 12 Jul 2019 20:05:06 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:46086) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hm5XF-0008FY-7R for emacs-devel@gnu.org; Fri, 12 Jul 2019 20:05:05 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hm5XA-0003Gl-SM for emacs-devel@gnu.org; Sat, 13 Jul 2019 02:05:03 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAD1BMVEVHOSoRDQjJtIRxXkOO eFhAK06tAAACZElEQVQ4jV1U0ZHrMAjEkQqQLynAh1WAIijAFvRf01uk5H2cJ5NoWC8LCwrtfx+i 9fM3fKSFxFe57Rt/6qntC7x/7sd/Qq8uiSbQ3887f+Myzm7SNhyfVsohK94yV3YRCeBl4/I240VU pLpnufebXlLHuGY8mRE4LXtLv/RMzjyrKk3PvTC3bDQ2FAAkgEJJkdtr61c5Zx/kfUoniBZSlJuO 1XnvtJcttTd4JuiQPpY8+CoKkwCkejVr6QPIsOZbvFfyOAmUbQGWmSstoFdJF47TRB+oGC+VsgFI 4mMxSs2VWykQjQYZzX80dBifVKgFgKzGd5nAqApXYFVqvQI4+VeXhgvIiYZKN+hV/j0nI0mGS0bJ x3Bjdn7L6qP2e382UrfuEhRZg8dxg5furDqqIxVfU4P7EWgd5joiPHgynobRvqLODoEIM+cJ3NNI PEEAkWvtAbx+w/qoUlJ0Pmq22cfPB2BWgzhSYVEmcGCkOlOhsPhpMhYgbTE6K5BTRQeB9DhSowxJ EzKv/VAokV30aNhW2HphX6o5Whw8CNN6XCRbGpVSDMyniw/CEJ7HphspTAyhJa8Uj+0vwjJJe3wb PxeAraKcSO7wJVJxkw+wS0ottYagjsGnKFIQJZhOyUhifIb2RR7ILPi8C1l7q1f41U/B7AGAQVuJ g4YjSHSBREGBY0W1kl9pliRsbQFtK7hGAhdmF9FbSK96KVe4EJNiyYfF+mK3cQHb6KcZcmEcFhr7 NjclW8X19YS51BdU4yaUCfRzyHASd0tY5u8V2RNfmIebqkvrmMf2+bfAhtYoKZZLsNr/APakjNZx 8jyBAAAAAElFTkSuQmCC X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 80.91.231.51 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:238537 Archived-At: Historically, Emacs has used to put text in INITIAL-CONTENTS for a bunch of commands, but has, over the years, moved to putting the defaults in DEFAULT-VALUE so that the user has to type `M-n' to get at them. Overall, I think this is a good change... but for a bunch of commands, I really would like to have what's in DEFAULT-VALUE to be in INITIAL-CONTENTS instead. It's a lot more ergonomic (for me) for a number of commands, and reading a bunch of bug reports over the years, apparently for a number of users as well. So it would be nice if there was a way to tweak this. An obvious way would be to offer an option that would just put DEFAULT-VALUE in INITIAL-CONTENTS always. It'd be trivial to implement, and I'm sure somebody would want this for all commands. An if somebody wants this action for some commands only, they could add :around advice to the commands in question. Or we could allow tweaking this in the symbol plists. Any opinions? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no