all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* expand-file-name
@ 2014-03-06 19:43 luis.finotti
  2014-03-06 22:25 ` expand-file-name Michael Heerdegen
       [not found] ` <mailman.16652.1394144739.10748.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 3+ messages in thread
From: luis.finotti @ 2014-03-06 19:43 UTC (permalink / raw
  To: help-gnu-emacs

Dear all,

In Emacs/AucTeX I had configured search/reverse-search in Okular (running Linux, of course) with:

(setq TeX-view-program-list '(("Okular" "okular --unique %o#src:%n%(dir)./%b")))(setq TeX-view-program-selection '((output-pdf "Okular")))

where %(dir) is defined (in custom-set-variables) as

 ("%(dir)" (lambda nil (expand-file-name default-directory)))

This used to work just fine, but now when I try to preview a file (or jump to position), the %(dir) appears unaltered, such as:

 okular --unique final_sol.pdf#src:403%(dir)./final_sol.tex

(%(dir) used to be replaced by the working directory...)

Any ideas on how to fix (or debug) this?  (I'm far from an expert...)

I'm using Emacs 24.3.1 and AucTeX 11.87, both from Debian Sid/Unstable.

Thanks,

Luis


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: expand-file-name
  2014-03-06 19:43 expand-file-name luis.finotti
@ 2014-03-06 22:25 ` Michael Heerdegen
       [not found] ` <mailman.16652.1394144739.10748.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Heerdegen @ 2014-03-06 22:25 UTC (permalink / raw
  To: help-gnu-emacs

luis.finotti@gmail.com writes:

> where %(dir) is defined (in custom-set-variables) as
>
>  ("%(dir)" (lambda nil (expand-file-name default-directory)))

What does "defined" mean - do you add this to `TeX-expand-list'?




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: expand-file-name
       [not found] ` <mailman.16652.1394144739.10748.help-gnu-emacs@gnu.org>
@ 2014-03-10 17:57   ` luis.finotti
  0 siblings, 0 replies; 3+ messages in thread
From: luis.finotti @ 2014-03-10 17:57 UTC (permalink / raw
  To: help-gnu-emacs

On Thursday, March 6, 2014 5:25:06 PM UTC-5, Michael Heerdegen wrote:
> luis.finotti@gmail.com writes:
> 
> 
> 
> > where %(dir) is defined (in custom-set-variables) as
> 
> >
> 
> >  ("%(dir)" (lambda nil (expand-file-name default-directory)))
> 
> 
> 
> What does "defined" mean - do you add this to `TeX-expand-list'?

What I meant was it appears like this in my .emacs:

(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 '(TeX-expand-list (quote (("%p" TeX-printer-query) ("%q" (lambda nil (TeX-printer-query t))) ("%V" (lambda nil (TeX-source-correlate-start-server-maybe) (TeX-view-command-raw))) ("%vv" (lambda nil (TeX-source-correlate-start-server-maybe) (TeX-output-style-check TeX-output-view-style))) ("%v" (lambda nil (TeX-source-correlate-start-server-maybe) (TeX-style-check TeX-view-style))) ("%r" (lambda nil (TeX-style-check TeX-print-style))) ("%l" (lambda nil (TeX-style-check LaTeX-command-style))) ("%(PDF)" (lambda nil (if (and (eq TeX-engine (quote default)) (or TeX-PDF-mode TeX-DVI-via-PDFTeX)) "pdf" ""))) ("%(PDFout)" (lambda nil (cond ((and (eq TeX-engine (quote xetex)) (not TeX-PDF-mode)) " -no-pdf") ((and (eq TeX-engine (quote luatex)) (not TeX-PDF-mode)) " --output-format=dvi") ((and (eq TeX-engine (quote default)) (not TeX-PDF-mode) TeX-DVI-via-PDFTeX) " \"\\pdfoutput=0 \"") (t "")))) ("%(mode)" (lambda nil (if TeX-interactive-mode "" " -interaction=nonstopmode"))) ("%(o?)" (lambda nil (if (eq TeX-engine (quote omega)) "o" ""))) ("%(tex)" (lambda nil (eval (nth 2 (assq TeX-engine (TeX-engine-alist)))))) ("%(latex)" (lambda nil (eval (nth 3 (assq TeX-engine (TeX-engine-alist)))))) ("%(execopts)" ConTeXt-expand-options) ("%S" TeX-source-correlate-expand-options) ("%dS" TeX-source-specials-view-expand-options) ("%cS" TeX-source-specials-view-expand-client) ("%(outpage)" (lambda nil (if TeX-source-correlate-output-page-function (funcall TeX-source-correlate-output-page-function) "1"))) ("%s" file nil t) ("%t" file t t) ("%`" (lambda nil (setq TeX-command-pos t TeX-command-text ""))) (" \"\\" (lambda nil (if (eq TeX-command-pos t) (setq TeX-command-pos pos pos (+ 3 pos)) (setq pos (1+ pos))))) ("\"" (lambda nil (if (numberp TeX-command-pos) (setq TeX-command-text (concat TeX-command-text (substring command TeX-command-pos (1+ pos))) command (concat (substring command 0 TeX-command-pos) (substring command (1+ pos))) pos TeX-command-pos TeX-command-pos t) (setq pos (1+ pos))))) ("%'" (lambda nil (prog1 (if (stringp TeX-command-text) (progn (setq pos (+ (length TeX-command-text) 9) TeX-command-pos (and (string-match " " (funcall file t t)) "\"")) (concat TeX-command-text " \"\\input\"")) (setq TeX-command-pos nil) "") (setq TeX-command-text nil)))) ("%n" TeX-current-line) ("%d" file "dvi" t) ("%f" file "ps" t) ("%o" (lambda nil (funcall file (TeX-output-extension) t))) ("%b" TeX-current-file-name-master-relative) ("%m" preview-create-subdirectory) ("%(dir)" (lambda nil (expand-file-name default-directory)))))))
(custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 )


OTOH, it is now working again.  I am not sure what was the problem...  Sorry for the noise...

Best to all,

Luis


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-03-10 17:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-06 19:43 expand-file-name luis.finotti
2014-03-06 22:25 ` expand-file-name Michael Heerdegen
     [not found] ` <mailman.16652.1394144739.10748.help-gnu-emacs@gnu.org>
2014-03-10 17:57   ` expand-file-name luis.finotti

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.