diff options
| author | Stefan Monnier | 2018-01-15 13:42:51 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2018-01-15 13:42:51 -0500 |
| commit | 72ee93d68daea00e2ee69417afd4e31b3145a9fa (patch) | |
| tree | f485b3e50d189e10384903641accf0933102640a | |
| parent | 8e05cb61a247a9035c5bf33b55c933d48c964dbc (diff) | |
| download | emacs-72ee93d68daea00e2ee69417afd4e31b3145a9fa.tar.gz emacs-72ee93d68daea00e2ee69417afd4e31b3145a9fa.zip | |
* src/print.c (syms_of_print) <print_quoted>: Set default to true
| -rw-r--r-- | doc/lispintro/emacs-lisp-intro.texi | 4 | ||||
| -rw-r--r-- | doc/lispref/buffers.texi | 2 | ||||
| -rw-r--r-- | doc/lispref/debugging.texi | 4 | ||||
| -rw-r--r-- | doc/lispref/eval.texi | 6 | ||||
| -rw-r--r-- | doc/lispref/lists.texi | 4 | ||||
| -rw-r--r-- | doc/lispref/loading.texi | 2 | ||||
| -rw-r--r-- | doc/lispref/sequences.texi | 8 | ||||
| -rw-r--r-- | doc/misc/ede.texi | 6 | ||||
| -rw-r--r-- | doc/misc/efaq.texi | 4 | ||||
| -rw-r--r-- | doc/misc/org.texi | 2 | ||||
| -rw-r--r-- | etc/NEWS | 3 | ||||
| -rw-r--r-- | src/print.c | 2 |
12 files changed, 25 insertions, 22 deletions
diff --git a/doc/lispintro/emacs-lisp-intro.texi b/doc/lispintro/emacs-lisp-intro.texi index ab9144f61eb..8b24cc1d8ba 100644 --- a/doc/lispintro/emacs-lisp-intro.texi +++ b/doc/lispintro/emacs-lisp-intro.texi | |||
| @@ -2095,7 +2095,7 @@ You will create and enter a @file{*Backtrace*} buffer that says: | |||
| 2095 | Debugger entered--Lisp error: | 2095 | Debugger entered--Lisp error: |
| 2096 | (wrong-type-argument number-or-marker-p hello) | 2096 | (wrong-type-argument number-or-marker-p hello) |
| 2097 | +(2 hello) | 2097 | +(2 hello) |
| 2098 | eval((+ 2 (quote hello))) | 2098 | eval((+ 2 'hello)) |
| 2099 | eval-last-sexp-1(nil) | 2099 | eval-last-sexp-1(nil) |
| 2100 | eval-last-sexp(nil) | 2100 | eval-last-sexp(nil) |
| 2101 | call-interactively(eval-last-sexp) | 2101 | call-interactively(eval-last-sexp) |
| @@ -16740,7 +16740,7 @@ It will look like this: | |||
| 16740 | ;; If you edit it by hand, you could mess it up, so be careful. | 16740 | ;; If you edit it by hand, you could mess it up, so be careful. |
| 16741 | ;; Your init file should contain only one such instance. | 16741 | ;; Your init file should contain only one such instance. |
| 16742 | ;; If there is more than one, they won't work right. | 16742 | ;; If there is more than one, they won't work right. |
| 16743 | '(text-mode-hook (quote (turn-on-auto-fill text-mode-hook-identify)))) | 16743 | '(text-mode-hook '(turn-on-auto-fill text-mode-hook-identify))) |
| 16744 | @end group | 16744 | @end group |
| 16745 | @end smallexample | 16745 | @end smallexample |
| 16746 | 16746 | ||
diff --git a/doc/lispref/buffers.texi b/doc/lispref/buffers.texi index 3f43b1bb3b7..7e41eb32cce 100644 --- a/doc/lispref/buffers.texi +++ b/doc/lispref/buffers.texi | |||
| @@ -815,7 +815,7 @@ regardless of which frames they were displayed on. | |||
| 815 | @group | 815 | @group |
| 816 | ;; @r{Note that the name of the minibuffer} | 816 | ;; @r{Note that the name of the minibuffer} |
| 817 | ;; @r{begins with a space!} | 817 | ;; @r{begins with a space!} |
| 818 | (mapcar (function buffer-name) (buffer-list)) | 818 | (mapcar #'buffer-name (buffer-list)) |
| 819 | @result{} ("buffers.texi" " *Minibuf-1*" | 819 | @result{} ("buffers.texi" " *Minibuf-1*" |
| 820 | "buffer.c" "*Help*" "TAGS") | 820 | "buffer.c" "*Help*" "TAGS") |
| 821 | @end group | 821 | @end group |
diff --git a/doc/lispref/debugging.texi b/doc/lispref/debugging.texi index cb6f6e96b02..f937184e73a 100644 --- a/doc/lispref/debugging.texi +++ b/doc/lispref/debugging.texi | |||
| @@ -646,7 +646,7 @@ forms are elided. | |||
| 646 | (list ...computing arguments...) | 646 | (list ...computing arguments...) |
| 647 | @end group | 647 | @end group |
| 648 | (progn ...) | 648 | (progn ...) |
| 649 | eval((progn (1+ var) (list (quote testing) (backtrace)))) | 649 | eval((progn (1+ var) (list 'testing (backtrace)))) |
| 650 | (setq ...) | 650 | (setq ...) |
| 651 | (save-excursion ...) | 651 | (save-excursion ...) |
| 652 | (let ...) | 652 | (let ...) |
| @@ -677,7 +677,7 @@ example would look as follows: | |||
| 677 | (list ...computing arguments...) | 677 | (list ...computing arguments...) |
| 678 | @end group | 678 | @end group |
| 679 | (progn ...) | 679 | (progn ...) |
| 680 | (eval (progn (1+ var) (list (quote testing) (backtrace)))) | 680 | (eval (progn (1+ var) (list 'testing (backtrace)))) |
| 681 | (setq ...) | 681 | (setq ...) |
| 682 | (save-excursion ...) | 682 | (save-excursion ...) |
| 683 | (let ...) | 683 | (let ...) |
diff --git a/doc/lispref/eval.texi b/doc/lispref/eval.texi index b5d19f20c2d..4e8b0df7b58 100644 --- a/doc/lispref/eval.texi +++ b/doc/lispref/eval.texi | |||
| @@ -580,15 +580,15 @@ Here are some examples of expressions that use @code{quote}: | |||
| 580 | @end group | 580 | @end group |
| 581 | @group | 581 | @group |
| 582 | ''foo | 582 | ''foo |
| 583 | @result{} (quote foo) | 583 | @result{} 'foo |
| 584 | @end group | 584 | @end group |
| 585 | @group | 585 | @group |
| 586 | '(quote foo) | 586 | '(quote foo) |
| 587 | @result{} (quote foo) | 587 | @result{} 'foo |
| 588 | @end group | 588 | @end group |
| 589 | @group | 589 | @group |
| 590 | ['foo] | 590 | ['foo] |
| 591 | @result{} [(quote foo)] | 591 | @result{} ['foo] |
| 592 | @end group | 592 | @end group |
| 593 | @end example | 593 | @end example |
| 594 | 594 | ||
diff --git a/doc/lispref/lists.texi b/doc/lispref/lists.texi index 431f5fbbab2..3e2dd13c706 100644 --- a/doc/lispref/lists.texi +++ b/doc/lispref/lists.texi | |||
| @@ -1141,7 +1141,7 @@ each time you run it! Here is what happens: | |||
| 1141 | 1141 | ||
| 1142 | @group | 1142 | @group |
| 1143 | (symbol-function 'add-foo) | 1143 | (symbol-function 'add-foo) |
| 1144 | @result{} (lambda (x) (nconc (quote (foo)) x)) | 1144 | @result{} (lambda (x) (nconc '(foo) x)) |
| 1145 | @end group | 1145 | @end group |
| 1146 | 1146 | ||
| 1147 | @group | 1147 | @group |
| @@ -1159,7 +1159,7 @@ each time you run it! Here is what happens: | |||
| 1159 | 1159 | ||
| 1160 | @group | 1160 | @group |
| 1161 | (symbol-function 'add-foo) | 1161 | (symbol-function 'add-foo) |
| 1162 | @result{} (lambda (x) (nconc (quote (foo 1 2 3 4) x))) | 1162 | @result{} (lambda (x) (nconc '(foo 1 2 3 4) x)) |
| 1163 | @end group | 1163 | @end group |
| 1164 | @end smallexample | 1164 | @end smallexample |
| 1165 | @end defun | 1165 | @end defun |
diff --git a/doc/lispref/loading.texi b/doc/lispref/loading.texi index 92b7e864ab5..0165d114a75 100644 --- a/doc/lispref/loading.texi +++ b/doc/lispref/loading.texi | |||
| @@ -641,7 +641,7 @@ autoloading with a magic comment: | |||
| 641 | Here's what that produces in @file{loaddefs.el}: | 641 | Here's what that produces in @file{loaddefs.el}: |
| 642 | 642 | ||
| 643 | @example | 643 | @example |
| 644 | (autoload (quote doctor) "doctor" "\ | 644 | (autoload 'doctor "doctor" "\ |
| 645 | Switch to *doctor* buffer and start giving psychotherapy. | 645 | Switch to *doctor* buffer and start giving psychotherapy. |
| 646 | 646 | ||
| 647 | \(fn)" t nil) | 647 | \(fn)" t nil) |
diff --git a/doc/lispref/sequences.texi b/doc/lispref/sequences.texi index 3a599e5f535..80079bcfb00 100644 --- a/doc/lispref/sequences.texi +++ b/doc/lispref/sequences.texi | |||
| @@ -1298,9 +1298,9 @@ not evaluate or even examine the elements of the vector. | |||
| 1298 | @example | 1298 | @example |
| 1299 | @group | 1299 | @group |
| 1300 | (setq avector [1 two '(three) "four" [five]]) | 1300 | (setq avector [1 two '(three) "four" [five]]) |
| 1301 | @result{} [1 two (quote (three)) "four" [five]] | 1301 | @result{} [1 two '(three) "four" [five]] |
| 1302 | (eval avector) | 1302 | (eval avector) |
| 1303 | @result{} [1 two (quote (three)) "four" [five]] | 1303 | @result{} [1 two '(three) "four" [five]] |
| 1304 | (eq avector (eval avector)) | 1304 | (eq avector (eval avector)) |
| 1305 | @result{} t | 1305 | @result{} t |
| 1306 | @end group | 1306 | @end group |
| @@ -1390,9 +1390,9 @@ list with the same elements: | |||
| 1390 | @example | 1390 | @example |
| 1391 | @group | 1391 | @group |
| 1392 | (setq avector [1 two (quote (three)) "four" [five]]) | 1392 | (setq avector [1 two (quote (three)) "four" [five]]) |
| 1393 | @result{} [1 two (quote (three)) "four" [five]] | 1393 | @result{} [1 two '(three) "four" [five]] |
| 1394 | (append avector nil) | 1394 | (append avector nil) |
| 1395 | @result{} (1 two (quote (three)) "four" [five]) | 1395 | @result{} (1 two '(three) "four" [five]) |
| 1396 | @end group | 1396 | @end group |
| 1397 | @end example | 1397 | @end example |
| 1398 | 1398 | ||
diff --git a/doc/misc/ede.texi b/doc/misc/ede.texi index fbe3ac6a10a..88dc9e922e5 100644 --- a/doc/misc/ede.texi +++ b/doc/misc/ede.texi | |||
| @@ -1824,7 +1824,7 @@ This class implements the @code{ede-cpp-root} project type. | |||
| 1824 | @table @code | 1824 | @table @code |
| 1825 | @item :include-path | 1825 | @item :include-path |
| 1826 | Type: @code{list} @* | 1826 | Type: @code{list} @* |
| 1827 | Default Value: @code{(quote ("/include" "../include/"))} | 1827 | Default Value: @code{("/include" "../include/")} |
| 1828 | 1828 | ||
| 1829 | The default locate function expands filenames within a project. | 1829 | The default locate function expands filenames within a project. |
| 1830 | If a header file (.h, .hh, etc.)@: name is expanded, and | 1830 | If a header file (.h, .hh, etc.)@: name is expanded, and |
| @@ -2262,14 +2262,14 @@ The variable GNUSTEP_INSTALLATION_DOMAIN is set at this value. | |||
| 2262 | 2262 | ||
| 2263 | @item :preamble | 2263 | @item :preamble |
| 2264 | Type: @code{(or null list)} @* | 2264 | Type: @code{(or null list)} @* |
| 2265 | Default Value: @code{(quote ("GNUmakefile.preamble"))} | 2265 | Default Value: @code{("GNUmakefile.preamble")} |
| 2266 | 2266 | ||
| 2267 | The auxiliary makefile for additional variables. | 2267 | The auxiliary makefile for additional variables. |
| 2268 | Included just before the specific target files. | 2268 | Included just before the specific target files. |
| 2269 | 2269 | ||
| 2270 | @item :postamble | 2270 | @item :postamble |
| 2271 | Type: @code{(or null list)} @* | 2271 | Type: @code{(or null list)} @* |
| 2272 | Default Value: @code{(quote ("GNUmakefile.postamble"))} | 2272 | Default Value: @code{("GNUmakefile.postamble")} |
| 2273 | 2273 | ||
| 2274 | The auxiliary makefile for additional rules. | 2274 | The auxiliary makefile for additional rules. |
| 2275 | Included just after the specific target files. | 2275 | Included just after the specific target files. |
diff --git a/doc/misc/efaq.texi b/doc/misc/efaq.texi index 8014c2b71f5..3e67438ab9d 100644 --- a/doc/misc/efaq.texi +++ b/doc/misc/efaq.texi | |||
| @@ -3652,7 +3652,7 @@ to bind the key is in the kill ring, and can be yanked into your | |||
| 3652 | command are required. For example, | 3652 | command are required. For example, |
| 3653 | 3653 | ||
| 3654 | @lisp | 3654 | @lisp |
| 3655 | (global-set-key (quote [f1]) (quote help-for-help)) | 3655 | (global-set-key [f1] 'help-for-help) |
| 3656 | @end lisp | 3656 | @end lisp |
| 3657 | 3657 | ||
| 3658 | @noindent | 3658 | @noindent |
| @@ -3663,7 +3663,7 @@ For example, in TeX mode, a local binding might be | |||
| 3663 | @lisp | 3663 | @lisp |
| 3664 | (add-hook 'tex-mode-hook | 3664 | (add-hook 'tex-mode-hook |
| 3665 | (lambda () | 3665 | (lambda () |
| 3666 | (local-set-key (quote [f1]) (quote help-for-help)))) | 3666 | (local-set-key [f1] 'help-for-help))) |
| 3667 | @end lisp | 3667 | @end lisp |
| 3668 | 3668 | ||
| 3669 | 3669 | ||
diff --git a/doc/misc/org.texi b/doc/misc/org.texi index a252db48184..f779417bd70 100644 --- a/doc/misc/org.texi +++ b/doc/misc/org.texi | |||
| @@ -18173,7 +18173,7 @@ Suggested Org crypt settings in Emacs init file: | |||
| 18173 | @lisp | 18173 | @lisp |
| 18174 | (require 'org-crypt) | 18174 | (require 'org-crypt) |
| 18175 | (org-crypt-use-before-save-magic) | 18175 | (org-crypt-use-before-save-magic) |
| 18176 | (setq org-tags-exclude-from-inheritance (quote ("crypt"))) | 18176 | (setq org-tags-exclude-from-inheritance '("crypt")) |
| 18177 | 18177 | ||
| 18178 | (setq org-crypt-key nil) | 18178 | (setq org-crypt-key nil) |
| 18179 | ;; GPG key to use for encryption | 18179 | ;; GPG key to use for encryption |
| @@ -198,6 +198,9 @@ as new-style, bind the new variable 'force-new-style-backquotes' to t. | |||
| 198 | 198 | ||
| 199 | * Lisp Changes in Emacs 27.1 | 199 | * Lisp Changes in Emacs 27.1 |
| 200 | 200 | ||
| 201 | ** 'print-quoted' now defaults to t, so if you want to see | ||
| 202 | (quote x) instead of 'x you will have to bind it to nil where applicable. | ||
| 203 | |||
| 201 | ** Internal parsing commands now use syntax-ppss and disregard | 204 | ** Internal parsing commands now use syntax-ppss and disregard |
| 202 | open-paren-in-column-0-is-defun-start. This affects mostly things like | 205 | open-paren-in-column-0-is-defun-start. This affects mostly things like |
| 203 | forward-comment, scan-sexps, and forward-sexp when parsing backward. | 206 | forward-comment, scan-sexps, and forward-sexp when parsing backward. |
diff --git a/src/print.c b/src/print.c index 47cb33deeba..0e1980d84be 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -2366,7 +2366,7 @@ This affects only `prin1'. */); | |||
| 2366 | DEFVAR_BOOL ("print-quoted", print_quoted, | 2366 | DEFVAR_BOOL ("print-quoted", print_quoted, |
| 2367 | doc: /* Non-nil means print quoted forms with reader syntax. | 2367 | doc: /* Non-nil means print quoted forms with reader syntax. |
| 2368 | I.e., (quote foo) prints as \\='foo, (function foo) as #\\='foo. */); | 2368 | I.e., (quote foo) prints as \\='foo, (function foo) as #\\='foo. */); |
| 2369 | print_quoted = 0; | 2369 | print_quoted = true; |
| 2370 | 2370 | ||
| 2371 | DEFVAR_LISP ("print-gensym", Vprint_gensym, | 2371 | DEFVAR_LISP ("print-gensym", Vprint_gensym, |
| 2372 | doc: /* Non-nil means print uninterned symbols so they will read as uninterned. | 2372 | doc: /* Non-nil means print uninterned symbols so they will read as uninterned. |