Mercurial > hg > xemacs-beta
diff lisp/startup.el @ 404:2f8bb876ab1d r21-2-32
Import from CVS: tag r21-2-32
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:16:07 +0200 |
parents | 74fd4e045ea6 |
children | 501cfd01ee6d |
line wrap: on
line diff
--- a/lisp/startup.el Mon Aug 13 11:15:00 2007 +0200 +++ b/lisp/startup.el Mon Aug 13 11:16:07 2007 +0200 @@ -20,7 +20,7 @@ ;; General Public License for more details. ;; You should have received a copy of the GNU General Public License -;; along with XEmacs; see the file COPYING. If not, write to the +;; along with XEmacs; see the file COPYING. If not, write to the ;; Free Software Foundation, 59 Temple Place - Suite 330, ;; Boston, MA 02111-1307, USA. @@ -649,9 +649,9 @@ (defun load-user-init-file () "This function actually reads the init file, .emacs." - (if (not user-init-file) - (setq user-init-file (find-user-init-file))) - (load user-init-file t t t) + (if (or user-init-file + (setq user-init-file (find-user-init-file))) + (load user-init-file t t t)) (unless inhibit-default-init (let ((inhibit-startup-message nil)) ;; Users are supposed to be told their rights. @@ -777,7 +777,7 @@ (file-count 0) (line nil) (end-of-options nil) - first-file-buffer file-p arg tem) + file-p arg tem) (while command-line-args-left (setq arg (pop command-line-args-left)) (cond @@ -804,8 +804,8 @@ (incf file-count) (setq arg (expand-file-name arg dir)) (cond - ((= file-count 1) (setq first-file-buffer - (progn (find-file arg) (current-buffer)))) + ((= file-count 1) + (find-file arg)) (noninteractive (find-file arg)) (t (find-file-other-window arg))) (when line