From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: capslock changes control characters? Date: Fri, 07 Mar 2008 18:04:17 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204931131 13791 80.91.229.12 (7 Mar 2008 23:05:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Mar 2008 23:05:31 +0000 (UTC) Cc: Andreas Schwab , christopher.ian.moore@gmail.com, rms@gnu.org, emacs-pretest-bug@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 08 00:05:56 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JXlcp-0000dl-6R for ged-emacs-devel@m.gmane.org; Sat, 08 Mar 2008 00:05:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXlcH-0006Y4-JL for ged-emacs-devel@m.gmane.org; Fri, 07 Mar 2008 18:04:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JXlcB-0006VK-Ig for emacs-devel@gnu.org; Fri, 07 Mar 2008 18:04:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JXlc9-0006Tv-Ja for emacs-devel@gnu.org; Fri, 07 Mar 2008 18:04:34 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXlc9-0006Tp-E9 for emacs-devel@gnu.org; Fri, 07 Mar 2008 18:04:33 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JXlc9-00076x-20 for emacs-devel@gnu.org; Fri, 07 Mar 2008 18:04:33 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JXlc8-00025t-Tk for emacs-pretest-bug@gnu.org; Fri, 07 Mar 2008 18:04:32 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JXlc5-000769-Nh for emacs-pretest-bug@gnu.org; Fri, 07 Mar 2008 18:04:32 -0500 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JXlc5-000763-EE; Fri, 07 Mar 2008 18:04:29 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 2B41F2CF6BD; Fri, 7 Mar 2008 18:04:29 -0500 (EST) Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 922D93FE0; Fri, 7 Mar 2008 18:04:17 -0500 (EST) Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 7EA766C808; Fri, 7 Mar 2008 18:04:17 -0500 (EST) In-Reply-To: (Kenichi Handa's message of "Thu, 06 Mar 2008 20:20:29 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.71, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_AFFAIRE 0.11) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:91672 gmane.emacs.pretest.bugs:21446 Archived-At: > I think the current Emacs doesn't have a clear view about > when and how to resolve modifiers. For instance, S-i is > resolved to `I' by XLookupString, C-i is resolved to 9 in > make_ctrl_char. Then I think C-S-i should also be resolved > somewher before it's given to Lisp, at least before it's > given to Lisp as character. It should still be possible to distinguish key-bindings to C-i (i.e. TAB) and C-S-i (i.e. S-TAB), provided the underlying terminal allows it, obviously. Does your code still allow this distinction? > So I resolved the modifiers in those functions than in, for > instance, char-to-string or insert. Agreed. `insert' and `char-to-string' have no business messing with keys. > Resolving of M-i is surely questionable, but as Emacs has > accepeted M-i upon (insert (read-char)) for long, I resolved > them too for backward compatibility. I think this was just an accidental misfeature and would should not preserve this kind of backward compatibility. I can't imagine how it could break any existing elisp package, and if a user used that in the past, there are plenty of alternative ways to get the same result in a saner way. Stefan