auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] [elpa] externals/auctex 0847db39c9 03/60: Improve file qu


From: Tassilo Horn
Subject: [AUCTeX-diffs] [elpa] externals/auctex 0847db39c9 03/60: Improve file query in style/ltxtable.el
Date: Fri, 8 Apr 2022 11:52:45 -0400 (EDT)

branch: externals/auctex
commit 0847db39c9326914d05da82128e727d2d67efaeb
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>

    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.
---
 style/ltxtable.el | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/style/ltxtable.el b/style/ltxtable.el
index f73c0e7a5d..51b9b02550 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




reply via email to

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