|
From: | Lennart Borgman |
Subject: | Re: What happens during eval-buffer? |
Date: | Tue, 16 May 2006 21:46:05 +0200 |
User-agent: | Thunderbird 1.5.0.2 (Windows/20060308) |
Andreas Schwab wrote:
(let ((start (progn (goto-char (point-min)) (search-forward "Start-here") (forward-line 2) (point) )) ) )With that as the current buffer then doM-x eval-buffer I get an error saying "Symbol's value as variable is void: <html>". Have I done something completely wrong or?Yes, replace progn by save-excursion. You have modified point under eval-buffer's feet, it will continue evaluation until point equals point-max.
Ah! Thanks.
[Prev in Thread] | Current Thread | [Next in Thread] |