From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#24577: 25.1; Proposal to improve C-u C-h c behavior Date: Sat, 01 Oct 2016 09:54:38 +0300 Message-ID: <83bmz4mudt.fsf@gnu.org> References: <87zimovf4z.fsf@gmail.com> <878tu8zkx3.fsf@violet.siamics.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1475304933 11965 195.159.176.226 (1 Oct 2016 06:55:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 1 Oct 2016 06:55:33 +0000 (UTC) Cc: dpaduchikh@gmail.com, 24577@debbugs.gnu.org To: Ivan Shmakov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 01 08:55:29 2016 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 1bqECZ-0000uk-0U for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Oct 2016 08:55:15 +0200 Original-Received: from localhost ([::1]:48512 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqECX-00056I-FJ for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Oct 2016 02:55:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46639) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqECQ-00054K-Ho for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2016 02:55:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bqECM-0005dS-8m for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2016 02:55:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34006) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqECM-0005dO-5k for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2016 02:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bqECL-0006ZI-W6 for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2016 02:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Oct 2016 06:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24577 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24577-submit@debbugs.gnu.org id=B24577.147530488425220 (code B ref 24577); Sat, 01 Oct 2016 06:55:01 +0000 Original-Received: (at 24577) by debbugs.gnu.org; 1 Oct 2016 06:54:44 +0000 Original-Received: from localhost ([127.0.0.1]:40196 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bqEC3-0006Yi-Ve for submit@debbugs.gnu.org; Sat, 01 Oct 2016 02:54:44 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55606) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bqEC2-0006YU-Iv for 24577@debbugs.gnu.org; Sat, 01 Oct 2016 02:54:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bqEBw-0005X2-CU for 24577@debbugs.gnu.org; Sat, 01 Oct 2016 02:54:37 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60341) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqEBs-0005WO-Gk; Sat, 01 Oct 2016 02:54:32 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1368 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bqEBq-0007Nm-Ob; Sat, 01 Oct 2016 02:54:31 -0400 In-reply-to: <878tu8zkx3.fsf@violet.siamics.net> (message from Ivan Shmakov on Sat, 01 Oct 2016 05:40:40 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:123813 Archived-At: > From: Ivan Shmakov > Date: Sat, 01 Oct 2016 05:40:40 +0000 > Cc: Dmitri Paduchikh > > >>>>> Dmitri Paduchikh writes: > > > C-u C-h c does not work in read-only buffers. And even if the buffer > > is writable it's rarely an appropriate place to insert info about key > > bindings. I think it would be better if C-u C-h c placed its output > > into kill ring and printed it in the echo area instead of the current > > behavior. > > I believe that this behavior is a common idiom in Emacs. > For example, M-! date RET shows the current date and time in > echo area, while C-u M-! date RET inserts it at point – with > both actions making sense depending on the situation. > > I guess C-u C-h c behavior is mainly useful when writing about > Emacs itself (including writing bug reports, or conversing on > IRC, etc.), but I can easily see it being handy nevertheless. > > Also, for read-only buffers, one can use C-h c without C-u, and > then copy the result from the *Messages* buffer. > > On the other hand, I’m not aware of any of Emacs commands adding > the result of some operation directly to the kill ring. 100% agreement.