From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c1b4b86c91ace6ed X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-10 05:52:27 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed-west.nntpserver.com!hub1.meganetnews.com!nntpserver.com!news-xfer.siscom.net!nntp2.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!bin4.nnrp.aus1.giganews.com.POSTED!not-for-mail Sender: Stephe@TAKVER Newsgroups: comp.lang.ada Subject: Re: Ada Mode for Emacs References: From: Stephen Leake Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-GC-Trace: gv1-b4RMFBapnBILayf3LYSANSQjWKgVMC1hucngfw= NNTP-Posting-Date: Mon, 10 Jun 2002 07:52:10 CDT Organization: Giganews.Com - Premium News Outsourcing X-Trace: sv3-VmGNyClB0lPy+xV/FSiaamwWQKih9YVpG1mL+lYW7qiKbermteO+KI3H/pItlzHO/WIjLmx/0YokiCQ!GqCGzE2lvoBSII2fBoj/kzkjmGaABgoCNuYuXoB6tL7ly+hlhGb5Jjg= X-Complaints-To: abuse@comcast.com X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly Date: Mon, 10 Jun 2002 12:52:10 GMT Xref: archiver1.google.com comp.lang.ada:25667 Date: 2002-06-10T12:52:10+00:00 List-Id: "chris.danx" writes: > "Stephen Leake" wrote in message > news:wk3cvwqdkv.fsf@acm.org... > > > The behaviour you want is implemented by the function > > > > tab-to-tab-stop > > > > So you need to bind that to a key in ada-mode. I suggest S-tab or > > C-tab, rather than tab itself: > > > > (define-key ada-mode-map [C-tab] 'tab-to-tab-stop) > > :( That doesn't work. It says "identifier not found" when C-tab is pressed > when there's no identifier and "no cross-reference available for reserved > word" so I'm guessing C-tab is redefined elsewhere. Ah. Yes. You need to run the "define-key" line after ada-mode is loaded, so it is run _after_ the default ada-mode key bindings. You do this by using eval-after-load: (eval-after-load "ada-mode" '(load "ada-mode-keys")) Then put your key bindings in the file ada-mode-keys.el. Make sure this file is in a directory on load-path. > M-tab won't work on Windows since M is alt and alt-tab is switch > between tasks/programs within Windows, S-tab is assigned to untab. > > I reassigned s-tab to tab-to-tab-stop to test it, but it gives "not > implemented"! Hmm. I don't know where that message is comming from. > Assigning it to another sequence "C-x\C-g" (which is free) just > gives a ping sound each time it's pressed (no text in the > minibuffer) Yes, C-g is _always_ "abort key sequence"; you cannot use C-g in any key sequence. > :( This is maddening! Yes. Emacs can be very confusing and frustrating, until you get used to it. Since we have drifted far from Ada, I suggest we take this off line; email me directly. -- -- Stephe