all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: <help-gnu-emacs@gnu.org>, "'Tom Roche'" <Tom_Roche@pobox.com>
Subject: RE: how to extend `C-x 8` keymap?
Date: Mon, 7 Nov 2011 10:57:58 -0800	[thread overview]
Message-ID: <577C7CCBFA804D79A51EEB11A98465AD@us.oracle.com> (raw)
In-Reply-To: <87fwhzn5ge.fsf@pobox.com>

> + (define-key iso-transl-ctl-x-8-map "d" [?d])
> + (define-key iso-transl-ctl-x-8-map "D" [??])
> 
> I get Debugger entered--Lisp error:
> (void-variable iso-transl-ctl-x-8-map)

Oh, right.

You should be able to do the same thing, but quoting the keymap var (actually, a
function that DTRT):

(define-key 'iso-transl-ctl-x-8-map "d" [?d])
(define-key 'iso-transl-ctl-x-8-map "D" [??])
            ^
            |
            +-- quote mark

If that doesn't work then try this before using the unquoted sexps:

(require 'iso-transl)




  reply	other threads:[~2011-11-07 18:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-07 17:08 how to extend `C-x 8` keymap? Tom Roche
2011-11-07 17:25 ` Drew Adams
2011-11-07 18:38 ` Tom Roche
2011-11-07 18:57   ` Drew Adams [this message]
2011-11-07 20:03   ` Tom Roche

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

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

  git send-email \
    --in-reply-to=577C7CCBFA804D79A51EEB11A98465AD@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=Tom_Roche@pobox.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.