From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: line-move-visual Date: Sun, 06 Jun 2010 17:21:03 +0200 Organization: University Koblenz-Landau Campus Koblenz Message-ID: <87d3w4dw68.fsf@thinkpad.tsdh.de> References: <87pr07qjio.fsf@thinkpad.tsdh.de> <878w6vq7ew.fsf@thinkpad.tsdh.de> <871vcmhq79.fsf@wivenhoe.ul.ie> <580d5f23-e251-483f-9752-7e77b1ca2fb7@40g2000pry.googlegroups.com> <2a7dc148-e2cc-4681-9d8c-ccd1140aa6d7@j36g2000prj.googlegroups.com> <089883ee-0a63-4cb4-a0ec-d2fe4e71cc03@y18g2000prn.googlegroups.com> <87wruco5yq.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1291828833 29068 80.91.229.12 (8 Dec 2010 17:20:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 17:20:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 08 18:20:30 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQNgr-00069m-9W for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 18:20:29 +0100 Original-Received: from localhost ([127.0.0.1]:34861 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQNgq-0006by-EA for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 12:20:28 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!kanaga.switch.ch!switch.ch!news.belwue.de!news.uni-kl.de!cache.uni-koblenz.de!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs,comp.lang.lisp Original-Lines: 49 Original-NNTP-Posting-Host: p54af1e59.dip0.t-ipconnect.de Original-X-Trace: cache.uni-koblenz.de 1275837665 21034 84.175.30.89 (6 Jun 2010 15:21:05 GMT) Original-X-Complaints-To: news@cache.uni-koblenz.de Original-NNTP-Posting-Date: Sun, 6 Jun 2010 15:21:05 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:yj2XpFGmAhTxbbgPgnrqErnQrsg= Original-Xref: usenet.stanford.edu gnu.emacs.help:178687 comp.emacs:99928 comp.lang.lisp:288752 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:75686 Archived-At: Uday S Reddy writes: Hi Uday, > In this particular instance, the customization needed is not a big > deal: set line-move-visual to nil. Almost everybody can do it. But > the time they had to spend in discovering that they needed to change > it is what has been significant. IMO, the first thing a new emacs user should learn is using the help facilities. So after seeing that `C-n' moved point not to the next (logical) line as it always did should be a reflexive `C-h C-n': ,----[ C-h k C-n ] | C-n runs the command next-line, which is an interactive compiled Lisp function | in `simple.el'. | | It is bound to C-n, . | | (next-line &optional ARG TRY-VSCROLL) | | Move cursor vertically down ARG lines. | [...] | If the variable `line-move-visual' is non-nil, this command moves | by display lines. Otherwise, it moves by buffer lines, without | taking variable-width characters or continued lines into account. | [...] | | If you are thinking of using this in a Lisp program, consider | using `forward-line' instead. It is usually easier to use | and more reliable (no dependence on goal column, etc.). `---- > (In fact, after this thread started, I began to wonder if VM might be > vulnerable to the problem as well, and went and checked if there were > calls to next-line anywhere. There were three of them!) As you can see in the docs above, `next-line' wasn't the right function to call from lisp even before visual line movement. > By the way, I think that the Emacs 23 visual-line-mode and word > wrapping are a great addition to Emacs. A civilized way of dealing > with longlines has long been needed. But the default setting of > line-move-visual is an independent issue to that. I agree with all of that. Bye, Tassilo