"John S. Yates, Jr." <[EMAIL PROTECTED]> writes:

> Has anyone tried dvc installed from scratch without
> arch/tla/baz around?  And without a pre-existing version
> of xtla?
>
> When I try C-x T s I get line-number-at-pos is undefined:
>
>   line-number-at-pos()
>   dvc-trace-current-line()
>   bzr-parse-status(#<buffer *bzr-status*>)
>   dvc-show-changes-buffer(#<buffer  *bzr-process*<2>> bzr-parse-status 
> #<buffer *bzr-status*>)
>   ...

This is a function from CVS GNU Emacs:

(defun line-number-at-pos (&optional pos)
  "Return (narrowed) buffer line number at position POS.
If POS is nil, use current buffer location."
  (let ((opoint (or pos (point))) start)
    (save-excursion
      (goto-char (point-min))
      (setq start (point))
      (goto-char opoint)
      (forward-line 0)
      (1+ (count-lines start (point))))))

We should define dvc-line-number-at-pos

Stefan.

_______________________________________________
Dvc-dev mailing list
[email protected]
https://mail.gna.org/listinfo/dvc-dev

Reply via email to