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. 255efa3860d3ae164e5c2


From: Mosè Giordano
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 255efa3860d3ae164e5c26482d8c143c91c3c7e5
Date: Sat, 23 Jan 2016 14:20:59 +0000

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  255efa3860d3ae164e5c26482d8c143c91c3c7e5 (commit)
       via  be525cf49e124c27e3dd95dc94ace5221dadb4cc (commit)
      from  107b24960bbdae2f8762c3ac2a71609d46007298 (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 255efa3860d3ae164e5c26482d8c143c91c3c7e5
Author: Mosè Giordano <address@hidden>
Date:   Sat Jan 23 15:19:10 2016 +0100

    Write TeX-style-hook-dialect to parsed file
    
    * latex.el (BibTeX-auto-store): Run `TeX-bibtex-set-BibTeX-dialect'.
    * tex.el (TeX-auto-store): Store `TeX-style-hook-dialect' from buffer
      and write it to parsed file when present.

diff --git a/latex.el b/latex.el
index ba2882c..e46fb86 100644
--- a/latex.el
+++ b/latex.el
@@ -1745,6 +1745,7 @@ It will setup BibTeX to store keys in an auto file."
   (if (boundp 'local-write-file-hooks)
       (add-hook 'local-write-file-hooks 'TeX-safe-auto-write)
     (add-hook 'write-file-hooks 'TeX-safe-auto-write))
+  (TeX-bibtex-set-BibTeX-dialect)
   (set (make-local-variable 'TeX-auto-update) 'BibTeX)
   (set (make-local-variable 'TeX-auto-untabify) nil)
   (set (make-local-variable 'TeX-auto-parse-length) 999999)
diff --git a/tex.el b/tex.el
index 72750a9..c2c247c 100644
--- a/tex.el
+++ b/tex.el
@@ -3864,7 +3864,8 @@ If TEX is a directory, generate style files for all files 
in the directory."
            (verb-macros-delims (when (boundp 
'LaTeX-verbatim-macros-with-delims-local)
                                  LaTeX-verbatim-macros-with-delims-local))
            (verb-macros-braces (when (boundp 
'LaTeX-verbatim-macros-with-braces-local)
-                                 LaTeX-verbatim-macros-with-braces-local)))
+                                 LaTeX-verbatim-macros-with-braces-local))
+           (dialect TeX-style-hook-dialect))
        (TeX-unload-style style)
        (with-current-buffer (generate-new-buffer file)
          (erase-buffer)
@@ -3890,7 +3891,9 @@ If TEX is a directory, generate style files for all files 
in the directory."
                     env)))
          (mapc (lambda (el) (TeX-auto-insert el style))
                TeX-auto-parser)
-         (insert "))\n\n")
+         (insert ")")
+         (if dialect (insert (concat "\n " (prin1-to-string dialect))))
+         (insert ")\n\n")
          (write-region (point-min) (point-max) file nil 'silent)
          (kill-buffer (current-buffer))))
     (if (file-exists-p (concat file "c"))

commit be525cf49e124c27e3dd95dc94ace5221dadb4cc
Author: Mosè Giordano <address@hidden>
Date:   Sat Jan 23 15:15:58 2016 +0100

    Add new dialects
    
    * context.el: Update copyright years.
    (ConTeXt-dialect): New constant.
    (ConTeXt-mode-common-initialization): Set `TeX-style-hook-dialect' to
    `ConTeXt-dialect'.
    * plain-tex.el: Update copyright years.
    (plain-TeX-dialect): New constant.
    (plain-TeX-common-initialization): Set `TeX-style-hook-dialect' to
    `plain-TeX-dialect'.
    * tex.el (TeX-style-hook-dialect): Document new dialects.
    (TeX-style-hook-dialect-weight-alist): Add plain-tex and context dialects.

diff --git a/context.el b/context.el
index 42d1594..882ed83 100644
--- a/context.el
+++ b/context.el
@@ -1,6 +1,6 @@
 ;;; context.el --- Support for ConTeXt documents.
 
-;; Copyright (C) 2003-2006, 2008, 2010, 2012, 2014, 2015
+;; Copyright (C) 2003-2006, 2008, 2010, 2012, 2014-2016
 ;;   Free Software Foundation, Inc.
 
 ;; Maintainer: Berend de Boer <address@hidden>
@@ -1661,6 +1661,12 @@ Use `ConTeXt-Mark-version' to choose the command."
     ConTeXt-item-list
     ConTeXt-extra-paragraph-commands))
 
+(defconst ConTeXt-dialect :context
+  "Default dialect for use with function `TeX-add-style-hook' for
+argument DIALECT-EXPR when the hook is to be run only on ConTeXt
+file, or any mode derived thereof. See variable
+`TeX-style-hook-dialect'." )
+
 (defcustom ConTeXt-clean-intermediate-suffixes
   ;; See *suffixes in texutil.pl.
   '("\\.tui" "\\.tup" "\\.ted" "\\.tes" "\\.top" "\\.log" "\\.tmp" "\\.run"
@@ -1695,6 +1701,7 @@ i.e. you do _not_ have to cater for this yourself by 
adding \\\\' or $."
   (setq major-mode 'context-mode)
 
   (setq local-abbrev-table context-mode-abbrev-table)
+  (set (make-local-variable 'TeX-style-hook-dialect) ConTeXt-dialect)
 
   ;; Make language specific variables buffer local
   (dolist (symbol ConTeXt-language-variable-list)
diff --git a/plain-tex.el b/plain-tex.el
index 3df6196..dfdc423 100644
--- a/plain-tex.el
+++ b/plain-tex.el
@@ -1,6 +1,6 @@
 ;;; plain-tex.el --- Support for plain TeX documents.
 
-;; Copyright (C) 2010 Free Software Foundation, Inc.
+;; Copyright (C) 2010, 2013, 2016  Free Software Foundation, Inc.
 
 ;; Maintainer: address@hidden
 ;; Keywords: tex
@@ -103,6 +103,12 @@ Install tool bar if `plain-TeX-enable-toolbar' is non-nil."
 
 ;;; The mode
 
+(defconst plain-TeX-dialect :plain-tex
+  "Default dialect for use with function `TeX-add-style-hook' for
+argument DIALECT-EXPR when the hook is to be run only on
+plain-TeX file, or any mode derived thereof. See variable
+`TeX-style-hook-dialect'." )
+
 (defcustom plain-TeX-mode-hook nil
   "A hook run in plain TeX mode buffers."
   :type 'hook
@@ -143,6 +149,7 @@ of plain-TeX-mode-hook."
   (VirTeX-common-initialization)
   (set-syntax-table TeX-mode-syntax-table)
   (setq local-abbrev-table plain-tex-mode-abbrev-table)
+  (set (make-local-variable 'TeX-style-hook-dialect) plain-TeX-dialect)
   (setq paragraph-start
        (concat
         "\\(^[ \t]*$"
diff --git a/tex.el b/tex.el
index b70f363..72750a9 100644
--- a/tex.el
+++ b/tex.el
@@ -2603,8 +2603,10 @@ For supported dialects, see variables 
`TeX-style-hook-dialect'.")
 Supported values are described below:
 
 * `:bibtex'  for files in BibTeX mode.
+* `:context' for files in ConTeXt mode.
 * `:latex'   for files in LaTeX mode, or any mode derived
             thereof.
+* `:plain-tex' for files in plain-TeX mode.
 * `:texinfo' for Texinfo files.
 
 Purpose is notably to prevent non-Texinfo hooks to be run in
@@ -2667,7 +2669,7 @@ side effect e.g. on variable `TeX-font-list'.")
           (load-file el)))))
 
 (defconst TeX-style-hook-dialect-weight-alist
-  '((:latex . 1) (:texinfo . 2) (:bibtex . 4))
+  '((:latex . 1) (:texinfo . 2) (:bibtex . 4) (:plain-tex . 8) (:context . 16))
   "Association list to map dialects to binary weight, in order to
   implement dialect sets as bitmaps."  )
 

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

Summary of changes:
 context.el   |    9 ++++++++-
 latex.el     |    1 +
 plain-tex.el |    9 ++++++++-
 tex.el       |   11 ++++++++---
 4 files changed, 25 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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