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. 0847db39c9326914d05da


From: Arash Esbati
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 0847db39c9326914d05da82128e727d2d67efaeb
Date: Thu, 24 Feb 2022 06:57:58 -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  0847db39c9326914d05da82128e727d2d67efaeb (commit)
      from  163dcb75bd0b67e850b9e4c4f3ba2f2d310360a0 (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 0847db39c9326914d05da82128e727d2d67efaeb
Author: Arash Esbati <arash@gnu.org>
Date:   Thu Feb 24 12:57:15 2022 +0100

    Improve file query in style/ltxtable.el
    
    * style/ltxtable.el ("ltxtable"): Improve query for longtable file
    which can reside in a subfolder.  Input die subfolder relative to
    directory of the master file.
    Change fontification of LTXtable macro to reference class.

diff --git a/style/ltxtable.el b/style/ltxtable.el
index f73c0e7a..51b9b025 100644
--- a/style/ltxtable.el
+++ b/style/ltxtable.el
@@ -1,6 +1,6 @@
-;;; ltxtable.el --- AUCTeX style for `ltxtable.sty' (v0.2)  -*- 
lexical-binding: t; -*-
+;;; ltxtable.el --- AUCTeX style for `ltxtable.sty' (v0.4)  -*- 
lexical-binding: t; -*-
 
-;; Copyright (C) 2015, 2018, 2020 Free Software Foundation, Inc.
+;; Copyright (C) 2015--2022 Free Software Foundation, Inc.
 
 ;; Author: Arash Esbati <arash@gnu.org>
 ;; Maintainer: auctex-devel@gnu.org
@@ -26,7 +26,7 @@
 
 ;;; Commentary:
 
-;; This file adds support for `ltxtable.sty' (v0.2) from 1995/12/11.
+;; This file adds support for `ltxtable.sty' (v0.4) from 2021/06/13.
 ;; `ltxtable.sty' is part of TeXLive.
 
 ;;; Code:
@@ -63,7 +63,13 @@ The regexp for the 2. argument is the same as for \"input\" 
and
       (TeX-arg-eval
        (lambda ()
          (let ((longtable (file-relative-name
-                           (read-file-name "File with longtable: "))))
+                           (read-file-name
+                            "File with longtable: "
+                            nil nil nil nil
+                            (lambda (x)
+                              (or (file-directory-p x)
+                                  (string-match "\\.\\(tex\\|ltx\\)\\'" x))))
+                           (TeX-master-directory))))
            (format "%s" longtable))))))
 
    ;; Make sure that \LTXtable stays in its own line:
@@ -86,7 +92,7 @@ The regexp for the 2. argument is the same as for \"input\" 
and
    (when (and (featurep 'font-latex)
               (eq TeX-install-font-lock 'font-latex-setup))
      (font-latex-add-keywords '(("LTXtable"  "{{"))
-                              'textual)))
+                              'reference)))
  TeX-dialect)
 
 (defvar LaTeX-ltxtable-package-options nil

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

Summary of changes:
 style/ltxtable.el | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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