aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2007-02-24 18:29:19 +0000
committerDan Nicolaescu2007-02-24 18:29:19 +0000
commit2863a9be6a14eefe1f7549b99932684bdb8f73e5 (patch)
treea5a202238c9ffeefd6b02849481961f53f19e337
parent9bdd0e1632f3f32ac6d0fac5debcbe5f7305199b (diff)
downloademacs-2863a9be6a14eefe1f7549b99932684bdb8f73e5.tar.gz
emacs-2863a9be6a14eefe1f7549b99932684bdb8f73e5.zip
(command-line): Also check if the abbrev file is
readable.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/startup.el8
2 files changed, 11 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ed6d98ab609..a40ee053bcf 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12007-02-24 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * startup.el (command-line): Also check if the abbrev file is
4 readable.
5
12007-02-24 John Paul Wallington <jpw@pobox.com> 62007-02-24 John Paul Wallington <jpw@pobox.com>
2 7
3 * net/tls.el (tls-certtool-program): Fix custom type. 8 * net/tls.el (tls-certtool-program): Fix custom type.
diff --git a/lisp/startup.el b/lisp/startup.el
index 76bec878338..3e26aa17409 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -952,8 +952,12 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
952 (with-current-buffer (window-buffer) 952 (with-current-buffer (window-buffer)
953 (deactivate-mark))) 953 (deactivate-mark)))
954 954
955 ;; If the user has a file of abbrevs, read it. 955 ;; If the user has a file of abbrevs, read it.
956 (if (file-exists-p abbrev-file-name) 956 ;; FIXME: after the 22.0 release this should be changed so
957 ;; that it does not read the abbrev file when -batch is used
958 ;; on the command line.
959 (when (and (file-exists-p abbrev-file-name)
960 (file-readable-p abbrev-file-name))
957 (quietly-read-abbrev-file abbrev-file-name)) 961 (quietly-read-abbrev-file abbrev-file-name))
958 962
959 ;; If the abbrevs came entirely from the init file or the 963 ;; If the abbrevs came entirely from the init file or the