unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#1462: Document/implement local-unset-map
@ 2008-12-01 17:46 jidanni
  2008-12-01 18:00 ` bug#1463: " jidanni
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: jidanni @ 2008-12-01 17:46 UTC (permalink / raw)
  To: bug-gnu-emacs; +Cc: oub, cyd

(info "(emacs)Local Keymaps") and (info "(emacs)Rebinding") at the
most talk about `M-x local-unset-key <RET> KEY'
But e.g., I very much want to unset the whole wikipedia-mode-map. It
should say how to do that. I.e., how to make it like we never knew
about any wikipedia-mode-map (that dares to tinker with basic emacs
keys like "\M-u" etc.).







^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#1463: Document/implement local-unset-map
  2008-12-01 17:46 bug#1462: Document/implement local-unset-map jidanni
@ 2008-12-01 18:00 ` jidanni
  2008-12-01 18:12 ` bug#1464: wikipedia-mode-map (was: Document/implement local-unset-map) Uwe Brauer
  2008-12-02 14:15 ` bug#1462: Document/implement local-unset-map Kevin Rodgers
  2 siblings, 0 replies; 5+ messages in thread
From: jidanni @ 2008-12-01 18:00 UTC (permalink / raw)
  To: bug-gnu-emacs; +Cc: oub, cyd

I see, one can only have one local map. OK, doing this instead in ~/.emacs-w3m

(autoload 'wikipedia-mode "wikipedia-mode.el")
(add-hook
 'w3m-form-input-textarea-mode-hook
 (lambda nil
   (turn-off-auto-fill)
   (wikipedia-mode)
   (longlines-mode nil)
   (define-key wikipedia-mode-map "\C-c\C-c" 'w3m-form-input-textarea-set)
   (define-key wikipedia-mode-map "\M-u" 'upcase-word)
   ))







^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#1464: wikipedia-mode-map (was: Document/implement local-unset-map)
  2008-12-01 17:46 bug#1462: Document/implement local-unset-map jidanni
  2008-12-01 18:00 ` bug#1463: " jidanni
@ 2008-12-01 18:12 ` Uwe Brauer
  2008-12-01 18:28   ` bug#1465: " jidanni
  2008-12-02 14:15 ` bug#1462: Document/implement local-unset-map Kevin Rodgers
  2 siblings, 1 reply; 5+ messages in thread
From: Uwe Brauer @ 2008-12-01 18:12 UTC (permalink / raw)
  To: jidanni; +Cc: bug-gnu-emacs, cyd

Hello

I almost missed your mail, could you please use a more specific subject:
   > (info "(emacs)Local Keymaps") and (info "(emacs)Rebinding") at the
   > most talk about `M-x local-unset-key <RET> KEY'
   > But e.g., I very much want to unset the whole wikipedia-mode-map. It
   > should say how to do that. I.e., how to make it like we never knew
   > about any wikipedia-mode-map (that dares to tinker with basic emacs
   > keys like "\M-u" etc.).


Well is you really want to do that, why not just commenting out the
keybinding re-byte compiling it and restart (X)emacs?

Usually you would want to change certain keybindings by using 
local-set-key in the appropriate hook like

(add-hook 'wikipedia-mode-hook 'my-wikipededia-keys)

(defun my-wikipededia-keys ()
 (local-set-key [(control f3)]   'server-edit)) 
etc

Uwe Brauer 








^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#1465: wikipedia-mode-map (was: Document/implement local-unset-map)
  2008-12-01 18:12 ` bug#1464: wikipedia-mode-map (was: Document/implement local-unset-map) Uwe Brauer
@ 2008-12-01 18:28   ` jidanni
  0 siblings, 0 replies; 5+ messages in thread
From: jidanni @ 2008-12-01 18:28 UTC (permalink / raw)
  To: oub; +Cc: bug-gnu-emacs, cyd

UB> Well is you really want to do that, why not just commenting out the
UB> keybinding re-byte compiling it and restart (X)emacs?
Because I don't want to tamper with it. Anyway do consider adding it to emacs...







^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#1462: Document/implement local-unset-map
  2008-12-01 17:46 bug#1462: Document/implement local-unset-map jidanni
  2008-12-01 18:00 ` bug#1463: " jidanni
  2008-12-01 18:12 ` bug#1464: wikipedia-mode-map (was: Document/implement local-unset-map) Uwe Brauer
@ 2008-12-02 14:15 ` Kevin Rodgers
  2 siblings, 0 replies; 5+ messages in thread
From: Kevin Rodgers @ 2008-12-02 14:15 UTC (permalink / raw)
  To: bug-gnu-emacs

jidanni@jidanni.org wrote:
> (info "(emacs)Local Keymaps") and (info "(emacs)Rebinding") at the
> most talk about `M-x local-unset-key <RET> KEY'
> But e.g., I very much want to unset the whole wikipedia-mode-map. It
> should say how to do that. I.e., how to make it like we never knew
> about any wikipedia-mode-map (that dares to tinker with basic emacs
> keys like "\M-u" etc.).

local-unset-map would be: (use-local-map nil)

But what you apparently want is:
(setq wikipedia-mode-map (make-sparse-keymap))

-- 
Kevin Rodgers
Denver, Colorado, USA








^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-12-02 14:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-01 17:46 bug#1462: Document/implement local-unset-map jidanni
2008-12-01 18:00 ` bug#1463: " jidanni
2008-12-01 18:12 ` bug#1464: wikipedia-mode-map (was: Document/implement local-unset-map) Uwe Brauer
2008-12-01 18:28   ` bug#1465: " jidanni
2008-12-02 14:15 ` bug#1462: Document/implement local-unset-map Kevin Rodgers

Code repositories for project(s) associated with this public inbox

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

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).