From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: The correspondence of the command-name and its key-sequence. Date: Sat, 9 Jan 2021 06:32:45 +0000 (UTC) Message-ID: <62acbe7b-18f5-4b76-9f05-265218a58db7@default> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23338"; mail-complaints-to="usenet@ciao.gmane.io" To: Hongyi Zhao , help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 09 07:35:34 2021 Return-path: Envelope-to: geh-help-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 1ky7qX-0005vQ-90 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 09 Jan 2021 07:35:33 +0100 Original-Received: from localhost ([::1]:33564 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ky7qW-0003Xg-BS for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 09 Jan 2021 01:35:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56678) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ky7px-0003Uy-PQ for help-gnu-emacs@gnu.org; Sat, 09 Jan 2021 01:34:57 -0500 Original-Received: from userp2130.oracle.com ([156.151.31.86]:40144) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ky7pv-0001Vr-6m for help-gnu-emacs@gnu.org; Sat, 09 Jan 2021 01:34:57 -0500 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 1096XuFQ080678; Sat, 9 Jan 2021 06:34:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=7iivpXHVpvtBp7wUfA3U3/q48Yx4IfwovI8viwn3Erc=; b=v8DoUKM1FKxPe+lyfb4e6QWDFxpEYkI/4VaysAxh36IOeiQ6FGy2/PTSklvpfBdW1TPf 1ColsujS3jqRvj4GepCTmQVzt1jfSgPgk6/It8Tm0wBaUWF2YlWMn0wBpvivVj7ehdpg 3KNihCLqBttEoxkj3fb+oOFCr5QCsc1pdK1/LuE664M67eQdMBERctaiRwx/KCfzQ9oN +he9QeGivd1yf/Fxgt0DYDSHe0sxXgVf68rzzu8S/57hA21DNl1D3RWJ6AIUP35BDlRh 9UFhQOmgv3/+TFzMYsywrABTrkM6+NzG5Uv3vipmy5aHpT9cw39Re4ArytmlC+H7rr50 xg== Original-Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2130.oracle.com with ESMTP id 35y3wqr9ru-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 09 Jan 2021 06:34:50 +0000 Original-Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 1096BXMS011466; Sat, 9 Jan 2021 06:32:50 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3030.oracle.com with ESMTP id 35y1ksugk2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 09 Jan 2021 06:32:50 +0000 Original-Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 1096WkdZ027054; Sat, 9 Jan 2021 06:32:49 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5095.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9858 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 bulkscore=0 mlxscore=0 spamscore=0 mlxlogscore=999 adultscore=0 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101090040 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9858 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 lowpriorityscore=0 mlxlogscore=999 mlxscore=0 phishscore=0 impostorscore=0 spamscore=0 priorityscore=1501 adultscore=0 bulkscore=0 malwarescore=0 suspectscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101090041 Received-SPF: pass client-ip=156.151.31.86; envelope-from=drew.adams@oracle.com; helo=userp2130.oracle.com X-Spam_score_int: -45 X-Spam_score: -4.6 X-Spam_bar: ---- X-Spam_report: (-4.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.247, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:127115 Archived-At: > But, it's still very hard for me to understand the correspondence of > the command-name and its key-sequence. To summarize, why use C-g to > represent the command keyboard-quit, instead of other more directly > related forms, say, C-q. I think you're asking why `C-g' is used for quitting/canceling an action, i= nstead of, for example `C-q' (since `q' is mnemonic for "quit"). Somewhere there's a good history of `C-g', including for Emacs, but I can't= recall where I saw it. I'm sure someone on this list will point you to it= . I'll at least point to this Wikipedia page: https://en.wikipedia.org/wiki/Bell_character That tells you that `C-g' was assigned to a bell code, i.e., as an alert. = And before `C-g', a bell code rang a bell on a teletype or tickertape, to a= lert a human operator. Bell codes apparently go back to 1870. In Emacs, using `C-g' typically also produces a bell sound. (Function `ding= ' does that as well.) See also: https://en.wikipedia.org/wiki/Control_character "The bell character (BEL), which rang a bell to alert operators, was also a= n early teletype control character." "7 (bell, BEL, \a, ^G), which may cause the device to emit a warning such a= s a bell or beep sound or the screen flashing." and https://en.wikipedia.org/wiki/Control_key "For example, the character or "G", whose ASCII code is 71 in base 10, or 1= 00 0111 in binary, would be transformed into the binary code 000 0111 (7 in= decimal), which is assigned to the bell character."