emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Certain numbers of special forms cause changing behaviour on functio


From: Andreas Röhler
Subject: Re: Certain numbers of special forms cause changing behaviour on function calls in --batch
Date: Thu, 30 Jun 2016 07:58:57 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Icedove/45.1.0



On 28.06.2016 23:12, Michael Heerdegen wrote:
Wilfred Hughes <address@hidden> writes:

However, running it in --batch gives:

$ emacs -batch -l ~/projects/pyimport/nasty.el
point is: 20

This is incorrect: for some reason move-end-of-line is behaving
differently here. Removing any of the extra special forms (e.g. the
redundant lets) fixes it.
Strange indeed.

OTOH, looking at the doc of `move-end-of-line' ("Move point to end of
current line as displayed.") I wouldn't rely on the result in batch mode
at all, since there is no display.

`end-of-line' yields the same result in both situations here.


Michael.


A plausible guess. `move-end-of-line' is obviously designed for interactive use. It deals with var `line-move-visual' for example. Are there reasons not to employ `end-of-line'?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]