aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2025-03-15 00:09:45 +0100
committerStefan Kangas2025-03-15 04:06:31 +0100
commit679ad95a67fbecafd203c9e7f55547a312b3833b (patch)
treebc935b8a3dbc2bc04ad2b37220bb5418be78a9b9
parent2009ae85935beb345ce605abe398dbbe6cd84b9b (diff)
downloademacs-679ad95a67fbecafd203c9e7f55547a312b3833b.tar.gz
emacs-679ad95a67fbecafd203c9e7f55547a312b3833b.zip
Recommend using 'keymap-global-set' in Commentaries
* lisp/bs.el, lisp/calculator.el, lisp/cedet/data-debug.el: * lisp/help-at-pt.el, lisp/hilit-chg.el, lisp/mail/mspools.el: * lisp/mh-e/mh-e.el, lisp/mouse-copy.el, lisp/mouse-drag.el: * lisp/net/browse-url.el, lisp/net/webjump.el, lisp/printing.el: * lisp/progmodes/cfengine.el, lisp/progmodes/ebnf2ps.el: * lisp/ps-print.el, lisp/repeat.el, lisp/term/wyse50.el: * lisp/term/x-win.el, lisp/vcursor.el, lisp/woman.el: Recommend using 'keymap-global-set' instead of 'global-set-key'.
-rw-r--r--lisp/bs.el4
-rw-r--r--lisp/calculator.el2
-rw-r--r--lisp/cedet/data-debug.el2
-rw-r--r--lisp/help-at-pt.el4
-rw-r--r--lisp/hilit-chg.el4
-rw-r--r--lisp/mail/mspools.el4
-rw-r--r--lisp/mh-e/mh-e.el6
-rw-r--r--lisp/mouse-copy.el17
-rw-r--r--lisp/mouse-drag.el4
-rw-r--r--lisp/net/browse-url.el2
-rw-r--r--lisp/net/webjump.el14
-rw-r--r--lisp/printing.el38
-rw-r--r--lisp/progmodes/cfengine.el2
-rw-r--r--lisp/progmodes/ebnf2ps.el6
-rw-r--r--lisp/ps-print.el6
-rw-r--r--lisp/repeat.el4
-rw-r--r--lisp/term/wyse50.el16
-rw-r--r--lisp/term/x-win.el2
-rw-r--r--lisp/textmodes/table.el2
-rw-r--r--lisp/vcursor.el2
-rw-r--r--lisp/woman.el11
21 files changed, 76 insertions, 76 deletions
diff --git a/lisp/bs.el b/lisp/bs.el
index f5e99375fa8..29af72f762b 100644
--- a/lisp/bs.el
+++ b/lisp/bs.el
@@ -73,8 +73,8 @@
73;; This package offers two functions for buffer cycling. If you want to cycle 73;; This package offers two functions for buffer cycling. If you want to cycle
74;; through buffer list you can use `bs-cycle-next' or `bs-cycle-previous'. 74;; through buffer list you can use `bs-cycle-next' or `bs-cycle-previous'.
75;; Bind these function to a key like 75;; Bind these function to a key like
76;; (global-set-key [(f9)] 'bs-cycle-previous) 76;; (keymap-global-set "<f9>" #'bs-cycle-previous)
77;; (global-set-key [(f10)] 'bs-cycle-next) 77;; (keymap-global-set "<f10>" #'bs-cycle-next)
78;; 78;;
79;; Both functions use a special subset of all buffers for cycling to avoid 79;; Both functions use a special subset of all buffers for cycling to avoid
80;; to go through internal buffers like *Messages*. 80;; to go through internal buffers like *Messages*.
diff --git a/lisp/calculator.el b/lisp/calculator.el
index ccb101befe9..337560d38c9 100644
--- a/lisp/calculator.el
+++ b/lisp/calculator.el
@@ -28,7 +28,7 @@
28;; 28;;
29;; You can bind this to a key by adding this to your Init file: 29;; You can bind this to a key by adding this to your Init file:
30;; 30;;
31;; (global-set-key [(control return)] 'calculator) 31;; (keymap-global-set "C-<return>" #'calculator)
32;; 32;;
33;; Written by Eli Barzilay, eli@barzilay.org 33;; Written by Eli Barzilay, eli@barzilay.org
34 34
diff --git a/lisp/cedet/data-debug.el b/lisp/cedet/data-debug.el
index 02cda6c85d6..2c3591c47c9 100644
--- a/lisp/cedet/data-debug.el
+++ b/lisp/cedet/data-debug.el
@@ -29,7 +29,7 @@
29;; 29;;
30;; The best way to get started is to bind M-: to 'data-debug-eval-expression. 30;; The best way to get started is to bind M-: to 'data-debug-eval-expression.
31;; 31;;
32;; (global-set-key "\M-:" 'data-debug-eval-expression) 32;; (keymap-global-set "M-:" 'data-debug-eval-expression)
33;; 33;;
34;; If you write functions with complex output that need debugging, you 34;; If you write functions with complex output that need debugging, you
35;; can make them interactive with data-debug-show-stuff. For example: 35;; can make them interactive with data-debug-show-stuff. For example:
diff --git a/lisp/help-at-pt.el b/lisp/help-at-pt.el
index 3c0c60bfa4d..68054016dc5 100644
--- a/lisp/help-at-pt.el
+++ b/lisp/help-at-pt.el
@@ -40,8 +40,8 @@
40;; 40;;
41;; Suggested key bindings: 41;; Suggested key bindings:
42;; 42;;
43;; (global-set-key [C-tab] 'scan-buf-next-region) 43;; (keymap-global-set "C-<tab>" #'scan-buf-next-region)
44;; (global-set-key [C-M-tab] 'scan-buf-previous-region) 44;; (keymap-global-set "C-M-<tab>" #'scan-buf-previous-region)
45 45
46;;; Code: 46;;; Code:
47 47
diff --git a/lisp/hilit-chg.el b/lisp/hilit-chg.el
index 93ced6a5484..28a4b5a6907 100644
--- a/lisp/hilit-chg.el
+++ b/lisp/hilit-chg.el
@@ -113,8 +113,8 @@
113 113
114 114
115;; Possible bindings: 115;; Possible bindings:
116;; (global-set-key '[C-right] #'highlight-changes-next-change) 116;; (keymap-global-set "C-<right>" #'highlight-changes-next-change)
117;; (global-set-key '[C-left] #'highlight-changes-previous-change) 117;; (keymap-global-set "C-<left>" #'highlight-changes-previous-change)
118;; 118;;
119;; Other interactive functions (that could be bound if desired): 119;; Other interactive functions (that could be bound if desired):
120;; `highlight-changes-mode' 120;; `highlight-changes-mode'
diff --git a/lisp/mail/mspools.el b/lisp/mail/mspools.el
index df956e8f58a..d9f54642029 100644
--- a/lisp/mail/mspools.el
+++ b/lisp/mail/mspools.el
@@ -62,8 +62,8 @@
62 62
63;; Extras. 63;; Extras.
64;; 64;;
65;; (global-set-key '[S-f1] 'mspools-show) ;Bind mspools-show to Shift F1. 65;; (keymap-global-set "S-<f1>" #'mspools-show) ;Bind mspools-show to Shift F1.
66;; (setq mspools-update t) ;Automatically update buffer. 66;; (setopt mspools-update t) ;Automatically update buffer.
67 67
68;; Interface with the mail filter. 68;; Interface with the mail filter.
69;; We assume that the mail filter drops new mail into the spool 69;; We assume that the mail filter drops new mail into the spool
diff --git a/lisp/mh-e/mh-e.el b/lisp/mh-e/mh-e.el
index e9e4e271065..e507996c581 100644
--- a/lisp/mh-e/mh-e.el
+++ b/lisp/mh-e/mh-e.el
@@ -42,9 +42,9 @@
42;; M-x mh-smail to send mail. From within the mail reader, "s" works, too. 42;; M-x mh-smail to send mail. From within the mail reader, "s" works, too.
43 43
44;; Your .emacs might benefit from these bindings: 44;; Your .emacs might benefit from these bindings:
45;; (global-set-key "\C-cr" 'mh-rmail) 45;; (keymap-global-set "C-c r" #'mh-rmail)
46;; (global-set-key "\C-xm" 'mh-smail) 46;; (keymap-global-set "C-x m" #'mh-smail)
47;; (global-set-key "\C-x4m" 'mh-smail-other-window) 47;; (keymap-global-set "C-x 4 m" #'mh-smail-other-window)
48 48
49;; Mailing Lists: 49;; Mailing Lists:
50;; mh-e-users@lists.sourceforge.net 50;; mh-e-users@lists.sourceforge.net
diff --git a/lisp/mouse-copy.el b/lisp/mouse-copy.el
index d022d57796b..cbd3f360c3e 100644
--- a/lisp/mouse-copy.el
+++ b/lisp/mouse-copy.el
@@ -36,14 +36,15 @@
36;; for ``one-click scrolling''. 36;; for ``one-click scrolling''.
37;; 37;;
38;; To use mouse-copy, place the following in your init file: 38;; To use mouse-copy, place the following in your init file:
39;; (require 'mouse-copy) 39;; (autoload 'mouse-drag-secondary-pasting "mouse-copy")
40;; (global-set-key [M-down-mouse-1] 'mouse-drag-secondary-pasting) 40;; (autoload 'mouse-drag-secondary-moving "mouse-copy")
41;; (global-set-key [M-S-down-mouse-1] 'mouse-drag-secondary-moving) 41;; (keymap-global-set "M-<down-mouse-1>" #'mouse-drag-secondary-pasting)
42;; 42;; (keymap-global-set "M-S-<down-mouse-1>" #'mouse-drag-secondary-moving)
43;; (These definitions override the old binding of M-mouse-1 to 43;;
44;; mouse-drag-secondary. I find I don't use that command much so its 44;; (These definitions override the old binding of `M-<mouse-1>' to
45;; loss is not important, and it can be made up with a M-mouse-1 45;; `mouse-drag-secondary'. I find I don't use that command much so its
46;; followed by a M-mouse-3. I personally reserve M-mouse bindings 46;; loss is not important, and it can be made up with a `M-<mouse-1>'
47;; followed by a `M-mouse-3'. I personally reserve M-mouse bindings
47;; for my window manager and bind everything to C-mouse.) 48;; for my window manager and bind everything to C-mouse.)
48;; 49;;
49;; 50;;
diff --git a/lisp/mouse-drag.el b/lisp/mouse-drag.el
index e86c0f3590c..bb27994bbca 100644
--- a/lisp/mouse-drag.el
+++ b/lisp/mouse-drag.el
@@ -48,9 +48,9 @@
48;; 48;;
49;; To use mouse-drag, place the following in your init file: 49;; To use mouse-drag, place the following in your init file:
50;; -either- 50;; -either-
51;; (global-set-key [down-mouse-2] 'mouse-drag-throw) 51;; (keymap-global-set "<down-mouse-2>" #'mouse-drag-throw)
52;; -or- 52;; -or-
53;; (global-set-key [down-mouse-2] 'mouse-drag-drag) 53;; (keymap-global-set "<down-mouse-2>" #'mouse-drag-drag)
54;; 54;;
55;; 55;;
56;; 56;;
diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el
index b9610fec150..3b2d3983002 100644
--- a/lisp/net/browse-url.el
+++ b/lisp/net/browse-url.el
@@ -72,7 +72,7 @@
72;; M-x browse-url 72;; M-x browse-url
73 73
74;; To display a URL by shift-clicking on it, put this in your init file: 74;; To display a URL by shift-clicking on it, put this in your init file:
75;; (global-set-key [S-mouse-2] 'browse-url-at-mouse) 75;; (keymap-global-set "S-<mouse-2>" 'browse-url-at-mouse)
76;; (Note that using Shift-mouse-1 is not desirable because 76;; (Note that using Shift-mouse-1 is not desirable because
77;; that event has a standard meaning in Emacs.) 77;; that event has a standard meaning in Emacs.)
78 78
diff --git a/lisp/net/webjump.el b/lisp/net/webjump.el
index e401042e2ef..746688765a3 100644
--- a/lisp/net/webjump.el
+++ b/lisp/net/webjump.el
@@ -41,13 +41,13 @@
41 41
42;; You may wish to add something like the following to your init file: 42;; You may wish to add something like the following to your init file:
43;; 43;;
44;; (global-set-key "\C-cj" 'webjump) 44;; (keymap-global-set "C-c j" #'webjump)
45;; (setq webjump-sites 45;; (setopt webjump-sites
46;; (append '( 46;; (append '(
47;; ("My Home Page" . "www.someisp.net/users/joebobjr/") 47;; ("My Home Page" . "www.someisp.net/users/joebobjr/")
48;; ("Pop's Site" . "www.joebob-and-son.com/") 48;; ("Pop's Site" . "www.joebob-and-son.com/")
49;; ) 49;; )
50;; webjump-sample-sites)) 50;; webjump-sample-sites))
51;; 51;;
52;; The above loads this package, binds `C-c j' to invoke WebJump, and adds your 52;; The above loads this package, binds `C-c j' to invoke WebJump, and adds your
53;; personal favorite sites to the hotlist. 53;; personal favorite sites to the hotlist.
diff --git a/lisp/printing.el b/lisp/printing.el
index c84ee54eb7f..99408eef6fe 100644
--- a/lisp/printing.el
+++ b/lisp/printing.el
@@ -450,21 +450,21 @@
450;; 450;;
451;; Current global keyboard mapping is: 451;; Current global keyboard mapping is:
452;; 452;;
453;; (global-set-key [print] 'pr-ps-fast-fire) 453;; (keymap-global-set "<print>" 'pr-ps-fast-fire)
454;; (global-set-key [M-print] 'pr-ps-mode-using-ghostscript) 454;; (keymap-global-set "M-<print>" 'pr-ps-mode-using-ghostscript)
455;; (global-set-key [S-print] 'pr-ps-mode-using-ghostscript) 455;; (keymap-global-set "S-<print>" 'pr-ps-mode-using-ghostscript)
456;; (global-set-key [C-print] 'pr-txt-fast-fire) 456;; (keymap-global-set "C-<print>" 'pr-txt-fast-fire)
457;; (global-set-key [C-M-print] 'pr-txt-fast-fire) 457;; (keymap-global-set "C-M-<print>" 'pr-txt-fast-fire)
458;; 458;;
459;; As a suggestion of global keyboard mapping for some `printing' commands: 459;; As a suggestion of global keyboard mapping for some `printing' commands:
460;; 460;;
461;; (global-set-key "\C-ci" 'pr-interface) 461;; (keymap-global-set "C-c i" 'pr-interface)
462;; (global-set-key "\C-cbp" 'pr-ps-buffer-print) 462;; (keymap-global-set "C-c b p" 'pr-ps-buffer-print)
463;; (global-set-key "\C-cbx" 'pr-ps-buffer-preview) 463;; (keymap-global-set "C-c b x" 'pr-ps-buffer-preview)
464;; (global-set-key "\C-cbb" 'pr-ps-buffer-using-ghostscript) 464;; (keymap-global-set "C-c b b" 'pr-ps-buffer-using-ghostscript)
465;; (global-set-key "\C-crp" 'pr-ps-region-print) 465;; (keymap-global-set "C-c r p" 'pr-ps-region-print)
466;; (global-set-key "\C-crx" 'pr-ps-region-preview) 466;; (keymap-global-set "C-c r x" 'pr-ps-region-preview)
467;; (global-set-key "\C-crr" 'pr-ps-region-using-ghostscript) 467;; (keymap-global-set "C-c r r" 'pr-ps-region-using-ghostscript)
468;; 468;;
469;; 469;;
470;; Options 470;; Options
@@ -2969,13 +2969,13 @@ Calls `pr-update-menus' to adjust menus."
2969(global-set-key [(control meta print)] 'pr-txt-fast-fire) 2969(global-set-key [(control meta print)] 'pr-txt-fast-fire)
2970 2970
2971;;; You can also use something like: 2971;;; You can also use something like:
2972;;;(global-set-key "\C-ci" 'pr-interface) 2972;;;(keymap-global-set "C-c i" 'pr-interface)
2973;;;(global-set-key "\C-cbp" 'pr-ps-buffer-print) 2973;;;(keymap-global-set "C-c b p" 'pr-ps-buffer-print)
2974;;;(global-set-key "\C-cbx" 'pr-ps-buffer-preview) 2974;;;(keymap-global-set "C-c b x" 'pr-ps-buffer-preview)
2975;;;(global-set-key "\C-cbb" 'pr-ps-buffer-using-ghostscript) 2975;;;(keymap-global-set "C-c b b" 'pr-ps-buffer-using-ghostscript)
2976;;;(global-set-key "\C-crp" 'pr-ps-region-print) 2976;;;(keymap-global-set "C-c r p" 'pr-ps-region-print)
2977;;;(global-set-key "\C-crx" 'pr-ps-region-preview) 2977;;;(keymap-global-set "C-c r x" 'pr-ps-region-preview)
2978;;;(global-set-key "\C-crr" 'pr-ps-region-using-ghostscript) 2978;;;(keymap-global-set "C-c r r" 'pr-ps-region-using-ghostscript)
2979 2979
2980 2980
2981;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2981;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
diff --git a/lisp/progmodes/cfengine.el b/lisp/progmodes/cfengine.el
index 9d9d1e8aa9d..acdb9a10cf7 100644
--- a/lisp/progmodes/cfengine.el
+++ b/lisp/progmodes/cfengine.el
@@ -52,7 +52,7 @@
52;; the policy, it's a quick way to make it more legible without 52;; the policy, it's a quick way to make it more legible without
53;; manually reindenting it. For instance: 53;; manually reindenting it. For instance:
54 54
55;; (global-set-key [(control f4)] 'cfengine3-reformat-json-string) 55;; (keymap-global-set "C-<f4>" 'cfengine3-reformat-json-string)
56 56
57;; This is not the same as the mode written by Rolf Ebert 57;; This is not the same as the mode written by Rolf Ebert
58;; <ebert@waporo.muc.de>, distributed with cfengine-2.0.5. It does 58;; <ebert@waporo.muc.de>, distributed with cfengine-2.0.5. It does
diff --git a/lisp/progmodes/ebnf2ps.el b/lisp/progmodes/ebnf2ps.el
index 0147707f80d..d5a10eab2a8 100644
--- a/lisp/progmodes/ebnf2ps.el
+++ b/lisp/progmodes/ebnf2ps.el
@@ -148,9 +148,9 @@
148;; 148;;
149;; Any of the `ebnf-' commands can be bound to keys. Here are some examples: 149;; Any of the `ebnf-' commands can be bound to keys. Here are some examples:
150;; 150;;
151;; (global-set-key 'f22 'ebnf-print-buffer) ;f22 is prsc 151;; (keymap-global-set "<f22>" #'ebnf-print-buffer) ;f22 is prsc
152;; (global-set-key '(shift f22) 'ebnf-print-region) 152;; (keymap-global-set "S-<f22>" #'ebnf-print-region)
153;; (global-set-key '(control f22) 'ebnf-despool) 153;; (keymap-global-set "C-<f22>" #'ebnf-despool)
154;; 154;;
155;; 155;;
156;; Invoking Ebnf2ps in Batch 156;; Invoking Ebnf2ps in Batch
diff --git a/lisp/ps-print.el b/lisp/ps-print.el
index ba0d543bbcc..53302a71efb 100644
--- a/lisp/ps-print.el
+++ b/lisp/ps-print.el
@@ -145,9 +145,9 @@
145;; `ps-spool-buffer-with-faces', `ps-spool-region-with-faces', and 145;; `ps-spool-buffer-with-faces', `ps-spool-region-with-faces', and
146;; `ps-despool'. Here are the bindings I use on my Sun 4 keyboard: 146;; `ps-despool'. Here are the bindings I use on my Sun 4 keyboard:
147;; 147;;
148;; (global-set-key 'f22 'ps-spool-buffer-with-faces) ;f22 is prsc 148;; (keymap-global-set "<f22>" #'ps-spool-buffer-with-faces) ;f22 is prsc
149;; (global-set-key '(shift f22) 'ps-spool-region-with-faces) 149;; (keymap-global-set "S-<f22>" #'ps-spool-region-with-faces)
150;; (global-set-key '(control f22) 'ps-despool) 150;; (keymap-global-set "C-<f22>" #'ps-despool)
151;; 151;;
152;; 152;;
153;; The Printer Interface 153;; The Printer Interface
diff --git a/lisp/repeat.el b/lisp/repeat.el
index f014d8266db..daa53fe7195 100644
--- a/lisp/repeat.el
+++ b/lisp/repeat.el
@@ -54,8 +54,8 @@
54;; correctly if `repeat' is invoked through a rebinding to a single keystroke 54;; correctly if `repeat' is invoked through a rebinding to a single keystroke
55;; and the global variable repeat-on-final-keystroke is set to a value 55;; and the global variable repeat-on-final-keystroke is set to a value
56;; that doesn't include that keystroke. For example, the lines 56;; that doesn't include that keystroke. For example, the lines
57;; (global-set-key "\C-z" 'repeat) 57;; (keymap-global-set "C-z" #'repeat)
58;; (setq repeat-on-final-keystroke "z") 58;; (setopt repeat-on-final-keystroke "z")
59;; in your .emacs would allow `edit-kbd-macro' to work correctly when C-z was 59;; in your .emacs would allow `edit-kbd-macro' to work correctly when C-z was
60;; used in a keyboard macro to invoke `repeat', but would still allow C-x z 60;; used in a keyboard macro to invoke `repeat', but would still allow C-x z
61;; to be used for `repeat' elsewhere. The real reason for documenting this 61;; to be used for `repeat' elsewhere. The real reason for documenting this
diff --git a/lisp/term/wyse50.el b/lisp/term/wyse50.el
index e956ee120bc..875218d7269 100644
--- a/lisp/term/wyse50.el
+++ b/lisp/term/wyse50.el
@@ -145,14 +145,14 @@ M-r M-x move-to-window-line, Funct up-arrow or down-arrow are similar"
145 ;; ;; By unsetting C-a and then binding it to a prefix, we 145 ;; ;; By unsetting C-a and then binding it to a prefix, we
146 ;; ;; allow the rest of the function keys which start with C-a 146 ;; ;; allow the rest of the function keys which start with C-a
147 ;; ;; to be recognized. 147 ;; ;; to be recognized.
148 ;; '(("\C-a" nil) 148 ;; '(("C-a" nil)
149 ;; ("\C-k" nil) 149 ;; ("C-k" nil)
150 ;; ("\C-j" nil) 150 ;; ("C-j" nil)
151 ;; ("\C-l" nil) 151 ;; ("C-l" nil)
152 ;; ("\C-h" nil) 152 ;; ("C-h" nil)
153 ;; ("\er" nil))) 153 ;; ("M-r" nil)))
154 ;; (global-set-key (car key-definition) 154 ;; (keymap-global-set (car key-definition)
155 ;; (nth 1 key-definition))) 155 ;; (nth 1 key-definition)))
156 (fset 'enable-arrow-keys nil)) 156 (fset 'enable-arrow-keys nil))
157 157
158(provide 'term/wyse50) 158(provide 'term/wyse50)
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el
index 91b5bd5838a..1863ff92c77 100644
--- a/lisp/term/x-win.el
+++ b/lisp/term/x-win.el
@@ -1318,7 +1318,7 @@ This returns an error if any Emacs frames are X frames."
1318 ;; and turned the Emacs f10 back on. 1318 ;; and turned the Emacs f10 back on.
1319 ;; ;; Motif normally handles f10 itself, so don't try to handle it a second time. 1319 ;; ;; Motif normally handles f10 itself, so don't try to handle it a second time.
1320 ;; (if (featurep 'motif) 1320 ;; (if (featurep 'motif)
1321 ;; (global-set-key [f10] 'ignore)) 1321 ;; (keymap-global-set "<f10>" 'ignore))
1322 1322
1323 ;; Enable CLIPBOARD copy/paste through menu bar commands. 1323 ;; Enable CLIPBOARD copy/paste through menu bar commands.
1324 (menu-bar-enable-clipboard) 1324 (menu-bar-enable-clipboard)
diff --git a/lisp/textmodes/table.el b/lisp/textmodes/table.el
index 1090df8a8e1..e8f4170e729 100644
--- a/lisp/textmodes/table.el
+++ b/lisp/textmodes/table.el
@@ -333,7 +333,7 @@
333;; 333;;
334;; (add-hook 'table-cell-map-hook 334;; (add-hook 'table-cell-map-hook
335;; (lambda () 335;; (lambda ()
336;; (local-set-key [<key sequence>] '<function>))) 336;; (keymap-local-set "<key sequence>" '<function>)))
337;; 337;;
338;; Adding the above to your init file is a common way to customize a 338;; Adding the above to your init file is a common way to customize a
339;; mode specific keymap. However it does not work for this package. 339;; mode specific keymap. However it does not work for this package.
diff --git a/lisp/vcursor.el b/lisp/vcursor.el
index 645102c198b..ff381c01b12 100644
--- a/lisp/vcursor.el
+++ b/lisp/vcursor.el
@@ -250,7 +250,7 @@
250;; In addition to any other bindings, vcursor-map contains key definitions 250;; In addition to any other bindings, vcursor-map contains key definitions
251;; for handling the vcursor. You should assign this to a prefix key 251;; for handling the vcursor. You should assign this to a prefix key
252;; in the usual way, e.g. 252;; in the usual way, e.g.
253;; (global-set-key [f14] vcursor-map) 253;; (keymap-global-set "<f14>" vcursor-map)
254;; and also as usual \C-h in this map will list the key definitions, which 254;; and also as usual \C-h in this map will list the key definitions, which
255;; are designed to be easy to remember. 255;; are designed to be easy to remember.
256;; 256;;
diff --git a/lisp/woman.el b/lisp/woman.el
index a5ab82be40d..0d740fd071e 100644
--- a/lisp/woman.el
+++ b/lisp/woman.el
@@ -124,12 +124,11 @@
124;; The variable `woman-use-topic-at-point' can be rebound locally, 124;; The variable `woman-use-topic-at-point' can be rebound locally,
125;; which may be useful to provide special private key bindings, e.g. 125;; which may be useful to provide special private key bindings, e.g.
126 126
127;; (global-set-key "\C-cw" 127;; (keymap-global-set "C-c w"
128;; (lambda () 128;; (lambda ()
129;; (interactive) 129;; (interactive)
130;; (let ((woman-use-topic-at-point t)) 130;; (let ((woman-use-topic-at-point t))
131;; (woman))))) 131;; (woman)))))
132
133 132
134;; Customization, Hooks and Imenu 133;; Customization, Hooks and Imenu
135;; ============================== 134;; ==============================