tex-start.el 467 B

123456789101112
  1. ; This file is for use by TeX82 (see man page) to allow switching to
  2. ; Emacs at a line number given on the command line
  3. ; It assumes that it has been called by:
  4. ; emacs -l tex-start -e startline <linenumber> <file>
  5. (defun startline ()
  6. ;(setq command-line-args (cdr command-line-args))
  7. (find-file (car (cdr command-line-args-left)))
  8. (goto-char (point-min))
  9. (forward-line (1- (string-to-int (car command-line-args-left))))
  10. (setq command-line-args-left ()))