all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: <emacs-devel@gnu.org>
Subject: `quit_char', `set-quit-char', and `set-input-mode'
Date: Fri, 11 May 2012 16:55:46 -0700	[thread overview]
Message-ID: <5078FDFD9C3A4C45AA44B3768CBAA2B1@us.oracle.com> (raw)

* 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.
 




             reply	other threads:[~2012-05-11 23:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-11 23:55 Drew Adams [this message]
2012-05-12  9:57 ` `quit_char', `set-quit-char', and `set-input-mode' Thien-Thi Nguyen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5078FDFD9C3A4C45AA44B3768CBAA2B1@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.