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  0efe67851762d1f9c00124629d5984b23cf37bd7 (commit)
      from  8052cd57efa81f826916e588a8b08fb35c4110ed (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 0efe67851762d1f9c00124629d5984b23cf37bd7
Author: Arash Esbati <esb...@gmx.de>
Date:   Sun Jun 14 16:34:48 2015 +0200

    Improve completion of includepdf macro.
    
    * style/pdfpages.el ("pdfpages"): Restrict suggested files to
    *.pdf files.  File name should be relative to master file
    directory.
    
    Signed-off-by: Mosè Giordano <m...@gnu.org>

diff --git a/ChangeLog b/ChangeLog
index 599dbfa..c64649b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-06-14  Arash Esbati  <esb...@gmx.de>
+
+       * style/pdfpages.el ("pdfpages"): Restrict suggested files to
+       *.pdf files.  File name should be relative to master file
+       directory.
+
 2015-06-13  Mosè Giordano  <m...@gnu.org>
 
        * tex-buf.el (TeX-LaTeX-sentinel-has-warnings, TeX-parse-error):
diff --git a/style/pdfpages.el b/style/pdfpages.el
index 8957cf7..d034668 100644
--- a/style/pdfpages.el
+++ b/style/pdfpages.el
@@ -98,8 +98,12 @@
       [TeX-arg-key-val LaTeX-pdfpages-key-val-options]
       (TeX-arg-eval
        (lambda ()
-        (let ((pdffile (file-relative-name
-                        (read-file-name "File to include: "))))
+         (let ((pdffile (file-relative-name
+                        (read-file-name
+                         "File to include: " nil nil nil nil
+                         (lambda (pdfs)
+                           (string-match "\\.pdf$" pdfs)))
+                        (TeX-master-directory))))
           (format "%s" pdffile)))))
 
     ;; \includepdfmerge[<options>]{<file-page-list>}

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

Summary of changes:
 ChangeLog         |    6 ++++++
 style/pdfpages.el |    8 ++++++--
 2 files changed, 12 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX

_______________________________________________
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs

Reply via email to