aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2007-09-10 03:22:12 +0000
committerStefan Monnier2007-09-10 03:22:12 +0000
commit70165841d8a3eb0366e6d5cc82e86a1b474ab9a9 (patch)
treeb95f0b1a7a1d3f2df14e1b9a0919c4b2a465580b
parent023accd651b6c45e825546961e8feb8670b966e5 (diff)
downloademacs-70165841d8a3eb0366e6d5cc82e86a1b474ab9a9.tar.gz
emacs-70165841d8a3eb0366e6d5cc82e86a1b474ab9a9.zip
(woman-mode-map, woman-syntax-table): Initialize in the declaration.
-rw-r--r--lisp/ChangeLog16
-rw-r--r--lisp/woman.el45
2 files changed, 31 insertions, 30 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d69550ba12c..4c9d5278c74 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * woman.el (woman-mode-map, woman-syntax-table):
4 Initialize in the declaration.
5
12007-09-09 Tassilo Horn <tassilo@member.fsf.org> 62007-09-09 Tassilo Horn <tassilo@member.fsf.org>
2 7
3 * doc-view.el: New file. 8 * doc-view.el: New file.
@@ -98,18 +103,17 @@
98 103
992007-09-08 Masatake YAMATO <jet@gyve.org> 1042007-09-08 Masatake YAMATO <jet@gyve.org>
100 105
101 * progmodes/which-func.el (which-func-modes): Added diff-mode. 106 * progmodes/which-func.el (which-func-modes): Add diff-mode.
102 107
103 * progmodes/cc-langs.el: Support new keywords added to 108 * progmodes/cc-langs.el: Support new keywords added to
104 objective-c frontend of gcc. 109 objective-c frontend of gcc.
105 (c-simple-stmt-kwds): Added @throw. 110 (c-simple-stmt-kwds): Add @throw.
106 (c-block-stmt-2-kwds): Added @synchronized. 111 (c-block-stmt-2-kwds): Add @synchronized.
107 (c-block-stmt-1-kwds): Added @finally and @try. 112 (c-block-stmt-1-kwds): Add @finally and @try.
108 113
1092007-09-07 Carsten Dominik <dominik@science.uva.nl> 1142007-09-07 Carsten Dominik <dominik@science.uva.nl>
110 115
111 * textmodes/org.el: (org-edit-timestamp-down-means-later): New 116 * textmodes/org.el: (org-edit-timestamp-down-means-later): New option.
112 option.
113 (org-agenda-after-show-hook): New variable. 117 (org-agenda-after-show-hook): New variable.
114 (org-columns-compile-format) 118 (org-columns-compile-format)
115 (org-columns-get-autowidth-alist, org-buffer-property-keys) 119 (org-columns-get-autowidth-alist, org-buffer-property-keys)
diff --git a/lisp/woman.el b/lisp/woman.el
index b5fd22f5913..10cf609b174 100644
--- a/lisp/woman.el
+++ b/lisp/woman.el
@@ -1761,21 +1761,21 @@ Leave point at end of new text. Return length of inserted text."
1761 1761
1762;;; Major mode (Man) interface: 1762;;; Major mode (Man) interface:
1763 1763
1764(defvar woman-mode-map nil "Keymap for woman mode.") 1764(defvar woman-mode-map
1765 1765 (let ((map (make-sparse-keymap)))
1766(unless woman-mode-map 1766 (set-keymap-parent map Man-mode-map)
1767 (setq woman-mode-map (make-sparse-keymap)) 1767
1768 (set-keymap-parent woman-mode-map Man-mode-map) 1768 (define-key map "R" 'woman-reformat-last-file)
1769 1769 (define-key map "w" 'woman)
1770 (define-key woman-mode-map "R" 'woman-reformat-last-file) 1770 (define-key map "\en" 'WoMan-next-manpage)
1771 (define-key woman-mode-map "w" 'woman) 1771 (define-key map "\ep" 'WoMan-previous-manpage)
1772 (define-key woman-mode-map "\en" 'WoMan-next-manpage) 1772 (define-key map [M-mouse-2] 'woman-follow-word)
1773 (define-key woman-mode-map "\ep" 'WoMan-previous-manpage) 1773
1774 (define-key woman-mode-map [M-mouse-2] 'woman-follow-word) 1774 ;; We don't need to call `man' when we are in `woman-mode'.
1775 1775 (define-key map [remap man] 'woman)
1776 ;; We don't need to call `man' when we are in `woman-mode'. 1776 (define-key map [remap man-follow] 'woman-follow)
1777 (define-key woman-mode-map [remap man] 'woman) 1777 map)
1778 (define-key woman-mode-map [remap man-follow] 'woman-follow)) 1778 "Keymap for woman mode.")
1779 1779
1780(defun woman-follow (topic) 1780(defun woman-follow (topic)
1781 "Get a Un*x manual page of the item under point and put it in a buffer." 1781 "Get a Un*x manual page of the item under point and put it in a buffer."
@@ -2083,17 +2083,14 @@ alist in `woman-buffer-alist' and return nil."
2083 (char-to-string woman-unpadded-space-char) 2083 (char-to-string woman-unpadded-space-char)
2084 "Internal string representation of unpadded space characters.") 2084 "Internal string representation of unpadded space characters.")
2085 2085
2086(defvar woman-syntax-table nil 2086(defvar woman-syntax-table
2087 (let ((st (make-syntax-table)))
2088 ;; The following internal chars must NOT have whitespace syntax:
2089 (modify-syntax-entry woman-unpadded-space-char "." st)
2090 (modify-syntax-entry woman-escaped-escape-char "." st)
2091 st)
2087 "Syntax table to support special characters used internally by WoMan.") 2092 "Syntax table to support special characters used internally by WoMan.")
2088 2093
2089(if woman-syntax-table
2090 ()
2091 (setq woman-syntax-table (make-syntax-table))
2092 ;; The following internal chars must NOT have whitespace syntax:
2093 (modify-syntax-entry woman-unpadded-space-char "." woman-syntax-table)
2094 (modify-syntax-entry woman-escaped-escape-char "." woman-syntax-table)
2095 )
2096
2097(defun woman-set-buffer-display-table () 2094(defun woman-set-buffer-display-table ()
2098 "Set up a display table for a WoMan buffer. 2095 "Set up a display table for a WoMan buffer.
2099This display table is used for displaying internal special characters, but 2096This display table is used for displaying internal special characters, but