From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!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: Tue, 26 Apr 2022 18:36:13 +0300 Organization: LINKOV.NET Message-ID: <86sfpzvpoq.fsf@mail.linkov.net> References: <86pnwh4je8.fsf@protected.rcdrun.com> <83bm81xl84.fsf@gnu.org> <20181011063321.GD27672@protected.rcdrun.com> <87lg74zk2k.fsf@web.de> <87v8uybp1c.fsf@gnus.org> <871qxlj293.fsf@web.de> <875ymx7ga6.fsf@gnus.org> <86pml5gp6m.fsf@mail.linkov.net> <87tuag3ikx.fsf@web.de> <875ymwjhhi.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26709"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: Michael Heerdegen , Jean Louis , 33007@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 26 17:54:38 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1njNWQ-0006pd-HC for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 26 Apr 2022 17:54:38 +0200 Original-Received: from localhost ([::1]:41768 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1njNWN-0004gw-ED for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 26 Apr 2022 11:54:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njNVq-0004eV-EP for bug-gnu-emacs@gnu.org; Tue, 26 Apr 2022 11:54:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46435) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1njNVq-0005uh-58 for bug-gnu-emacs@gnu.org; Tue, 26 Apr 2022 11:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1njNVq-0000l6-4D for bug-gnu-emacs@gnu.org; Tue, 26 Apr 2022 11:54: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, 26 Apr 2022 15:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33007 X-GNU-PR-Package: emacs Original-Received: via spool by 33007-submit@debbugs.gnu.org id=B33007.16509884272859 (code B ref 33007); Tue, 26 Apr 2022 15:54:02 +0000 Original-Received: (at 33007) by debbugs.gnu.org; 26 Apr 2022 15:53:47 +0000 Original-Received: from localhost ([127.0.0.1]:40325 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1njNVb-0000k2-L0 for submit@debbugs.gnu.org; Tue, 26 Apr 2022 11:53:47 -0400 Original-Received: from relay2-d.mail.gandi.net ([217.70.183.194]:44767) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1njNVW-0000jT-EJ for 33007@debbugs.gnu.org; Tue, 26 Apr 2022 11:53:42 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id E44B940008; Tue, 26 Apr 2022 15:53:34 +0000 (UTC) In-Reply-To: <875ymwjhhi.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 26 Apr 2022 11:56:09 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:230736 Archived-At: >> Additionally: we have enough room to include such instructions in the >> buffer itself. There are many keybindings for aborting in use (also in >> third party packages) like C-c ESC, C-c C-k, C-c C-a. And when you need >> to know which one it was the message is long gone. We could use the >> header-line, or the mode-line, or the buffer header used when using the >> :help-text key. > > Putting the instructions into a header line might be the nicest solution > here... This is exactly what org-src-mode does after invoking ‘C-c '’ (org-edit-special). Its header-line-format is: "Edit, then exit with `\\[org-edit-src-exit]' or abort with `\\[org-edit-src-abort]'"