"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "style/fancyhdr.el" between
auctex-12.2.tar.gz and auctex-12.3.tar.gz

About: AUCTEX is an extensible package for writing and formatting TeX files in GNU Emacs and XEmacs.

fancyhdr.el  (auctex-12.2):fancyhdr.el  (auctex-12.3)
;;; fancyhdr.el --- AUCTeX style for `fancyhdr.sty' ;;; fancyhdr.el --- AUCTeX style for `fancyhdr.sty'
;; Copyright (C) 2012, 2013, 2018 Free Software Foundation, Inc. ;; Copyright (C) 2012, 2013, 2018, 2020 Free Software Foundation, Inc.
;; Author: Mads Jensen <mje@inducks.org> ;; Author: Mads Jensen <mje@inducks.org>
;; Maintainer: auctex-devel@gnu.org ;; Maintainer: auctex-devel@gnu.org
;; Keywords: tex ;; Keywords: tex
;; This file is part of AUCTeX. ;; This file is part of AUCTeX.
;; AUCTeX is free software; you can redistribute it and/or modify it ;; AUCTeX is free software; you can redistribute it and/or modify it
;; under the terms of the GNU General Public License as published by ;; under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 3, or (at your option) ;; the Free Software Foundation; either version 3, or (at your option)
skipping to change at line 37 skipping to change at line 37
;; This file adds support for `fancyhdr.sty', version 3.2 ;; This file adds support for `fancyhdr.sty', version 3.2
;;; Code: ;;; Code:
;; Silence the compiler: ;; Silence the compiler:
(declare-function font-latex-add-keywords (declare-function font-latex-add-keywords
"font-latex" "font-latex"
(keywords class)) (keywords class))
(declare-function font-latex-update-font-lock
"font-latex"
(&optional syntactic-kws))
(TeX-add-style-hook (TeX-add-style-hook
"fancyhdr" "fancyhdr"
(lambda () (lambda ()
(TeX-add-symbols (TeX-add-symbols
'("lhead" t) '("lhead" t)
'("lfoot" t) '("lfoot" t)
'("chead" t) '("chead" t)
'("cfoot" t) '("cfoot" t)
'("rhead" t) '("rhead" t)
'("rfoot" t) '("rfoot" t)
skipping to change at line 76 skipping to change at line 72
"plainheadrulewidth" "leftmark" "rightmark" "plainheadrulewidth" "leftmark" "rightmark"
;; the manual does not mention any subsubsectionmark (!) ;; the manual does not mention any subsubsectionmark (!)
"chaptermark" "sectionmark" "subsectionmark" "paragraphmark" "chaptermark" "sectionmark" "subsectionmark" "paragraphmark"
"subparagraphmark" "footrule" "headrule") "subparagraphmark" "footrule" "headrule")
;; `fancyhdr.sty' supplies these two pagestyles ;; `fancyhdr.sty' supplies these two pagestyles
(LaTeX-add-pagestyles "fancy" "fancyplain") (LaTeX-add-pagestyles "fancy" "fancyplain")
;; Fontification ;; Fontification
(when (and (fboundp 'font-latex-add-keywords) (when (and (fboundp 'font-latex-add-keywords)
(fboundp 'font-latex-update-font-lock)
(eq TeX-install-font-lock 'font-latex-setup)) (eq TeX-install-font-lock 'font-latex-setup))
(font-latex-add-keywords '(("fancyhead" "[{") (font-latex-add-keywords '(("fancyhead" "[{")
("fancyfoot" "[{") ("fancyfoot" "[{")
("lhead" "{") ("lhead" "{")
("lfoot" "{") ("lfoot" "{")
("chead" "{") ("chead" "{")
("cfoot" "{") ("cfoot" "{")
("rhead" "{") ("rhead" "{")
("rfoot" "{") ("rfoot" "{")
("fancyheadoffset" "[{") ("fancyheadoffset" "[{")
("fancyfootoffset" "[{") ("fancyfootoffset" "[{")
("fancypagestyle" "{{")) 'function) ("fancypagestyle" "{{")) 'function)
(font-latex-add-keywords '(("headrulewidth" "") (font-latex-add-keywords '(("headrulewidth" "")
("footrulewidth" "") ("footrulewidth" "")
("plainheadrulewidth" "") ("plainheadrulewidth" "")
("plainfootrulewidth" "")) 'variable) ("plainfootrulewidth" "")) 'variable)))
;; Tell font-lock about the update.
(font-latex-update-font-lock)))
LaTeX-dialect) LaTeX-dialect)
;; Because there can be many positions, `TeX-completing-read-multiple' is used ;; Because there can be many positions, `TeX-completing-read-multiple' is used
;; instead of just `completing-read', and a `collection' argument is provided as ;; instead of just `completing-read', and a `collection' argument is provided as
;; the list of positions differs between the macros ;; the list of positions differs between the macros
(defun TeX-arg-fancyhdr-position (optional &optional prompt collection) (defun TeX-arg-fancyhdr-position (optional &optional prompt collection)
"Prompt for a fancyhdr position with completion. "Prompt for a fancyhdr position with completion.
If OPTIONAL is non-nil, insert the resulting value as an optional If OPTIONAL is non-nil, insert the resulting value as an optional
argument, otherwise as a mandatory one. If non-nil, PROMPT is argument, otherwise as a mandatory one. If non-nil, PROMPT is
used as the prompt. If non-nil, COLLECTION is used as the used as the prompt. If non-nil, COLLECTION is used as the
 End of changes. 4 change blocks. 
9 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)