From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pascal Bourguignon Newsgroups: gmane.emacs.help Subject: Re: ILC2005: McCarthy denounces Common Lisp, "Lisp", XML, and Rahul Date: Thu, 07 Jul 2005 15:34:55 +0200 Organization: [posted via Easynet Spain] Message-ID: <87d5puyc1s.fsf@thalassa.informatimago.com> References: <64vundua.fsf@comcast.net> <86fyuwhj09.fsf@drjekyll.mkbuelow.net> <1120409203.491118.234340@z14g2000cwz.googlegroups.com> <868y0nfy9g.fsf@drjekyll.mkbuelow.net> <42C8661F.7BB80E2F@freenet.de> <86pstze7mr.fsf@drjekyll.mkbuelow.net> <86wto6vfa6.fsf@drjekyll.mkbuelow.net> <86r7ee74qo.fsf@drjekyll.mkbuelow.net> <87slyuw0ka.fsf@thalassa.informatimago.com> <100sp2-f0c.ln1@ibhome.cgitftp.uiggm.nsc.ru> <87ekac1gxk.fsf@thalassa.informatimago.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1120743680 20616 80.91.229.2 (7 Jul 2005 13:41:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Jul 2005 13:41:20 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 07 15:41:15 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DqWbb-00069m-N4 for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Jul 2005 15:39:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DqWcV-0003RC-P5 for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Jul 2005 09:40:51 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!proxad.net!proxad.net!news.clara.net!wagner.news.clara.net!easynet-monga!easynet.net!easynet-post2!not-for-mail Original-Newsgroups: comp.lang.lisp,gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:7r42YAg3pBPJW6yLOGyYrR/+eIw= Original-Lines: 51 Original-NNTP-Posting-Host: 62.93.174.79 Original-X-Trace: DXC==C`]mE5\0U0k5Hc>ZVL@\00mDM\=e`Rh8m9FY3?HjZ50 Original-Xref: shelby.stanford.edu comp.lang.lisp:170855 gnu.emacs.help:132350 Original-To: help-gnu-emacs@gnu.org 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:27828 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27828 Ivan Boldyrev writes: > On 9162 day of my life Pascal Bourguignon wrote: >>>> [ Now, if anybody could explain me why it doesn't work automatically >>>> when I put this in my ~/.emacs: >>>> >>>> (case window-system >>>> ((nil) >>>> (message "houra") >>>> (normal-erase-is-backspace-mode)) ; never works :-( >>> >>> Does at least (message "houra") work? >>> Try also to use (normal-erase-is-backspace-mode 1) >> >> Yes, houra is logged. And with: >> (setq inhibit-default-init t) ; and >> (normal-erase-is-backspace-mode 1) ; it still leaves >> C-h bound to delete-backward-char, and >> DEL translated to C-d bound to delete-char > > What about > > (add-hook 'emacs-startup-hook > (lambda () > (case window-system > ...))) (add-hook 'emacs-startup-hook (lambda () (message "setting up the keyboard") (case window-system ((nil) (message "houra") (normal-erase-is-backspace-mode 1)) ((x) (define-key global-map [(delete)] "\C-d") (make-face-bold 'bold-italic)) ((mac) (setq mac-command-key-is-meta nil mac-reverse-ctrl-meta nil) (set-keyboard-coding-system 'mac-roman))))) I get: setting up the keyboard houra in the *Message*, but C-h is still delete-backward-char and DEL delete-char. -- __Pascal Bourguignon__ http://www.informatimago.com/ This is a signature virus. Add me to your signature and help me to live