[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 0efe678 14/28: Improve completion of includepdf
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 0efe678 14/28: Improve completion of includepdf macro. |
Date: |
Fri, 07 Aug 2015 15:59:22 +0000 |
branch: externals/auctex
commit 0efe67851762d1f9c00124629d5984b23cf37bd7
Author: Arash Esbati <address@hidden>
Commit: Mosè Giordano <address@hidden>
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 <address@hidden>
---
ChangeLog | 6 ++++++
style/pdfpages.el | 8 ++++++--
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 599dbfa..c64649b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-06-14 Arash Esbati <address@hidden>
+
+ * style/pdfpages.el ("pdfpages"): Restrict suggested files to
+ *.pdf files. File name should be relative to master file
+ directory.
+
2015-06-13 Mos� Giordano <address@hidden>
* 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>}
- [elpa] externals/auctex 4e84c98 04/28: Add subtitle to slide-title class, (continued)
- [elpa] externals/auctex 4e84c98 04/28: Add subtitle to slide-title class, Tassilo Horn, 2015/08/07
- [elpa] externals/auctex 0a1742f 01/28: Parse env's defined with `\lstnewenvironment'., Tassilo Horn, 2015/08/07
- [elpa] externals/auctex 752171a 05/28: Fix bug in LaTeX-backward-paragraph in narrowed buffers, Tassilo Horn, 2015/08/07
- [elpa] externals/auctex 0e3f3ac 03/28: New styles newpxtext.el and newpxmath.el., Tassilo Horn, 2015/08/07
- [elpa] externals/auctex b1e4d46 06/28: Consider args with \newenvironment with opt arg, Tassilo Horn, 2015/08/07
- [elpa] externals/auctex 0b85713 07/28: Query for optional env arg, Tassilo Horn, 2015/08/07
- [elpa] externals/auctex 1341b2c 09/28: Query for optional env arg defined with \lstnewenvironment., Tassilo Horn, 2015/08/07
- [elpa] externals/auctex 7a0d85f 10/28: New style pdfpages.el., Tassilo Horn, 2015/08/07
- [elpa] externals/auctex 3cd3e72 08/28: Restore Emacs 22 compatibility, Tassilo Horn, 2015/08/07
- [elpa] externals/auctex 8426ca5 12/28: Missing ConTeXt-(un)numbered-section-list-nl variables., Tassilo Horn, 2015/08/07
- [elpa] externals/auctex 0efe678 14/28: Improve completion of includepdf macro.,
Tassilo Horn <=
- [elpa] externals/auctex 8052cd5 13/28: Find warnings emitted by a package with digits in its name., Tassilo Horn, 2015/08/07
- [elpa] externals/auctex 24a2a9d 20/28: Add `LCRJ' to `LaTeX-array-column-letters'., Tassilo Horn, 2015/08/07
- [elpa] externals/auctex b9eddc9 11/28: Really ignore dbus errors, Tassilo Horn, 2015/08/07
- [elpa] externals/auctex 1202f83 19/28: Add `X' to `LaTeX-array-column-letters'., Tassilo Horn, 2015/08/07
- [elpa] externals/auctex 5178ba6 16/28: Parse hf-tikz messages suggesting to rerun LaTeX., Tassilo Horn, 2015/08/07
- [elpa] externals/auctex bb195ae 15/28: Add new style file for mnras class., Tassilo Horn, 2015/08/07
- [elpa] externals/auctex c2c7dd9 18/28: Parse user-defined new column types., Tassilo Horn, 2015/08/07
- [elpa] externals/auctex e301b71 22/28: Add new style textpos.el., Tassilo Horn, 2015/08/07
- [elpa] externals/auctex d27e773 21/28: Add new style environ.el., Tassilo Horn, 2015/08/07
- [elpa] externals/auctex 482dddb 24/28: Query for default first arg when (re-)defining env's., Tassilo Horn, 2015/08/07