From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#33007: 27.0.50; Proposal for function to edit and return string Date: Wed, 17 Oct 2018 01:12:24 +0300 Organization: LINKOV.NET Message-ID: <87pnw992hn.fsf@mail.linkov.net> References: <86pnwh4je8.fsf@protected.rcdrun.com>> <83bm81xl84.fsf@gnu.org> <20181011063321.GD27672@protected.rcdrun.com>> <87lg74zk2k.fsf@web.de>> <834ldsy31m.fsf@gnu.org>> <87efcrazrs.fsf@mail.linkov.net> <6a27b968-1307-44f2-b335-cde4ef51159b@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1539729637 30412 195.159.176.226 (16 Oct 2018 22:40:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 16 Oct 2018 22:40:37 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: Michael Heerdegen , bugs@gnu.support, 33007@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 17 00:40:33 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 1gCY0u-0007n9-Dh for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Oct 2018 00:40:32 +0200 Original-Received: from localhost ([::1]:60473 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCY30-0001YK-TC for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Oct 2018 18:42:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55801) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCXzY-0007LU-8b for bug-gnu-emacs@gnu.org; Tue, 16 Oct 2018 18:39:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCXzT-0006Ye-6D for bug-gnu-emacs@gnu.org; Tue, 16 Oct 2018 18:39:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49827) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gCXzS-0006Wc-Nx for bug-gnu-emacs@gnu.org; Tue, 16 Oct 2018 18:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gCXzS-0006Jh-Km for bug-gnu-emacs@gnu.org; Tue, 16 Oct 2018 18:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Oct 2018 22:39:02 +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.153972951924209 (code B ref 33007); Tue, 16 Oct 2018 22:39:02 +0000 Original-Received: (at 33007) by debbugs.gnu.org; 16 Oct 2018 22:38:39 +0000 Original-Received: from localhost ([127.0.0.1]:54078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gCXz5-0006IP-F9 for submit@debbugs.gnu.org; Tue, 16 Oct 2018 18:38:39 -0400 Original-Received: from pop.dreamhost.com ([64.90.62.162]:38628 helo=pdx1-sub0-mail-a7.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gCXz1-0006IA-K6 for 33007@debbugs.gnu.org; Tue, 16 Oct 2018 18:38:36 -0400 Original-Received: from pdx1-sub0-mail-a7.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a7.g.dreamhost.com (Postfix) with ESMTP id DF6B57F689; Tue, 16 Oct 2018 15:38:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=DGjTWfyjEv8DSPVV0grMTgchuak=; b= PBLuNdldEaOnTisB53V5Wn0rwkKiffFTlrM9LmTP4pBENtUp657c/MfYut64Qkau 1ds3eKcKyUgJj6d3WFIQoH5VoyJaF8vZ5DwF+q3PzuCvguFgSkmbaycr47CLdwXr 028jzafCkivWO6RWYl2dLApCXcrcaeDRUGtGvi99nG0= Original-Received: from localhost.linkov.net (m91-129-96-249.cust.tele2.ee [91.129.96.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a7.g.dreamhost.com (Postfix) with ESMTPSA id 5E1807F680; Tue, 16 Oct 2018 15:38:31 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a7 In-Reply-To: <6a27b968-1307-44f2-b335-cde4ef51159b@default> (Drew Adams's message of "Mon, 15 Oct 2018 15:07:18 -0700 (PDT)") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtkedrfedugdduudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledrleeirddvgeelnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehlohgtrghlhhhoshhtrdhlihhnkhhovhdrnhgvthdpihhnvghtpeeluddruddvledrleeirddvgeelpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepughrvgifrdgruggrmhhssehorhgrtghlvgdrtghomhenucevlhhushhtvghrufhiiigvpedt 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:151327 Archived-At: > * what kind of popping up of the editing buffer > * what to name the editing buffer > * what kind of operation to process the edited text - > a function (e.g. `read' in the case of editing a bookmark > record, `read-string' in some other contexts, etc.). > Maybe `read-string' by default? read-from-minibuffer has the following arguments. Let's see which ones should remain for the new function with a name like read-from-buffer that will read from the editing buffer: PROMPT - probably necessary to insert some explanatory text, such as for example the text inserted at the top of the *Completions* buffer: "Click on a completion to select it. In this buffer, type RET to select the completion near point. Possible completions are:" INITIAL-CONTENTS - an obsolete alternative to DEFAULT-VALUE; KEYMAP - useful to provide a special keymap in the editing buffer; READ - interpret the result as a Lisp object and return that object; HIST - not sure, what functionality should be associated with the history in the editing buffer; DEFAULT-VALUE - necessary to specify the value to return after typing `C-c C-c' in the empty buffer; INHERIT-INPUT-METHOD - necessary as well The new arguments should be the same as currently for the function display-buffer: BUFFER-OR-NAME - the name of the editing buffer; ACTION - display action like display-buffer-below-selected or display-buffer-at-bottom.