aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2006-08-28 15:40:21 +0000
committerChong Yidong2006-08-28 15:40:21 +0000
commit6081889eb5223289095eec80fea59e036bbe0392 (patch)
tree8b6056fa4f1e64ad3eafc8fdfed90a0a5a16dfe1
parent62d8e3d40e49e7da32c520b79b115878e910e89f (diff)
downloademacs-6081889eb5223289095eec80fea59e036bbe0392.tar.gz
emacs-6081889eb5223289095eec80fea59e036bbe0392.zip
* woman.el (woman-follow): New function, based on `man-follow'.
(woman-mode-map): Use it. * ibuffer.el (ibuffer-do-sort-by-recency): Perform full update since ibuffer-do-sort-by-recency does not define a sorter.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/ibuffer.el4
-rw-r--r--lisp/woman.el13
3 files changed, 22 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 378eb276091..cdb21cb510d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12006-08-28 Chong Yidong <cyd@stupidchicken.com>
2
3 * woman.el (woman-follow): New function, based on `man-follow'.
4 (woman-mode-map): Use it.
5
6 * ibuffer.el (ibuffer-do-sort-by-recency): Perform full update
7 since ibuffer-do-sort-by-recency does not define a sorter.
8
12006-08-28 Kim F. Storm <storm@cua.dk> 92006-08-28 Kim F. Storm <storm@cua.dk>
2 10
3 * find-dired.el (find-dired): Use shell-quote-argument to properly 11 * find-dired.el (find-dired): Use shell-quote-argument to properly
diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el
index 29767cee7f6..04672f6e29f 100644
--- a/lisp/ibuffer.el
+++ b/lisp/ibuffer.el
@@ -1972,12 +1972,12 @@ the value of point at the beginning of the line for that buffer."
1972 (not (eq ibuffer-buf buf)))))) 1972 (not (eq ibuffer-buf buf))))))
1973 1973
1974;; This function is a special case; it's not defined by 1974;; This function is a special case; it's not defined by
1975;; `ibuffer-define-sorter'. 1975;; `define-ibuffer-sorter'.
1976(defun ibuffer-do-sort-by-recency () 1976(defun ibuffer-do-sort-by-recency ()
1977 "Sort the buffers by last view time." 1977 "Sort the buffers by last view time."
1978 (interactive) 1978 (interactive)
1979 (setq ibuffer-sorting-mode 'recency) 1979 (setq ibuffer-sorting-mode 'recency)
1980 (ibuffer-redisplay t)) 1980 (ibuffer-update nil t))
1981 1981
1982(defun ibuffer-update-format () 1982(defun ibuffer-update-format ()
1983 (when (null ibuffer-current-format) 1983 (when (null ibuffer-current-format)
diff --git a/lisp/woman.el b/lisp/woman.el
index 2392d0bfa4c..f4e01bcdd4e 100644
--- a/lisp/woman.el
+++ b/lisp/woman.el
@@ -1750,7 +1750,18 @@ Leave point at end of new text. Return length of inserted text."
1750 (define-key woman-mode-map [M-mouse-2] 'woman-follow-word) 1750 (define-key woman-mode-map [M-mouse-2] 'woman-follow-word)
1751 1751
1752 ;; We don't need to call `man' when we are in `woman-mode'. 1752 ;; We don't need to call `man' when we are in `woman-mode'.
1753 (define-key woman-mode-map [remap man] 'woman)) 1753 (define-key woman-mode-map [remap man] 'woman)
1754 (define-key woman-mode-map [remap man-follow] 'woman-follow))
1755
1756(defun woman-follow (topic)
1757 "Get a Un*x manual page of the item under point and put it in a buffer."
1758 (interactive (list (Man-default-man-entry)))
1759 (if (or (not topic)
1760 (string= topic ""))
1761 (error "No item under point")
1762 (woman (if (string-match Man-reference-regexp topic)
1763 (substring topic 0 (match-end 1))
1764 topic))))
1754 1765
1755(defun woman-follow-word (event) 1766(defun woman-follow-word (event)
1756 "Run WoMan with word under mouse as topic. 1767 "Run WoMan with word under mouse as topic.