unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Pascal Bourguignon <pjb@informatimago.com>
Subject: Re: ILC2005: McCarthy denounces Common Lisp, "Lisp", XML, and Rahul
Date: Thu, 07 Jul 2005 15:34:55 +0200	[thread overview]
Message-ID: <87d5puyc1s.fsf@thalassa.informatimago.com> (raw)
In-Reply-To: j09vp2-sph.ln1@ibhome.cgitftp.uiggm.nsc.ru

Ivan Boldyrev <boldyrev+nospam@cgitftp.uiggm.nsc.ru> 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

  reply	other threads:[~2005-07-07 13:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <OYFue.13881$XB2.3578516@twister.nyc.rr.com>
     [not found] ` <Ao2dnSrQPYTKcVjfRVn-qg@speakeasy.net>
     [not found]   ` <u64vuarhm.fsf@nhplace.com>
     [not found]     ` <64vundua.fsf@comcast.net>
     [not found]       ` <ubr5mvsr2.fsf@nhplace.com>
     [not found]         ` <uoe9lgkhf.fsf@nhplace.com>
     [not found]           ` <sqr7egx2kr.fsf@cam.ac.uk>
     [not found]             ` <86fyuwhj09.fsf@drjekyll.mkbuelow.net>
     [not found]               ` <1120409203.491118.234340@z14g2000cwz.googlegroups.com>
     [not found]                 ` <868y0nfy9g.fsf@drjekyll.mkbuelow.net>
     [not found]                   ` <42C8661F.7BB80E2F@freenet.de>
     [not found]                     ` <86pstze7mr.fsf@drjekyll.mkbuelow.net>
     [not found]                       ` <uoe9jtmdz.fsf@nhplace.com>
     [not found]                         ` <uk6k77zrb.fsf@news.dtpq.com>
     [not found]                           ` <86wto6vfa6.fsf@drjekyll.mkbuelow.net>
     [not found]                             ` <u64vq8mz1.fsf@news.dtpq.com>
     [not found]                               ` <86r7ee74qo.fsf@drjekyll.mkbuelow.net>
     [not found]                                 ` <uoe9i73yx.fsf@news.dtpq.com>
     [not found]                                   ` <m3u0jaw5vv.fsf@4dv.net>
     [not found]                                     ` <87slyuw0ka.fsf@thalassa.informatimago.com>
     [not found]                                       ` <100sp2-f0c.ln1@ibhome.cgitftp.uiggm.nsc.ru>
2005-07-06  8:23                                         ` ILC2005: McCarthy denounces Common Lisp, "Lisp", XML, and Rahul Pascal Bourguignon
2005-07-07  9:24                                           ` Ivan Boldyrev
2005-07-07 13:34                                             ` Pascal Bourguignon [this message]
2005-07-07 15:19                                               ` Kevin Rodgers
     [not found]                                               ` <mailman.2452.1120750028.2857.help-gnu-emacs@gnu.org>
2005-07-07 15:45                                                 ` Pascal Bourguignon
2005-07-08 10:34                                               ` Ivan Boldyrev
2005-07-08 12:26                                                 ` Pascal Bourguignon
2005-07-09 14:51                                                   ` Ivan Boldyrev
2005-07-09 16:50                                                     ` Pascal Bourguignon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d5puyc1s.fsf@thalassa.informatimago.com \
    --to=pjb@informatimago.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).