From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: `quit_char', `set-quit-char', and `set-input-mode' Date: Fri, 11 May 2012 16:55:46 -0700 Message-ID: <5078FDFD9C3A4C45AA44B3768CBAA2B1@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1336780563 31948 80.91.229.3 (11 May 2012 23:56:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 May 2012 23:56:03 +0000 (UTC) To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 12 01:56:03 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SSzgo-0004Zb-Gg for ged-emacs-devel@m.gmane.org; Sat, 12 May 2012 01:56:02 +0200 Original-Received: from localhost ([::1]:58410 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSzgo-0005Wj-0A for ged-emacs-devel@m.gmane.org; Fri, 11 May 2012 19:56:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34396) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSzgk-0005WT-Li for emacs-devel@gnu.org; Fri, 11 May 2012 19:55:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SSzgi-0002vA-Vx for emacs-devel@gnu.org; Fri, 11 May 2012 19:55:58 -0400 Original-Received: from acsinet15.oracle.com ([141.146.126.227]:43723) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSzgi-0002ud-Ou for emacs-devel@gnu.org; Fri, 11 May 2012 19:55:56 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by acsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q4BNtqqp020110 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 11 May 2012 23:55:53 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q4BNtq3i026882 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 11 May 2012 23:55:52 GMT Original-Received: from abhmt115.oracle.com (abhmt115.oracle.com [141.146.116.67]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q4BNtqDo026705 for ; Fri, 11 May 2012 18:55:52 -0500 Original-Received: from dradamslap1 (/10.159.217.132) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 11 May 2012 16:55:51 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Ac0v0ZV1GOznXmFiQS+N8NJUEQRcuA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 141.146.126.227 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:150449 Archived-At: * Variable `quit-char' is only in the C code. There is no such Lisp variable. * Function `set-quit-char' exists, but is not even mentioned in the Elisp manual. * Function `set-input-mode' is mentioned in the manual, but it just seems more roundabout than `set-quit-char'. Why isn't `set-quit-char' documented as the way to set the quit character? Is there some advantage to using `set-input-mode' for this? Why don't we have a Lisp variable for this (even a user option perhaps)? Why must we use special functions to set this character, rather than just using `set' with a variable? If we had a variable, then code could check whether some event was equal to the quit character, instead of checking only the hard-coded value 7 (C-g). If something changes the `quit_char' from C-g to something else, then code testing 7 will no longer DTRT, no? I'm guessing there are good reasons for some or all of these things - reasons that would help me understand better. Explanation appreciated.