[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/raeburn-startup a47fa80 13/43: Dump and restore th
From: |
Ken Raeburn |
Subject: |
[Emacs-diffs] scratch/raeburn-startup a47fa80 13/43: Dump and restore the standard syntax table. |
Date: |
Mon, 31 Jul 2017 02:11:00 -0400 (EDT) |
branch: scratch/raeburn-startup
commit a47fa80166198097596c134e43acc632078d854a
Author: Ken Raeburn <address@hidden>
Commit: Ken Raeburn <address@hidden>
Dump and restore the standard syntax table.
* src/syntax.c (Finternal_set_standard_syntax_table): New function.
(syms_of_syntax): Make it know.
* lisp/loadup.el: Generate a call, supplying the table definition at
dump time.
---
lisp/loadup.el | 3 +++
src/syntax.c | 13 +++++++++++++
2 files changed, 16 insertions(+)
diff --git a/lisp/loadup.el b/lisp/loadup.el
index cb328dd..76e0a21 100644
--- a/lisp/loadup.el
+++ b/lisp/loadup.el
@@ -494,6 +494,9 @@ lost after dumping")))
(charsets '()) (charset-aliases '())
(cmds '()))
(setcdr global-buffers-menu-map nil) ;; Get rid of buffer objects!
+ (push `(internal--set-standard-syntax-table
+ ,(standard-syntax-table))
+ cmds)
(mapatoms
(lambda (s)
(when (fboundp s)
diff --git a/src/syntax.c b/src/syntax.c
index dcaca22..209acc2 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -1029,6 +1029,18 @@ It is a copy of the TABLE, which defaults to the
standard syntax table. */)
return copy;
}
+DEFUN ("internal--set-standard-syntax-table",
+ Finternal_set_standard_syntax_table,
+ Sinternal_set_standard_syntax_table, 1, 1, 0,
+ doc: /* Replace the standard syntax table, used for new buffers. */)
+ (Lisp_Object table)
+{
+ check_syntax_table (table);
+ Vstandard_syntax_table = table;
+ Fset_char_table_parent (table, Qnil);
+ return table;
+}
+
DEFUN ("set-syntax-table", Fset_syntax_table, Sset_syntax_table, 1, 1, 0,
doc: /* Select a new syntax table for the current buffer.
One argument, a syntax table. */)
@@ -3769,6 +3781,7 @@ In both cases, LIMIT bounds the search. */);
defsubr (&Sstring_to_syntax);
defsubr (&Smodify_syntax_entry);
defsubr (&Sinternal_describe_syntax_value);
+ defsubr (&Sinternal_set_standard_syntax_table);
defsubr (&Sforward_word);
- [Emacs-diffs] scratch/raeburn-startup 4a6ef22 12/43: Save and restore default values, and buffer-local setting., (continued)
- [Emacs-diffs] scratch/raeburn-startup 4a6ef22 12/43: Save and restore default values, and buffer-local setting., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup d85d26b 10/43: Eli's test patch to stop using dump-emacs., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup e7fcd8a 14/43: Reload category table at startup rather than saving it., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 406bfc4 15/43: Call unify-charset on appropriate charsets., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup ee0638c 18/43: Create frame's face cache., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 7414991 01/43: Stefan's patch to write out and load "dumped.elc"; Oct 31 version., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup fd03b6b 07/43: Dump defvars for special variables only., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup cd1a407 05/43: Create *Messages* buffer when loading dumped data., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 711bff0 06/43: Don't memset storage we're about to fill anyway., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 76ee58e 17/43: Don't save coding-system-list., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup a47fa80 13/43: Dump and restore the standard syntax table.,
Ken Raeburn <=
- [Emacs-diffs] scratch/raeburn-startup 23b10de 22/43: Disable "before-dump" memory allocation on MS-Windows, Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 89bfbf7 38/43: * lisp/loadup.el: Drop several more variables from dumped.elc., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup e69daac 21/43: Fix build on Cygwin, Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 98025ef 31/43: Retain overlay properties when dumping., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup f6793d2 41/43: Don't use byte-compile-dynamic for stuff we're going to load., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 9664101 16/43: Load dumped.elc quietly., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup cc22b26 19/43: Don't save internal--text-quoting-flag., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 3da90ae 32/43: Make watchers dumpable., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 363abae 30/43: Support dumping variable aliases., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 291e585 24/43: Update load-path and purify-flag even if not bootstrapping., Ken Raeburn, 2017/07/31