[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] [elpa] externals/auctex 63e48dd 01/10: Document lexical-b
From: |
Tassilo Horn |
Subject: |
[AUCTeX-diffs] [elpa] externals/auctex 63e48dd 01/10: Document lexical-binding changes in context.el. |
Date: |
Thu, 24 Dec 2020 09:49:28 -0500 (EST) |
branch: externals/auctex
commit 63e48dda9605111eea1d9be18c4eb6258f04572c
Author: Tassilo Horn <tsdh@gnu.org>
Commit: Tassilo Horn <tsdh@gnu.org>
Document lexical-binding changes in context.el.
* doc/changes.texi: Document lexical-binding changes in context.el.
* context.el: Don't reference non-existing ConTeXt-section-hook but
ConTeXt-numbered-section-hook.
---
context.el | 16 +++++++++-------
doc/changes.texi | 8 ++++++++
2 files changed, 17 insertions(+), 7 deletions(-)
diff --git a/context.el b/context.el
index bde604f..42406bb 100644
--- a/context.el
+++ b/context.el
@@ -285,7 +285,7 @@ Or:
The following variables can be set to customize:
-`ConTeXt-section-hook' Hooks to run when inserting a section.
+`ConTeXt-numbered-section-hook' Hooks to run when inserting a section.
`ConTeXt-section-ref' Prefix to all section references."
(interactive "*P")
@@ -532,7 +532,7 @@ the title of the section inserted with
`\\[ConTeXt-section]."
(defun ConTeXt-section-section ()
"Hook to insert ConTeXt section command into the file.
-Insert this hook into `ConTeXt-section-hook' after those hooks
+Insert this hook into `ConTeXt-numbered-section-hook' after those hooks
which sets the `ConTeXt-name', `ConTeXt-title', and
`ConTeXt-reference' variables, but before those hooks which
assumes the section already is inserted."
@@ -555,7 +555,7 @@ assumes the section already is inserted."
(defun ConTeXt-section-ref ()
"Hook to insert a reference after the sectioning command.
-Insert this hook into `ConTeXt-section-hook' to prompt for a label to be
+Insert this hook into `ConTeXt-numbered-section-hook' to prompt for a label to
be
inserted after the sectioning command."
(setq ConTeXt-reference
(completing-read
@@ -1433,14 +1433,16 @@ else. There might be text before point."
(defun ConTeXt-numbered-section-menu (level)
"Insert numbered section from menu."
- (let ((ConTeXt-numbered-section-hook (delq 'ConTeXt-numbered-section-heading
- (copy-sequence
ConTeXt-numbered-section-hook))))
+ (let ((ConTeXt-numbered-section-hook
+ (delq 'ConTeXt-numbered-section-heading
+ (copy-sequence ConTeXt-numbered-section-hook))))
(ConTeXt-section level)))
(defun ConTeXt-unnumbered-section-menu (level)
"Insert unnumbered section from menu."
- (let ((ConTeXt-unnumbered-section-hook (delq
'ConTeXt-unnumbered-section-heading
- (copy-sequence
ConTeXt-unnumbered-section-hook))))
+ (let ((ConTeXt-unnumbered-section-hook
+ (delq 'ConTeXt-unnumbered-section-heading
+ (copy-sequence ConTeXt-unnumbered-section-hook))))
(ConTeXt-section level)))
(defun ConTeXt-numbered-section-menu-entry (entry)
diff --git a/doc/changes.texi b/doc/changes.texi
index be0d1cd..63cfe45 100644
--- a/doc/changes.texi
+++ b/doc/changes.texi
@@ -47,6 +47,14 @@ previously undeclared variables @code{title}, @code{name},
@code{level},
@code{done-mark}, and @code{toc}. These variables are now properly
declared and have the @code{LaTeX-} prefix, e.g.,
@code{LaTeX-done-mark}.
+
+@item
+The functions in @code{ConTeXt-numbered-section-hook} and
+@code{ConTeXt-unnumbered-section-hook} had access or modified the
+previously undeclared variables @code{title}, @code{name}, @code{level},
+@code{done-mark}, and @code{reference}. These variables are now
+properly declared and have the @code{ConTeXt-} prefix, e.g.,
+@code{ConTeXt-title}.
@end itemize
@item
- [AUCTeX-diffs] [elpa] externals/auctex updated (e6b1bf2 -> aee4e16), Tassilo Horn, 2020/12/24
- [AUCTeX-diffs] [elpa] externals/auctex 63e48dd 01/10: Document lexical-binding changes in context.el.,
Tassilo Horn <=
- [AUCTeX-diffs] [elpa] externals/auctex be71fb7 03/10: Delete bogus defvar, Tassilo Horn, 2020/12/24
- [AUCTeX-diffs] [elpa] externals/auctex 5644ad0 06/10: ; Fix Emacs version check, Tassilo Horn, 2020/12/24
- [AUCTeX-diffs] [elpa] externals/auctex 2863976 02/10: Drop old implementations for viewers, Tassilo Horn, 2020/12/24
- [AUCTeX-diffs] [elpa] externals/auctex aee4e16 10/10: Migrate changes from auctex.el.in into auctex.el., Tassilo Horn, 2020/12/24
- [AUCTeX-diffs] [elpa] externals/auctex 5862ea4 08/10: Merge remote-tracking branch 'origin/master' into externals/auctex, Tassilo Horn, 2020/12/24
- [AUCTeX-diffs] [elpa] externals/auctex 6570950 04/10: ; Remove `*' at the beginning of docstrings, Tassilo Horn, 2020/12/24
- [AUCTeX-diffs] [elpa] externals/auctex dbc339f 05/10: Lift required GNU Emacs version to 24.3, Tassilo Horn, 2020/12/24
- [AUCTeX-diffs] [elpa] externals/auctex 0294aff 07/10: Fixup dropping old implementations for viewers, Tassilo Horn, 2020/12/24
- [AUCTeX-diffs] [elpa] externals/auctex b4219a3 09/10: Regenerate docs and tex-site.el, Tassilo Horn, 2020/12/24