auctex-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 7030681599ac4f7c0bdf2


From: Ikumi Keita
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 7030681599ac4f7c0bdf225d3ad708fcedec68c1
Date: Mon, 3 Dec 2018 10:23:07 -0500 (EST)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
       via  7030681599ac4f7c0bdf225d3ad708fcedec68c1 (commit)
       via  b13bebb2e565f88edffea9830056f86130973265 (commit)
       via  761ffc3f8ab6d7795609cf6afa5d2bc397d0aa4a (commit)
       via  4617caac744644d8536c2f2ed1c4e028ab943d3b (commit)
       via  253e900238ea8b96905fe9ca04547bb347a17bbf (commit)
      from  8b5e53d9f55bdf06e529096156845f660a8d03dc (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7030681599ac4f7c0bdf225d3ad708fcedec68c1
Author: Ikumi Keita <address@hidden>
Date:   Tue Nov 27 03:34:37 2018 +0900

    * tex-buf.el (TeX-special-mode): Use `define-derived-mode'.

diff --git a/tex-buf.el b/tex-buf.el
index 61921c8..3a6203b 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -3836,35 +3836,7 @@ warnings and bad boxes"
 
 ;;; Output mode
 
-(defalias 'TeX-special-mode
-  (if (fboundp 'special-mode)
-      (progn
-        (defvaralias 'TeX-special-mode-map 'special-mode-map)
-        #'special-mode)
-    (defvar TeX-special-mode-map
-      (let ((map (make-sparse-keymap)))
-        (suppress-keymap map)
-        (define-key map "q" (if (fboundp 'quit-window)
-                                'quit-window
-                              'bury-buffer))
-        (define-key map " " (if (fboundp 'scroll-up-command)
-                                'scroll-up-command
-                              'scroll-up))
-        (define-key map [backspace] (if (fboundp 'scroll-down-command)
-                                        'scroll-down-command
-                                      'scroll-down))
-        (define-key map "\C-?" (if (fboundp 'scroll-down-command)
-                                   'scroll-down-command
-                                 'scroll-down))
-        (define-key map "?" 'describe-mode)
-        (define-key map "h" 'describe-mode)
-        (define-key map ">" 'end-of-buffer)
-        (define-key map "<" 'beginning-of-buffer)
-        (define-key map "g" 'revert-buffer)
-        map)
-      "Keymap for `TeX-special-mode-map'.")
-    (lambda ()
-      "Placeholder mode for Emacsen which don't have `special-mode'.")))
+(define-derived-mode TeX-special-mode special-mode "TeX")
 
 (defvar TeX-output-mode-map
   (let ((map (make-sparse-keymap)))

commit b13bebb2e565f88edffea9830056f86130973265
Author: Ikumi Keita <address@hidden>
Date:   Tue Nov 27 03:31:18 2018 +0900

    Remove compatibility code for older emacsen
    
    * font-latex.el (font-latex-after-hacking-local-variables): Remove
    fallback code for case `file-local-variables-alist' isn't available.

diff --git a/font-latex.el b/font-latex.el
index 3640083..6d07ba8 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -1383,27 +1383,14 @@ modified.  Such variables include
 `LaTeX-verbatim-environments-local',
 `LaTeX-verbatim-macros-with-braces-local',
 `LaTeX-verbatim-macros-with-delims-local'."
-  (when (if (boundp 'file-local-variables-alist)
-           ;; In Emacs we know if the value came from file or directory
-           ;; locals.  Note to self: directory-local variables are also added
-           ;; to file-local-variables-alist.
-           (let ((hacked-local-vars (mapcar #'car file-local-variables-alist)))
-             (or (memq 'LaTeX-verbatim-environments-local hacked-local-vars)
-                 (memq 'LaTeX-verbatim-macros-with-braces-local 
hacked-local-vars)
-                 (memq 'LaTeX-verbatim-macros-with-delims-local 
hacked-local-vars)))
-         ;; In XEmacs and old Emacs versions we don't know if a buffer-local
-         ;; variable has been set by a file-local variables block or somehow
-         ;; else.  So we trigger a refresh if any of those variables has a
-         ;; non-nil local binding.
-         (or (and LaTeX-verbatim-environments-local
-                  (local-variable-p LaTeX-verbatim-environments-local
-                                    (current-buffer)))
-             (and LaTeX-verbatim-macros-with-braces-local
-                  (local-variable-p LaTeX-verbatim-macros-with-braces-local
-                                    (current-buffer)))
-             (and LaTeX-verbatim-macros-with-delims-local
-                  (local-variable-p LaTeX-verbatim-macros-with-delims-local
-                                    (current-buffer)))))
+  (when
+      ;; In Emacs we know if the value came from file or directory
+      ;; locals.  Note to self: directory-local variables are also added
+      ;; to file-local-variables-alist.
+      (let ((hacked-local-vars (mapcar #'car file-local-variables-alist)))
+       (or (memq 'LaTeX-verbatim-environments-local hacked-local-vars)
+           (memq 'LaTeX-verbatim-macros-with-braces-local hacked-local-vars)
+           (memq 'LaTeX-verbatim-macros-with-delims-local hacked-local-vars)))
     ;; Ok, we need to refresh fontification.
     (font-latex-update-font-lock t)))
 

commit 761ffc3f8ab6d7795609cf6afa5d2bc397d0aa4a
Author: Ikumi Keita <address@hidden>
Date:   Tue Nov 27 03:27:57 2018 +0900

    Remove compatibility code for older emacsen
    
    * font-latex.el (font-latex-doctex-^^A): Remove fallback for case
    `string-to-syntax' isn't available.

diff --git a/font-latex.el b/font-latex.el
index 61157b9..3640083 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -2124,26 +2124,14 @@ END marks boundaries for searching for quotation ends."
             ;; syntax-table can't deal with.  We could turn it
             ;; into a non-comment, or use `\n%' or `%^' as the comment.
             ;; Instead, we include it in the ^^A comment.
-            ;; COMPATIBILITY for Emacs 20 and XEmacs
-            (eval-when-compile (if (fboundp 'string-to-syntax)
-                                   (string-to-syntax "< b")
-                                 '(2097163)))
-          ;; COMPATIBILITY for Emacs 20 and XEmacs
-          (eval-when-compile (if (fboundp 'string-to-syntax)
-                                 (string-to-syntax ">")
-                               '(12)))))
+            (eval-when-compile (string-to-syntax "< b"))
+          (eval-when-compile (string-to-syntax ">"))))
        (let ((end (line-end-position)))
          (if (< end (point-max))
              (put-text-property end (1+ end) 'syntax-table
-                                   ;; COMPATIBILITY for Emacs 20 and XEmacs
                                    (eval-when-compile
-                                     (if (fboundp 'string-to-syntax)
-                                         (string-to-syntax "> b")
-                                       '(2097164))))))
-       ;; COMPATIBILITY for Emacs 20 and XEmacs
-       (eval-when-compile (if (fboundp 'string-to-syntax)
-                              (string-to-syntax "< b")
-                            '(2097163))))))
+                                     (string-to-syntax "> b")))))
+       (eval-when-compile (string-to-syntax "< b")))))
 
 ;; Copy and adaptation of `doctex-font-lock-syntactic-face-function'
 ;; in `tex-mode.el' of CVS Emacs (March 2004)

commit 4617caac744644d8536c2f2ed1c4e028ab943d3b
Author: Ikumi Keita <address@hidden>
Date:   Tue Nov 27 03:25:57 2018 +0900

    Remove compatibility code for older emacsen
    
    * latex.el (LaTeX-fill-region-as-para-do): Drop fallback for case
    `fill-delete-prefix' isn't available.

diff --git a/latex.el b/latex.el
index 2b4749b..0165242 100644
--- a/latex.el
+++ b/latex.el
@@ -3776,21 +3776,8 @@ space does not end a sentence, so don't break a line 
there."
          (remove-text-properties from to '(hard nil)))
        ;; Make sure first line is indented (at least) to left margin...
        (indent-according-to-mode)
-       ;; COMPATIBILITY for Emacs <= 21.1
-       (if (fboundp 'fill-delete-prefix)
-           ;; Delete the fill-prefix from every line.
-           (fill-delete-prefix from to fill-prefix)
-         ;; Delete the comment prefix and any whitespace from every
-         ;; line of the region in concern except the first. (The
-         ;; implementation is heuristic to a certain degree.)
-         (save-excursion
-           (goto-char from)
-           (forward-line 1)
-           (when (< (point) to)
-             (while (re-search-forward (concat "^[ \t]+\\|^[ \t]*"
-                                               TeX-comment-start-regexp
-                                               "+[ \t]*") to t)
-               (delete-region (match-beginning 0) (match-end 0))))))
+       ;; Delete the fill-prefix from every line.
+       (fill-delete-prefix from to fill-prefix)
 
        (setq from (point))
 

commit 253e900238ea8b96905fe9ca04547bb347a17bbf
Author: Ikumi Keita <address@hidden>
Date:   Tue Nov 27 03:22:56 2018 +0900

    Adjust autoload cookie
    
    * tex-fold.el (TeX-fold-mode): Set autoload cookie directly to
    `define-minor-mode'.

diff --git a/tex-fold.el b/tex-fold.el
index 8a54570..f66776d 100644
--- a/tex-fold.el
+++ b/tex-fold.el
@@ -908,12 +908,7 @@ the other elements.  The ordering among elements is 
maintained."
 
 ;;; The mode
 
-;; This autoload cookie had to be changed because of XEmacs.  This is
-;; very dissatisfactory, because we now don't have the full doc string
-;; available to tell people what to expect when using this mode before
-;; loading it.
-
-;;;###autoload (autoload 'TeX-fold-mode "tex-fold" "Minor mode for hiding and 
revealing macros and environments." t)
+;;;###autoload
 (define-minor-mode TeX-fold-mode
   "Minor mode for hiding and revealing macros and environments.
 

-----------------------------------------------------------------------

Summary of changes:
 font-latex.el | 49 ++++++++++++-------------------------------------
 latex.el      | 17 ++---------------
 tex-buf.el    | 30 +-----------------------------
 tex-fold.el   |  7 +------
 4 files changed, 16 insertions(+), 87 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

[Prev in Thread] Current Thread [Next in Thread]