Автор Гілка: Emacs+xdvi  (Прочитано 981 раз)

Відсутній zerg

  • Новачок
  • *
  • дописів: 21
  • Карма: +0/-0
  • zerg
Emacs+xdvi
« : 2004-09-03 19:23:47 »
Some TeX implementations have an option to automatically
include so-called `source specials' into a .dvi file. These
contain the line number and the filename of the .tex source
and make it possible to go from a .dvi file to the
corresponding place in the .tex source and back (also called
`reverse search' and `forward search').
If neither the option nor the X resource .editor  is  specified,
              the following environment variables are checked to determine the
              editor command: XEDITOR, VISUAL, and EDITOR (in this  sequence).
Додав до ~/.bashrc такі рядки:
XEDITOR="emacsclient --no-wait +%l %f"
EDITOR="emacsclient --no-wait +%l %f"
export XEDITOR EDITOR

але все одно xdvi завантажує редактор за замовчанням причому каже таке:
No editor found - using built-in default (vi).
постійно задавати редактор через опцію -editor стомлює
як цьому зарадити?
« Змінено: 2004-09-03 21:02:16 від zerg »
З повагою, zerg.

Відсутній Володимир Лісівка

  • Адміністратор ЩОДО
  • Видавець
  • *****
  • дописів: 3857
  • Карма: +13/-0
  • Програміст
Re: Emacs+xdvi
« Відповідей #1 : 2004-09-04 15:42:20 »
Важко сказати, я в таких випадках як правило запускаю програму під strace, щоб подивитися, що саме вона робить.

Зробіть
strace -e trace=file xdvi ... 2>&1 | grep emacsclient щоб подивитися, де саме воно шукає програму і як саме.
[Fedora Linux]

Відсутній zerg

  • Новачок
  • *
  • дописів: 21
  • Карма: +0/-0
  • zerg
Re: Emacs+xdvi
« Відповідей #2 : 2004-09-04 17:01:31 »
запрацювало після перезавантаження ???
не знаю чому, але то вже не так і важливо  ;)
З повагою, zerg.