[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Byte-compiler warnings
From: |
Nicolas Richard |
Subject: |
Re: Byte-compiler warnings |
Date: |
Thu, 25 Jun 2015 14:56:36 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Emanuel Berg <embe8573@student.uu.se> writes:
> One question is: if (goto-char (point-min)) is
> equivalent, why cannot the byte-compiler just use that
> instead for the compiled version?
It's not equivalent.
e.g. if you want to set point at beginning of line, you can use
beginning-of-line (or forward-line, depending on the circumstances)
Now what the warning says is : if you're interested in move to
beginning-of-buffer, don't use beginning-of-buffer, use the other
approach instead.
--
Nico