# HG changeset patch # User Glenn Morris # Date 1288165174 25200 # Node ID d9447313bf33f5ee4a647baf856ad4200187d1c3 # Parent 607a65b74c6ca9611bd79f853c1710aca94d1bb3 * lisp/term/ns-win.el (ns-insert-file): Init in let. (ns-find-file): Use let*. diff -r 607a65b74c6c -r d9447313bf33 lisp/term/ns-win.el --- a/lisp/term/ns-win.el Tue Oct 26 23:50:28 2010 -0700 +++ b/lisp/term/ns-win.el Wed Oct 27 00:39:34 2010 -0700 @@ -420,8 +420,7 @@ "Insert contents of file `ns-input-file' like insert-file but with less prompting. If file is a directory perform a `find-file' on it." (interactive) - (let (f) - (setq f (pop ns-input-file)) + (let ((f (pop ns-input-file))) (if (file-directory-p f) (find-file f) (push-mark (+ (point) (cadr (insert-file-contents f))))))) @@ -527,11 +526,10 @@ (defun ns-find-file () "Do a `find-file' with the `ns-input-file' as argument." (interactive) - (let (f file bufwin1 bufwin2) - (setq f (file-truename (pop ns-input-file)) - file (find-file-noselect f) - bufwin1 (get-buffer-window file 'visible) - bufwin2 (get-buffer-window "*scratch*" 'visibile)) + (let* ((f (file-truename (pop ns-input-file))) + (file (find-file-noselect f)) + (bufwin1 (get-buffer-window file 'visible)) + (bufwin2 (get-buffer-window "*scratch*" 'visibile))) (cond (bufwin1 (select-frame (window-frame bufwin1))