From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rustom Mody Newsgroups: gmane.emacs.devel Subject: Re: APL mode Date: Mon, 14 Oct 2013 16:38:49 +0530 Message-ID: References: <2556707.G5KkrEK5zp@descartes> <2175241.EV4ttzPlpJ@descartes> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1381748956 29892 80.91.229.3 (14 Oct 2013 11:09:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Oct 2013 11:09:16 +0000 (UTC) Cc: =?ISO-8859-1?Q?R=FCdiger_Sonderfeld?= , emacs-devel To: Xue Fuqiao Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 14 13:09:21 2013 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 1VVg1Y-00005Z-TO for ged-emacs-devel@m.gmane.org; Mon, 14 Oct 2013 13:09:21 +0200 Original-Received: from localhost ([::1]:36211 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVg1V-0003Lm-FP for ged-emacs-devel@m.gmane.org; Mon, 14 Oct 2013 07:09:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47140) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVg1R-0003Lc-EC for emacs-devel@gnu.org; Mon, 14 Oct 2013 07:09:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VVg1Q-0006Ua-2T for emacs-devel@gnu.org; Mon, 14 Oct 2013 07:09:13 -0400 Original-Received: from mail-pd0-x22b.google.com ([2607:f8b0:400e:c02::22b]:62660) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVg1P-0006UP-Rv for emacs-devel@gnu.org; Mon, 14 Oct 2013 07:09:12 -0400 Original-Received: by mail-pd0-f171.google.com with SMTP id g10so7259572pdj.16 for ; Mon, 14 Oct 2013 04:09:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=ne7BMIDMSFKLpIKBZmVuzi3y515qtnuPCDuHUd87H5U=; b=WsIb/ACH/1QOYLaTQ/oL++WWeurtopyTbxbdN0HL+M1dxznkqJ/G6W2INdEib3BE8e ti/T4p1CeZallxjC4oXHV6C1QtsZjo/eWTwbhMWPpVujeHYPhKpXnc/VkrGcD4qqPgUG rFnvm2UgM3kDOnGEn7BjKmAEDeOvOyigOG3U5JHS98DfiUYnI7RWutVkjiUhsN0dIQZ9 U+V46jSv0OSJy/u4cYNjCELiFEwBm1TEh2H/QhFjdjZPeYa1IjEg0PA9eAtGXRLPhupx LvEcmYkOvw9QlQ/9/plaeJ74kTwcQIutbKxG0ul8TNMuq0COuXEh9JPrtuLlk6nMKmXA 7ASg== X-Received: by 10.67.21.130 with SMTP id hk2mr37412504pad.76.1381748950351; Mon, 14 Oct 2013 04:09:10 -0700 (PDT) Original-Received: by 10.68.133.198 with HTTP; Mon, 14 Oct 2013 04:08:49 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c02::22b 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:164196 Archived-At: On Mon, Oct 14, 2013 at 1:51 PM, Xue Fuqiao wrote: > On Mon, Oct 14, 2013 at 1:00 PM, Rustom Mody wrot= e: >> F8 and F9 are made to be like dead-keys by making them emacs prefix keys= . > > FYI in (info "(elisp) Key Binding Conventions"): > > * Function keys through without modifier keys are also > reserved for users to define. > > * Sequences consisting of `C-c' followed by a control character or a > digit are reserved for major modes. > > * Sequences consisting of `C-c' followed by `{', `}', `<', `>', `:' > or `;' are also reserved for major modes. > Thanks Xue and R=C3=BCdiger So we can change (setq apl-map1 (make-sparse-keymap)) (define-key apl-mode-map (kbd "") apl-map1) (setq apl-map2 (make-sparse-keymap)) (define-key apl-mode-map (kbd "") apl-map2) to (setq apl-map1 (make-sparse-keymap)) (define-key apl-mode-map (kbd "C-c 1") apl-map1) (setq apl-map2 (make-sparse-keymap)) (define-key apl-mode-map (kbd "C-c 2") apl-map2) In fact I dont think that either is very convenient anyway. Ideally it should be a modifier key like AltGr or WinMenu(?). Something that will be minimally intrusive on rest of emacs and rest of X and be reasonably portable. However I could not wrap my head round xmodmap so consider this as an interim emacsy solution. On Mon, Oct 14, 2013 at 4:10 PM, R=C3=BCdiger Sonderfeld wrote: > F8/F9 might be a bad choice because they are user keys. But overall you > approach seems like a good idea. APL programmers are certainly likely to= use > the keyboard approach. I personally prefer the quail input method though= . > But then again I use M-x quite often in Emacs as well instead of keybindi= ngs. How does that work?? Ive used quail like so: (quail-defrule ".." ?=E0=A5=A5) (quail-defrule "." ?=E0=A5=A4) for entering sanskrit text (those two characters are two kinds of 'full-stops' in sanskrit) But then you cant enter a normal English fullstop. This is fine for entirely sanskrit texts. However here we need the w key to generate sometimes plain ol w , sometimes =E2=8D=B5 sometimes =E2=8C=BD . So some kind of modedness is ine= vitably required no?? Rusi -- http://blog.languager.org