1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-02 02:10:46 -08:00
emacs/doc/lispref
Stefan Monnier 2b5d43081a (major-mode-remap(-defaults)): New var and function (bug#69191)
While `major-mode-remap-alist` provides a way for users to indicate the
major mode of their choice, we need a similar variable for the
use of packages.

This patch adds a new `major-mode-remap-defaults` and changes various
packages to obey it or make use of it.
I think it nicely cleans the regexp duplication between CC-mode and
`c-ts-mode.el` and also makes it easier/cleaner for users to override
the changes made by `*-ts-mode.el`.

* lisp/files.el (major-mode-remap-defaults): New variable.
(major-mode-remap): New function.
(set-auto-mode-0): Use it.
* doc/lispref/modes.texi (Auto Major Mode): Document them.

* lisp/textmodes/tex-mode.el (tex--redirect-to-submode):
Use `major-mode-remap`.
(major-mode-remap-defaults): Set it to remap AUCTeX modes by default.
* lisp/progmodes/ruby-ts-mode.el (auto-mode-alist): Leave it alone.
(major-mode-remap-defaults): Set this one instead.
* lisp/progmodes/c-ts-mode.el (c-or-c++-ts-mode): Use `major-mode-remap`.
(auto-mode-alist): Leave it alone.
(major-mode-remap-defaults): Set this one instead.
* lisp/org/ox.el (org-export-to-buffer): Modernize docstring accordingly.
* lisp/progmodes/cc-mode.el (c-or-c++-mode):
* lisp/org/ox-latex.el (org-latex-export-as-latex):
* lisp/org/ox-koma-letter.el (org-koma-letter-export-as-latex):
* lisp/org/ox-beamer.el (org-beamer-export-as-latex):
Use `major-mode-remap` when available.
2024-03-03 23:58:18 -05:00
..
abbrevs.texi Update NEWS and manual after obarray changes 2024-02-23 13:02:27 +01:00
anti.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
back.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
backups.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
book-spine.texi
buffers.texi ; * doc/lispref/buffers.texi (Buffer List): Fix merge snafu. 2024-01-06 15:25:29 +02:00
ChangeLog.1 Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
commands.texi Take stock of the wheel-up/down confusion 2024-01-24 12:57:33 -05:00
compile.texi Eliminate lazy bytecode loading 2024-01-31 17:12:25 +01:00
control.texi (pcase): New _ syntax in pred/app functions 2024-02-11 22:00:44 -05:00
customize.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
debugging.texi Improve documentation of profiler commands 2024-01-24 21:34:16 +02:00
display.texi Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
doclicense.texi
edebug.texi Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
elisp.texi Fix documentation of last change 2024-03-01 10:52:50 +02:00
errors.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
eval.texi eval.c: Add new var lisp-eval-depth-reserve 2024-01-04 16:36:22 -05:00
files.texi Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
frames.texi Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
functions.texi Merge from origin/emacs-29 2024-01-13 05:36:16 -05:00
gpl.texi
hash.texi Clarify permitted mutation in maphash documentation 2024-01-21 11:21:51 +01:00
help.texi Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
hooks.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
index.texi
internals.texi Merge from origin/emacs-29 2024-01-13 05:36:16 -05:00
intro.texi Add cross-reference to ELisp manual Caveats 2024-02-15 00:44:55 +01:00
keymaps.texi Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
lay-flat.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
lists.texi Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
loading.texi Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
macros.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
Makefile.in ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
maps.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
markers.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
minibuf.texi 'read-passwd' can toggle the visibility of passwords 2024-02-25 10:06:09 +01:00
modes.texi (major-mode-remap(-defaults)): New var and function (bug#69191) 2024-03-03 23:58:18 -05:00
nonascii.texi Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
numbers.texi Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
objects.texi Fix documentation of last change 2024-03-01 10:52:50 +02:00
os.texi Merge from origin/emacs-29 2024-01-27 08:14:31 -05:00
package.texi Add the public API of Compat to the core 2024-02-11 22:50:29 +01:00
parsing.texi Tree-sitter support for outline-minor-mode (bug#68824) 2024-02-12 20:18:24 +02:00
positions.texi Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
processes.texi Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
README ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
records.texi Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
searching.texi Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
sequences.texi ; * doc/lispref/sequences.texi (Sequence Functions): Fix typo. 2024-02-02 18:33:54 +02:00
spellfile Rewrites of Elisp manual including tab-bar and tab-line changes 2021-10-18 09:58:48 +02:00
streams.texi Merge from origin/emacs-29 2024-01-27 08:14:31 -05:00
strings.texi Fix typo in lispref "Creating Strings" section 2024-01-13 18:08:49 +01:00
symbols.texi ; Fix some wording in recent obarray changes. 2024-02-29 16:25:26 +01:00
syntax.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
text.texi Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
threads.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
tips.texi Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
two-volume-cross-refs.txt ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
two-volume.make ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
type_hierarchy.jpg Run syncdoc-type-hierarchy.el to follow obarray type introduction 2024-02-28 21:12:27 +01:00
type_hierarchy.txt Run syncdoc-type-hierarchy.el to follow obarray type introduction 2024-02-28 21:12:27 +01:00
variables.texi Improve handler-bind doc 2024-01-04 16:39:48 -05:00
windows.texi New display action alist entry 'post-command-select-window' (bug#67993) 2024-01-16 18:54:04 +02:00

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Copyright (C) 2001-2024 Free Software Foundation, Inc.  -*- outline -*-
See the end of the file for license conditions.


README for the Emacs Lisp Reference Manual.

* This directory contains the texinfo source files for the Emacs Lisp
Reference Manual.

* Report bugs in the Lisp Manual (or in Emacs) using M-x report-emacs-bug.
To ask questions, use the help-gnu-emacs mailing list.

* The Emacs Lisp Reference Manual is quite large.  It totals around
1100 pages in smallbook format; the info files total around 3.0 megabytes.

* You can format this manual for Info, for printing hardcopy using TeX,
or for HTML.

* You can buy nicely printed copies from the Free Software Foundation.
Buying a manual from the Free Software Foundation helps support our GNU
development work.  See <https://shop.fsf.org/>.
(At time of writing, this manual is out of print.)

* The master file for formatting this manual for Tex is called 'elisp.texi'.
It contains @include commands to include all the chapters that make up
the manual.

* This distribution contains a Makefile that you can use with GNU Make.

** To make an Info file, you need to install Texinfo, then run 'make info'.

** Use 'make elisp.pdf' or 'make elisp.html' to create PDF or HTML versions.


This file is part of GNU Emacs.

GNU Emacs is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

GNU Emacs is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.