From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.bugs Subject: bug#33007: 27.0.50; Proposal for function to edit and return string Date: Thu, 11 Oct 2018 09:40:09 -0700 Message-ID: <87r2gw1lp2.fsf@ericabrahamsen.net> References: <86pnwh4je8.fsf@protected.rcdrun.com>> <83bm81xl84.fsf@gnu.org> <20181011063321.GD27672@protected.rcdrun.com>> <87lg74zk2k.fsf@web.de>> <834ldsy31m.fsf@gnu.org>> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1539275945 14336 195.159.176.226 (11 Oct 2018 16:39:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 11 Oct 2018 16:39:05 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: 33007@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 11 18:39:01 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1gAdzJ-0003aA-0P for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Oct 2018 18:39:01 +0200 Original-Received: from localhost ([::1]:35499 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAe1P-0002cQ-Lt for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Oct 2018 12:41:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55505) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAe1K-0002cG-8p for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2018 12:41:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAe1G-0004eK-7E for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2018 12:41:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41168) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gAe1F-0004dl-Ud for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2018 12:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gAe1F-0004zQ-Ro for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2018 12:41:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <86pnwh4je8.fsf@protected.rcdrun.com> Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Oct 2018 16:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33007 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.153927603719135 (code B ref -1); Thu, 11 Oct 2018 16:41:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Oct 2018 16:40:37 +0000 Original-Received: from localhost ([127.0.0.1]:45426 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gAe0r-0004yZ-Ir for submit@debbugs.gnu.org; Thu, 11 Oct 2018 12:40:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45679) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gAe0q-0004yK-9j for submit@debbugs.gnu.org; Thu, 11 Oct 2018 12:40:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAe0k-00044y-3q for submit@debbugs.gnu.org; Thu, 11 Oct 2018 12:40:30 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:52178) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gAe0j-00044d-QD for submit@debbugs.gnu.org; Thu, 11 Oct 2018 12:40:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAe0i-0002ZH-SE for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2018 12:40:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAe0c-00040b-EG for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2018 12:40:28 -0400 Original-Received: from [195.159.176.226] (port=52375 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gAe0c-0003yV-2H for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2018 12:40:22 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1gAdyR-0002XJ-Di for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2018 18:38:07 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 33 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:reug5eNwzHahPfC733mvrH+SeGY= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:151129 Archived-At: Drew Adams writes: >> Don't we already have something like that in Customize >> and/or in EWW, where they allow the user to fill fields >> in a form? > > As Michael said, " I think it already has been reinvented > multiple times in Emacs itself." > > The buffer is usually exited with `C-c C-c'. If the buffer > contains Lisp code, that's typically read with `read' > when you use `C-c C-c'. > > The mode should be configurable, maybe defaulting > to Emacs Lisp mode (?). A key (other than `q') should > let you cancel (burying or killing the buffer without > evaluating or otherwise processing it in any way). > > The functions that (1) create and display the buffer > and (2) process it (e.g. a command bound to `C-c C-c', > by default) or cancel it should be usable in various > ways, for buffer content of various kinds and for > processing of various kinds. > > This should be done as simply as possible, e.g. as > contrasted with something like what `view-mode' > does, which is complex. If we want to provide > different buffer-display behaviors that should be > done simply somehow. Gnus also invented this wheel a while ago, for editing Group parameters. There's also a Customize interface to the same data, though, which is arguably easier to use.