aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2014-05-06 13:29:37 +0300
committerEli Zaretskii2014-05-06 13:29:37 +0300
commitc5d670f5ad4759c4efff952ae55b563889f4a517 (patch)
treee7e8dc645631f0ea5c7cca16bf6f45ae7a7b6527
parent23e19cf290e71aacf4ad189d0ca0a51f3f967baf (diff)
downloademacs-c5d670f5ad4759c4efff952ae55b563889f4a517.tar.gz
emacs-c5d670f5ad4759c4efff952ae55b563889f4a517.zip
Minor stylistic changes in find-gc.el.
lisp/emacs-lisp/find-gc.el (find-gc-unsafe, find-unsafe-funcs) (trace-unsafe, trace-use-tree): Make parentheses style be according to Emacs style.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/emacs-lisp/find-gc.el12
2 files changed, 10 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f5766f03063..7a737129bb7 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12014-05-06 Eli Zaretskii <eliz@gnu.org>
2
3 * emacs-lisp/find-gc.el (find-gc-unsafe, find-unsafe-funcs)
4 (trace-unsafe, trace-use-tree): Make parentheses style be
5 according to Emacs style.
6
12014-05-06 Michael Albinus <michael.albinus@gmx.de> 72014-05-06 Michael Albinus <michael.albinus@gmx.de>
2 8
3 * net/tramp-sh.el (tramp-remote-process-environment): Remove 9 * net/tramp-sh.el (tramp-remote-process-environment): Remove
diff --git a/lisp/emacs-lisp/find-gc.el b/lisp/emacs-lisp/find-gc.el
index 3608e7a0b70..83eb26e86d7 100644
--- a/lisp/emacs-lisp/find-gc.el
+++ b/lisp/emacs-lisp/find-gc.el
@@ -74,8 +74,7 @@ Also store it in `find-gc-unsafe-list'."
74 (setq find-gc-unsafe-list 74 (setq find-gc-unsafe-list
75 (sort find-gc-unsafe-list 75 (sort find-gc-unsafe-list
76 (function (lambda (x y) 76 (function (lambda (x y)
77 (string-lessp (car x) (car y)))))) 77 (string-lessp (car x) (car y)))))))
78)
79 78
80;;; This does a depth-first search to find all functions that can 79;;; This does a depth-first search to find all functions that can
81;;; ultimately call the function "target". The result is an a-list 80;;; ultimately call the function "target". The result is an a-list
@@ -85,8 +84,7 @@ Also store it in `find-gc-unsafe-list'."
85 84
86(defun find-unsafe-funcs (target) 85(defun find-unsafe-funcs (target)
87 (setq find-gc-unsafe-list (list (list target))) 86 (setq find-gc-unsafe-list (list (list target)))
88 (trace-unsafe target) 87 (trace-unsafe target))
89)
90 88
91(defun trace-unsafe (func) 89(defun trace-unsafe (func)
92 (let ((used (assq func find-gc-subrs-callers))) 90 (let ((used (assq func find-gc-subrs-callers)))
@@ -97,8 +95,7 @@ Also store it in `find-gc-unsafe-list'."
97 (memq (car used) find-gc-noreturn-list) 95 (memq (car used) find-gc-noreturn-list)
98 (progn 96 (progn
99 (push (cons (car used) func) find-gc-unsafe-list) 97 (push (cons (car used) func) find-gc-unsafe-list)
100 (trace-unsafe (car used)))))) 98 (trace-unsafe (car used)))))))
101)
102 99
103 100
104 101
@@ -145,8 +142,7 @@ Also store it in `find-gc-unsafe-list'."
145 (while (setq p2 (cdr p2)) 142 (while (setq p2 (cdr p2))
146 (if (setq found (assq (car p2) find-gc-subrs-callers)) 143 (if (setq found (assq (car p2) find-gc-subrs-callers))
147 (setcdr found (cons (car (car ptr)) (cdr found))))) 144 (setcdr found (cons (car (car ptr)) (cdr found)))))
148 (setq ptr (cdr ptr)))) 145 (setq ptr (cdr ptr)))))
149)
150 146
151(provide 'find-gc) 147(provide 'find-gc)
152 148