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 21:23:41 +0000 (UTC) Message-ID: <6abb8c54-145a-43d7-baa6-208ec0f7cf5f@default> References: <86pnwh4je8.fsf@protected.rcdrun.com> <83bm81xl84.fsf@gnu.org> <20181011063321.GD27672@protected.rcdrun.com> <87lg74zk2k.fsf@web.de> <834ldsy31m.fsf@gnu.org> <87y3b4xmjk.fsf@web.de> 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 1539292924 2472 195.159.176.226 (11 Oct 2018 21:22:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 11 Oct 2018 21:22:04 +0000 (UTC) Cc: bugs@gnu.support, 33007@debbugs.gnu.org To: Michael Heerdegen , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 11 23:22:00 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 1gAiP9-0000Tl-V8 for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Oct 2018 23:22:00 +0200 Original-Received: from localhost ([::1]:37220 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAiRG-0007Tg-Hv for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Oct 2018 17:24:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54154) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAiRA-0007Tb-6R for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2018 17:24:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAiR8-0002Mx-Ap for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2018 17:24:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41330) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gAiR8-0002Mj-4I for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2018 17:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gAiR7-0003EJ-So for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2018 17:24:01 -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 21:24: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.153929303512398 (code B ref 33007); Thu, 11 Oct 2018 21:24:01 +0000 Original-Received: (at 33007) by debbugs.gnu.org; 11 Oct 2018 21:23:55 +0000 Original-Received: from localhost ([127.0.0.1]:45588 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gAiR1-0003Dt-BF for submit@debbugs.gnu.org; Thu, 11 Oct 2018 17:23:55 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:53206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gAiQz-0003Dg-NC for 33007@debbugs.gnu.org; Thu, 11 Oct 2018 17:23:54 -0400 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w9BLNlSh150241; Thu, 11 Oct 2018 21:23:47 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=XD5lW6gOjnBiG1YCdKUN7Vx9X1jzWy5L49cyoQS4CMw=; b=e8wx1wgqWUggYIVApN5jjNeUybOGF4hHhJOKAYHXqOM5cbXzvCmvQTqskP4Pb2H84XOA 2jruwOYOYCTmsDO5atu5dUGhuQpGQ02n7c3TUMks7Y7cESdgim7C3RD+s2pds1ydkVh/ xVwMq/l9PsxRQ1DZsR1Q5gJ1YRENDdPH4lY9yTFny3nWXj7hywOlxPvZHD4aQHCntZZ6 fo6Spepc+RgoyXvfTmBGFjjMp6smoYsvRej5NPVDjWsdYD8dO8nfOUpomj84kmrqOHQf VOtZnr37o7Y71uxJisetvZKrpANtIrlatvu4iZkG9PdcK4Xg5uHPjw28mHouzWYdIxkY Sg== Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2120.oracle.com with ESMTP id 2mxnprewnq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 11 Oct 2018 21:23:47 +0000 Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w9BLNhCH026853 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 11 Oct 2018 21:23:43 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 w9BLNgus030793; Thu, 11 Oct 2018 21:23:43 GMT In-Reply-To: <87y3b4xmjk.fsf@web.de> 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=9043 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=864 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810110201 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:151144 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? >=20 > The use cases I have in mind don't fit there. If you for example want > an interface to be able to attach multi line text notes to articles in > Gnus, it makes no sense to use a Customize or EWW buffer for that. >=20 > `org-capture' is another (already implemented) example: It prompts you > for a new note or task using a pop-up buffer. This time, this buffer is > in org mode. >=20 > Magit's buffer prompting for a commit message is yet another example. > In all these cases, you don't yet have a buffer that you could use for > input, unlike Customize or EWW, and the minibuffer is not good for the > task. Plus adding/editing a bookmark annotation, plus... The need is a general one. And the appropriate modes for possible editing b= uffers are unlimited. And what-to-do-with-the-result-of-editing is also unl= imited. What's needed is a function that lets you specify such things: editing mode= and a function (such as `read', for Lisp code) to apply to the buffer cont= ent after editing (i.e., as part of "sending" or returning it). Also needed probably is some way to provide text to be inserted at the top = of the buffer as instructions, suitably commented-out if needed. (Alternatively, put such text in a separate pop-up buffer, like `M-x report= -emacs-bug' does with (some of) its instructions/help.)