[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Switch to buffer and line...
From: |
rgb |
Subject: |
Re: Switch to buffer and line... |
Date: |
20 Oct 2005 08:30:32 -0700 |
User-agent: |
G2/0.2 |
> (defun retrieve-buffer-and-line-at-point()
> (interactive)
> ( save-excursion(if(number-at-point) ; check if the cursor is pointing a
> number of line
> (setq target (number-at-point)))
> (call-interactively 'switch-at-point) ; switch to buffer: it works
> correctly!
> (if(current-buffer)
> (goto-line target)))) ; does nothing???
Your goto-line is inside a save-excursion.
You ARE going there but then going back.