From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: reader@newsguy.com Newsgroups: gmane.emacs.help Subject: Re: jump between if-fi Date: Mon, 31 Dec 2007 20:29:28 -0600 Organization: Still searching... Message-ID: <87wsqujn1z.fsf@newsguy.com> References: <87y7bbpz12.fsf@newsguy.com> <20071231162438.GA1211@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1199154614 27702 80.91.229.12 (1 Jan 2008 02:30:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Jan 2008 02:30:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 01 03:30:29 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J9Wtf-0001Xm-5R for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Jan 2008 03:30:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J9WtJ-00030a-BS for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Dec 2007 21:30:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J9Wt3-0002yM-4S for help-gnu-emacs@gnu.org; Mon, 31 Dec 2007 21:29:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J9Wt1-0002ug-38 for help-gnu-emacs@gnu.org; Mon, 31 Dec 2007 21:29:48 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J9Wt0-0002uP-Tw for help-gnu-emacs@gnu.org; Mon, 31 Dec 2007 21:29:46 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J9Wt0-0007fa-JN for help-gnu-emacs@gnu.org; Mon, 31 Dec 2007 21:29:46 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1J9Wsw-0005Vt-Of for help-gnu-emacs@gnu.org; Tue, 01 Jan 2008 02:29:42 +0000 Original-Received: from adsl-75-3-178-22.dsl.chcgil.sbcglobal.net ([75.3.178.22]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 01 Jan 2008 02:29:42 +0000 Original-Received: from reader by adsl-75-3-178-22.dsl.chcgil.sbcglobal.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 01 Jan 2008 02:29:42 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 49 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: adsl-75-3-178-22.dsl.chcgil.sbcglobal.net User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:xo6y9P7yYtQ7uL48MkLvSf8X7h8= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:50407 Archived-At: Alan Mackenzie writes: > Hi, Reader! [...] > This is a moderately difficult exercise in Elisp programming. I would > suggest something like this: > He-he... whats moderate for you appears to be clear over the top for me. [...] snipped a very nice outline of how to go at it. > > When you've got it working, please submit it to Emacs for inclusion in > Emacs 23! Best of luck! Yes that would be very nice but is also very unlikely. My skill level would have to be improved several hundred percentage points in a pretty short while. I guess not too many emacs developers really do much shell scripting. Probably using a lot more high level scripting languages (perl, lisp, python and etc). I run into portability problems more with shell scripts since something like perl is the same everywhere. My perl is coming along well enough to use it for all scripting but I still have many older shell scripts I'd hate to have to convert. On a slightly different subject... if I may torture the threading rules a little: Speaking of portability... I'd like to get my emacs init files to be more portable from one machine to the next but one I'm dealing with now has different keyboard responses than most of the others and requires differnt keybindings for delete-backward-char and a few other things. I'd like to include those in .emacs but don't know how to separate them off by making them depend on which host emacs is running on. Can you give me a push in that direction? How to access the env variable HOSTNAME or slurp the results of the hostname shell command and make the keybindings dependant on the results. I've seen examples of something similar where the code tests if its fsf emacs or Xemacs as a condition.