aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorChong Yidong2011-04-06 17:55:08 -0400
committerChong Yidong2011-04-06 17:55:08 -0400
commite67a13abd8584d05dbac22496adb3cfb9256d8d8 (patch)
tree01df0d85bb9f5ad9b68922280104b426fc80ddc5 /lisp
parent7d668f2c1873456ec81ae9a481189fd318b3b5d2 (diff)
downloademacs-e67a13abd8584d05dbac22496adb3cfb9256d8d8.tar.gz
emacs-e67a13abd8584d05dbac22496adb3cfb9256d8d8.zip
Remove list-processes C function; misc fixes to last change.
* src/process.c (Flist_processes): Removed to Lisp. (list_processes_1): Deleted. * lisp/emacs-lisp/cconv.el (cconv--analyse-use): Ignore "ignored" when issuing unused warnings. * lisp/emacs-lisp/tabulated-list.el (tabulated-list-print): Use lambda macro directly.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/emacs-lisp/cconv.el4
-rw-r--r--lisp/emacs-lisp/tabulated-list.el10
3 files changed, 14 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b09313ddda0..75bb06806bd 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,11 @@
12011-04-06 Chong Yidong <cyd@stupidchicken.com> 12011-04-06 Chong Yidong <cyd@stupidchicken.com>
2 2
3 * emacs-lisp/cconv.el (cconv--analyse-use): Ignore "ignored" when
4 issuing unused warnings.
5
6 * emacs-lisp/tabulated-list.el (tabulated-list-print): Use lambda
7 macro directly.
8
3 * simple.el: Lisp reimplement of list-processes. Based on an 9 * simple.el: Lisp reimplement of list-processes. Based on an
4 earlier reimplementation by Leo Liu, but using tabulated-list.el. 10 earlier reimplementation by Leo Liu, but using tabulated-list.el.
5 (process-menu-mode): New major mode. 11 (process-menu-mode): New major mode.
diff --git a/lisp/emacs-lisp/cconv.el b/lisp/emacs-lisp/cconv.el
index 5cc9ecb4cf7..38584c437b8 100644
--- a/lisp/emacs-lisp/cconv.el
+++ b/lisp/emacs-lisp/cconv.el
@@ -536,7 +536,9 @@ FORM is the parent form that binds this var."
536 ;; it is often non-trivial for the programmer to avoid such 536 ;; it is often non-trivial for the programmer to avoid such
537 ;; unused vars. 537 ;; unused vars.
538 (not (intern-soft var)) 538 (not (intern-soft var))
539 (eq ?_ (aref (symbol-name var) 0))) 539 (eq ?_ (aref (symbol-name var) 0))
540 ;; As a special exception, ignore "ignore".
541 (eq var 'ignored))
540 (byte-compile-log-warning (format "Unused lexical %s `%S'" 542 (byte-compile-log-warning (format "Unused lexical %s `%S'"
541 varkind var)))) 543 varkind var))))
542 ;; If it's unused, there's no point converting it into a cons-cell, even if 544 ;; If it's unused, there's no point converting it into a cons-cell, even if
diff --git a/lisp/emacs-lisp/tabulated-list.el b/lisp/emacs-lisp/tabulated-list.el
index c9f186323c7..03ee59dd89c 100644
--- a/lisp/emacs-lisp/tabulated-list.el
+++ b/lisp/emacs-lisp/tabulated-list.el
@@ -229,11 +229,11 @@ to the entry with the same ID element as the current line."
229 (setq sorter (nth 2 (aref tabulated-list-format n))) 229 (setq sorter (nth 2 (aref tabulated-list-format n)))
230 (when (eq sorter t) 230 (when (eq sorter t)
231 (setq sorter ; Default sorter checks column N: 231 (setq sorter ; Default sorter checks column N:
232 `(lambda (A B) 232 (lambda (A B)
233 (setq A (aref (cadr A) ,n)) 233 (setq A (aref (cadr A) n))
234 (setq B (aref (cadr B) ,n)) 234 (setq B (aref (cadr B) n))
235 (string< (if (stringp A) A (car A)) 235 (string< (if (stringp A) A (car A))
236 (if (stringp B) B (car B)))))) 236 (if (stringp B) B (car B))))))
237 (setq entries (sort entries sorter)) 237 (setq entries (sort entries sorter))
238 (if (cdr tabulated-list-sort-key) 238 (if (cdr tabulated-list-sort-key)
239 (setq entries (nreverse entries))) 239 (setq entries (nreverse entries)))