aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Colascione2015-03-14 14:53:33 -0700
committerDaniel Colascione2015-03-14 14:53:33 -0700
commit3bf369928e44fd83c27ef436b05d9cd2b4abbfba (patch)
tree48341d5125540fe53a28840b9a9455843c2b8490
parent85f1a56f156f7f9aab1464318970b3a1d97fa533 (diff)
downloademacs-3bf369928e44fd83c27ef436b05d9cd2b4abbfba.tar.gz
emacs-3bf369928e44fd83c27ef436b05d9cd2b4abbfba.zip
Add --no-x-resources option
* lisp/startup.el (command-line): Process "--no-x-resources". * src/emacs.c (standard_args): Add --no-x-resources. (usage_message): Document that -Q implies --no-x-resources.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/startup.el7
-rw-r--r--src/ChangeLog5
-rw-r--r--src/emacs.c3
4 files changed, 17 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d393190803d..8da573ed2f7 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12015-03-14 Daniel Colascione <dancol@dancol.org>
2
3 * startup.el (command-line): Process "--no-x-resources".
4
12015-03-13 Kevin Ryde <user42_kevin@yahoo.com.au> 52015-03-13 Kevin Ryde <user42_kevin@yahoo.com.au>
2 6
3 info-look fixes for Texinfo 5 7 info-look fixes for Texinfo 5
diff --git a/lisp/startup.el b/lisp/startup.el
index 999e53e56dd..7fa929a659d 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -875,7 +875,8 @@ please check its value")
875 ;; processed. This is consistent with the way main in emacs.c 875 ;; processed. This is consistent with the way main in emacs.c
876 ;; does things. 876 ;; does things.
877 (while (and (not done) args) 877 (while (and (not done) args)
878 (let* ((longopts '(("--no-init-file") ("--no-site-file") ("--debug-init") 878 (let* ((longopts '(("--no-init-file") ("--no-site-file")
879 ("--no-x-resources") ("--debug-init")
879 ("--user") ("--iconic") ("--icon-type") ("--quick") 880 ("--user") ("--iconic") ("--icon-type") ("--quick")
880 ("--no-blinking-cursor") ("--basic-display"))) 881 ("--no-blinking-cursor") ("--basic-display")))
881 (argi (pop args)) 882 (argi (pop args))
@@ -906,7 +907,9 @@ please check its value")
906 ((member argi '("-Q" "-quick")) 907 ((member argi '("-Q" "-quick"))
907 (setq init-file-user nil 908 (setq init-file-user nil
908 site-run-file nil 909 site-run-file nil
909 inhibit-x-resources t)) 910 inhibit-x-resources t))
911 ((member argi '("-no-x-resources"))
912 (setq inhibit-x-resources t))
910 ((member argi '("-D" "-basic-display")) 913 ((member argi '("-D" "-basic-display"))
911 (setq no-blinking-cursor t 914 (setq no-blinking-cursor t
912 emacs-basic-display t) 915 emacs-basic-display t)
diff --git a/src/ChangeLog b/src/ChangeLog
index d9612db698b..cb4aad6ec95 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12015-03-14 Daniel Colascione <dancol@dancol.org>
2
3 * emacs.c (standard_args): Add --no-x-resources.
4 (usage_message): Document that -Q implies --no-x-resources.
5
12015-03-13 Paul Eggert <eggert@cs.ucla.edu> 62015-03-13 Paul Eggert <eggert@cs.ucla.edu>
2 7
3 * frame.c (x_get_resource_string) [!USE_GTK]: Don't define. 8 * frame.c (x_get_resource_string) [!USE_GTK]: Don't define.
diff --git a/src/emacs.c b/src/emacs.c
index ca5633da2dd..d318fd4649a 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -237,6 +237,7 @@ Initialization options:\n\
237--no-init-file, -q load neither ~/.emacs nor default.el\n\ 237--no-init-file, -q load neither ~/.emacs nor default.el\n\
238--no-loadup, -nl do not load loadup.el into bare Emacs\n\ 238--no-loadup, -nl do not load loadup.el into bare Emacs\n\
239--no-site-file do not load site-start.el\n\ 239--no-site-file do not load site-start.el\n\
240--no-x-resources do not load X resources\n\
240--no-site-lisp, -nsl do not add site-lisp directories to load-path\n\ 241--no-site-lisp, -nsl do not add site-lisp directories to load-path\n\
241--no-splash do not display a splash screen on startup\n\ 242--no-splash do not display a splash screen on startup\n\
242--no-window-system, -nw do not communicate with X, ignoring $DISPLAY\n\ 243--no-window-system, -nw do not communicate with X, ignoring $DISPLAY\n\
@@ -244,6 +245,7 @@ Initialization options:\n\
244 "\ 245 "\
245--quick, -Q equivalent to:\n\ 246--quick, -Q equivalent to:\n\
246 -q --no-site-file --no-site-lisp --no-splash\n\ 247 -q --no-site-file --no-site-lisp --no-splash\n\
248 --no-x-resources\n\
247--script FILE run FILE as an Emacs Lisp script\n\ 249--script FILE run FILE as an Emacs Lisp script\n\
248--terminal, -t DEVICE use DEVICE for terminal I/O\n\ 250--terminal, -t DEVICE use DEVICE for terminal I/O\n\
249--user, -u USER load ~USER/.emacs instead of your own\n\ 251--user, -u USER load ~USER/.emacs instead of your own\n\
@@ -1661,6 +1663,7 @@ static const struct standard_args standard_args[] =
1661 { "-quick", 0, 55, 0 }, 1663 { "-quick", 0, 55, 0 },
1662 { "-q", "--no-init-file", 50, 0 }, 1664 { "-q", "--no-init-file", 50, 0 },
1663 { "-no-init-file", 0, 50, 0 }, 1665 { "-no-init-file", 0, 50, 0 },
1666 { "-no-x-resources", "--no-x-resources", 40, 0 },
1664 { "-no-site-file", "--no-site-file", 40, 0 }, 1667 { "-no-site-file", "--no-site-file", 40, 0 },
1665 { "-u", "--user", 30, 1 }, 1668 { "-u", "--user", 30, 1 },
1666 { "-user", 0, 30, 1 }, 1669 { "-user", 0, 30, 1 },