~ubuntu-elisp/emacs/+git/master:scratch/add-lisp-data-mode

Last commit made on 2020-04-19
Get this branch:
git clone -b scratch/add-lisp-data-mode https://git.launchpad.net/~ubuntu-elisp/emacs/+git/master

Branch merges

Branch information

Name:
scratch/add-lisp-data-mode
Repository:
lp:~ubuntu-elisp/emacs/+git/master

Recent commits

7686c78... by Juri Linkov <email address hidden>

Add semicolon to prop-line with lisp-data mode (bug#40573).

* lisp/bookmark.el (bookmark-insert-file-format-version-stamp):
* lisp/saveplace.el (save-place-alist-to-file):
Add semicolon to separate 'coding:' and 'mode:'.

e95703c... by =?utf-8?b?Sm/Do28gVMOhdm9yYQ==?= <email address hidden>

Don't mess with lisp-mode-variables

* doc/lispref/modes.texi (Example Major Modes): Update example to
match reality.

* lisp/chistory.el (command-history-mode): Revert previous change.

* lisp/help-fns.el (describe-variable): Revert previous change.

* lisp/emacs-lisp/lisp-mode.el (lisp-mode-variables): Rvert previous change.
(lisp-data-mode): Use full form of lisp-mode-variables for clarity.
(lisp-mode): Simplify.

* lisp/emacs-lisp/pp.el (pp-to-string): Revert previous change.

* lisp/progmodes/elisp-mode.el (emacs-lisp-mode): Case sensitive
font-lock keywords.

* lisp/progmodes/inf-lisp.el (inferior-lisp-mode): Revert previous
change.

da59c5e... by =?utf-8?b?Sm/Do28gVMOhdm9yYQ==?= <email address hidden>

* lisp/files.el (auto-mode-alist): Add more reasonably lisp-data files

9b37969... by =?utf-8?b?Sm/Do28gVMOhdm9yYQ==?= <email address hidden>

lisp-mode-variables uses lisp-mode-syntax-table

All core modes that weren't interested overwrite it anyway for
emacs-lisp. And third party usage of this functions (in SLIME/SLY)
wants the lisp-mode-syntax-table anyway.

* lisp/emacs-lisp/lisp-mode.el (lisp-mode-variables): Use
lisp-mode-syntax-table by default.

18d9c0f... by =?utf-8?b?Sm/Do28gVMOhdm9yYQ==?= <email address hidden>

* lisp/files.el (auto-mode-alist): Handle .dir-locals-2.el.

b527e98... by =?utf-8?b?Sm/Do28gVMOhdm9yYQ==?= <email address hidden>

Make lisp-mode-variables function less backward-incompatible

A small number of third-party packages rely on its arguments. They
shouldn't be seriously affected.

* doc/lispref/modes.texi (Example Major Modes): Make example
closer to reality.

* lisp/emacs-lisp/lisp-mode.el (lisp-mode-variables): Ignore any
number of arguments.

035137b... by =?utf-8?b?Sm/Do28gVMOhdm9yYQ==?= <email address hidden>

Use lisp-data-mode in 5 more places

Thanks to Juri Linkov and Basil L. Contovounesios for the list and the
indication of the function that needed to be changed.

* lisp/bookmark.el (bookmark-insert-file-format-version-stamp):
Use lisp-data-mode.

* lisp/saveplace.el (save-place-alist-to-file): Use
lisp-data-mode.

* lisp/net/eww.el (eww-write-bookmarks): Use lisp-data-mode.

* lisp/net/nsm.el (nsm-write-settings): Use lisp-data-mode.

* lisp/net/tramp-cache.el (tramp-dump-connection-properties): Use
lisp-data-mode.

b4af4a3... by =?utf-8?b?Sm/Do28gVMOhdm9yYQ==?= <email address hidden>

Add a lisp-data-mode for editing non-code lisp data

To provide a cleaner implementation remove arguments from the
auxiliary routine lisp-mode-variables. The modes/functions that need
to do some something special adjustment do them in their own bodies.

* lisp/chistory.el (command-history-mode): Don't pass nil to
lisp-mode-variables.

* lisp/files.el (auto-mode-alist): Add entry for ".dir-locals".

* lisp/help-fns.el (describe-variable): Don't pass useless args to
lisp-mode-variables.

* lisp/emacs-lisp/pp.el (pp-to-string): Don't pass useless args to
lisp-mode-variables.

* lisp/emacs-lisp/lisp-mode.el (lisp-mode-variables):
Simplify. Always set same variables.
(lisp-data-mode): New major mode.
(lisp-mode): Inherit from lisp-data-mode. Set special lisp-mode
stuff here.

* lisp/progmodes/elisp-mode.el (emacs-lisp-mode): Inherit from
lisp-data-mode.
(emacs-lisp-mode): Simplify.

* lisp/progmodes/inf-lisp.el (inferior-lisp-mode): Set the needed
syntax table here, not through other function.

2cb7e86... by Paul Eggert

Port recent character.h changes to --with-wide-int

* src/fns.c (mapcar1):
* src/keymap.c (Fkey_description):
* src/syntax.c (scan_lists):
Prefer ptrdiff_t to EMACS_INT where either will do; this fixes
newly-introduced type errors on --with-wide-int platforms where
ptrdiff_t is narrower than EMACS_INT.
* src/keymap.c (Fkey_description): Rework for clarity; remove goto.
* src/syntax.c (scan_words, Fforward_comment, scan_lists)):
Fix unlikely integer overflow problems that can occur on
--with-wide-int platforms, and that were caught by the recent
character.h changes.

fadfde5... by Paul Eggert

Pacify gcc -Og x86-64

* src/editfns.c (Ftranslate_region_internal): Add UNINIT
to pacify gcc -Og x86-64 (GCC 9.3.1 20200317 (Red Hat 9.3.1-1)).