[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] Changes to auctex/tex.el,v
From: |
Ralf Angeli |
Subject: |
[AUCTeX-diffs] Changes to auctex/tex.el,v |
Date: |
Sat, 04 Aug 2007 13:11:51 +0000 |
CVSROOT: /cvsroot/auctex
Module name: auctex
Changes by: Ralf Angeli <angeli> 07/08/04 13:11:51
Index: tex.el
===================================================================
RCS file: /cvsroot/auctex/auctex/tex.el,v
retrieving revision 5.610
retrieving revision 5.611
diff -u -b -r5.610 -r5.611
--- tex.el 9 Jul 2007 19:31:42 -0000 5.610
+++ tex.el 4 Aug 2007 13:11:50 -0000 5.611
@@ -1844,9 +1844,11 @@
(let ((default-directory default-directory))
;; Complex path.
(when (string-match "\\`\\(.+[/\\]\\)\\([^/\\]*\\)\\'" style)
- ;; Adjust `default-directory' to the directory of the style.
- (setq default-directory (expand-file-name
- (file-name-directory style))
+ ;; Set `default-directory' to directory of master
+ ;; file since style files not stored in the fixed
+ ;; style directories are usually located there.
+ (setq default-directory (save-match-data
+ (TeX-master-directory))
style (substring style
(match-beginning 2) (match-end 2))))
(mapcar 'funcall
- [AUCTeX-diffs] Changes to auctex/tex.el,v,
Ralf Angeli <=