From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#33007: 27.0.50; Proposal for function to edit and return string Date: Thu, 11 Oct 2018 14:41:12 +0000 (UTC) Message-ID: 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; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1539268822 9397 195.159.176.226 (11 Oct 2018 14:40:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 11 Oct 2018 14:40:22 +0000 (UTC) Cc: bugs@gnu.support, 33007@debbugs.gnu.org To: Eli Zaretskii , Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 11 16:40:18 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 1gAc8N-0002Hm-KF for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Oct 2018 16:40:15 +0200 Original-Received: from localhost ([::1]:34902 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAcAU-0003Ep-3T for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Oct 2018 10:42:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49197) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAcAN-0003Ef-8I for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2018 10:42:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAcAD-0006Oa-Rk for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2018 10:42:18 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41122) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gAcA7-0006Li-Sa for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2018 10:42:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gAcA5-00028A-JL for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2018 10:42:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Oct 2018 14:42: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: Original-Received: via spool by 33007-submit@debbugs.gnu.org id=B33007.15392688838118 (code B ref 33007); Thu, 11 Oct 2018 14:42:01 +0000 Original-Received: (at 33007) by debbugs.gnu.org; 11 Oct 2018 14:41:23 +0000 Original-Received: from localhost ([127.0.0.1]:45380 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gAc9T-00026s-7B for submit@debbugs.gnu.org; Thu, 11 Oct 2018 10:41:23 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:50108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gAc9R-00026e-6R for 33007@debbugs.gnu.org; Thu, 11 Oct 2018 10:41:21 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w9BEd4w0030509; Thu, 11 Oct 2018 14:41:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=MTl+z0oy9CtvD3lzqFoBYlZd990brOqELu1do3zDQ2o=; b=1doa/8jELoIWAuXftdjHQBme9XH3iQvje2BzFyJ1cg8J1cn3yBxT4bbR1nTUD94uHBYY SAwpNTvRmlRB+1IpUMCyV4Vuq6i+2cikN3B0pHI63IhgCILhWB+2gbc1xYtF3SxN+hKs +2d8Jta5x40paQYa6A1tqOxCHAKF4XeCErGqR6vJV+dkYjRcgsJVbijd3nQhM+d5NIqZ XiMxRKMcJ3IFRhenDz5xGM8EeW5jcdBB2/usV3qasHOH2T7i1M7HaYAq65iW1GZCiSA+ 0BZTI+xXA5LVd5/mabrRCZ1VzBoQ2C11sdGurKqEEdz/yZD+CK7EwyOUDK/mgOtDQN/t MA== Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2120.oracle.com with ESMTP id 2mxn0qcqv8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 11 Oct 2018 14:41:14 +0000 Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w9BEfD9w020413 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 11 Oct 2018 14:41:13 GMT Original-Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w9BEfCJl010578; Thu, 11 Oct 2018 14:41:13 GMT In-Reply-To: <<834ldsy31m.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4735.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9042 signatures=668706 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=564 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810110143 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:151126 Archived-At: > 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.