Gentoo Forums
Gentoo Forums
Quick Search: in
Emacs 23 line-move-visual
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  

Should the line movement commands in GNU Emacs move by logical lines?
Yes, please change the default in Gentoo
15%
 15%  [ 11 ]
Yes, but Gentoo shouldn't change the upstream default
46%
 46%  [ 34 ]
No
28%
 28%  [ 21 ]
I don't care
9%
 9%  [ 7 ]
Total Votes : 73

Author Message
ulm
Developer
Developer


Joined: 04 Oct 2004
Posts: 51
Location: Mainz, Germany

PostPosted: Fri Jul 10, 2009 7:16 am    Post subject: Emacs 23 line-move-visual Reply with quote

In GNU Emacs 23 the default behaviour of the previous-line and next line commands (bound to the C-p and C-n or up/down arrow keys) will be changed to move by visual screen lines instead of logical lines. It would be easy to change this back to the traditional behaviour by setting the line-move-visual variable to nil.

The upstream decision was controversial. See the following discussion threads:
http://thread.gmane.org/gmane.emacs.devel/101551/focus=101560
http://thread.gmane.org/gmane.emacs.devel/108186

Please answer to this poll only if you are an Emacs user.

Christian Faulhammer
Ulrich Müller

Made topic sticky. -- desultory
2009-08-13: Unstuck. --kallamej


Last edited by ulm on Fri Jul 10, 2009 7:37 am; edited 1 time in total
Back to top
View user's profile Send private message
durian
Guru
Guru


Joined: 16 Jul 2003
Posts: 312
Location: Margretetorp

PostPosted: Fri Jul 10, 2009 7:21 am    Post subject: Reply with quote

I would prefer the logical line, not the screen one,

-peter
Back to top
View user's profile Send private message
V-Li
Developer
Developer


Joined: 03 Jan 2006
Posts: 597

PostPosted: Fri Jul 10, 2009 7:29 am    Post subject: Reply with quote

So do I.
_________________
Christian Faulhammer, Gentoo Lisp project, GNU Emacs wrangler
http://www.gentoo.org/proj/en/lisp/ #gentoo-lisp on FreeNode

http://gentoo.faulhammer.org/
Back to top
View user's profile Send private message
addeman
Apprentice
Apprentice


Joined: 04 Nov 2004
Posts: 181
Location: Stockholm, Sweden

PostPosted: Fri Jul 10, 2009 8:44 am    Post subject: Reply with quote

Moving by logical line has always annoyed me, I'm all for going with the upstream on this one.

addeman
Back to top
View user's profile Send private message
BrummieJim
Guru
Guru


Joined: 22 Jul 2005
Posts: 559

PostPosted: Fri Jul 10, 2009 8:51 am    Post subject: Reply with quote

Go with upstream, make latex a nightmare, as the whole paragraph is one logical line.
_________________
Intel 2.2 Core 2 Duo, 4Gb Ram, 320GB Sata Drive and Nvidia card.
Back to top
View user's profile Send private message
BrummieJim
Guru
Guru


Joined: 22 Jul 2005
Posts: 559

PostPosted: Fri Jul 10, 2009 8:53 am    Post subject: Reply with quote

Go with upstream, make latex a nightmare, as the whole paragraph is one logical line.
_________________
Intel 2.2 Core 2 Duo, 4Gb Ram, 320GB Sata Drive and Nvidia card.
Back to top
View user's profile Send private message
ulm
Developer
Developer


Joined: 04 Oct 2004
Posts: 51
Location: Mainz, Germany

PostPosted: Fri Jul 10, 2009 9:10 am    Post subject: Reply with quote

BrummieJim wrote:
Go with upstream, make latex a nightmare, as the whole paragraph is one logical line.

In this case, the paragraph is a "logical line" for TeX, but not necessarily for Emacs. Nothing prevents you from inserting line feeds in your LaTeX source files.
Back to top
View user's profile Send private message
durian
Guru
Guru


Joined: 16 Jul 2003
Posts: 312
Location: Margretetorp

PostPosted: Fri Jul 10, 2009 9:22 am    Post subject: Reply with quote

It seems LaTeX people prefer (ok, ok, small sample as yet, 6) the "screen line"... Whatever the end outcome is, it could be set in the mode-hooks as wel, logical for the programming modes, screen for the LaTeX mode.

-peter
Back to top
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4174
Location: Suzhou, China

PostPosted: Fri Jul 10, 2009 9:59 am    Post subject: Reply with quote

<insert obligatory vim flamebait> 8)
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
V-Li
Developer
Developer


Joined: 03 Jan 2006
Posts: 597

PostPosted: Fri Jul 10, 2009 10:48 am    Post subject: Reply with quote

durian wrote:
It seems LaTeX people prefer (ok, ok, small sample as yet, 6) the "screen line"... Whatever the end outcome is, it could be set in the mode-hooks as wel, logical for the programming modes, screen for the LaTeX mode.


No, that's a misconception of LaTeX logical lines and file logical lines. Paragraphs are divided by blank lines in LaTeX, line breaks are ignored.
_________________
Christian Faulhammer, Gentoo Lisp project, GNU Emacs wrangler
http://www.gentoo.org/proj/en/lisp/ #gentoo-lisp on FreeNode

http://gentoo.faulhammer.org/
Back to top
View user's profile Send private message
V-Li
Developer
Developer


Joined: 03 Jan 2006
Posts: 597

PostPosted: Fri Jul 10, 2009 10:50 am    Post subject: Reply with quote

yngwin wrote:
<insert obligatory vim flamebait> 8)


Then I guess you voted for I don't care which translates to I am a vim weenie. :lol:
_________________
Christian Faulhammer, Gentoo Lisp project, GNU Emacs wrangler
http://www.gentoo.org/proj/en/lisp/ #gentoo-lisp on FreeNode

http://gentoo.faulhammer.org/
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 4459
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Jul 10, 2009 11:56 am    Post subject: Reply with quote

I voted "Yes, but Gentoo shouldn't change the upstream default." but, as discussed in some of the upstream posts, I'm probably going to bind M-p and M-n to the logical line movement commands as I do find both the logical and visual move commands being easily available a good thing.

- John
_________________
Yoda: "Intentionally left blank, this space is."
Back to top
View user's profile Send private message
durian
Guru
Guru


Joined: 16 Jul 2003
Posts: 312
Location: Margretetorp

PostPosted: Fri Jul 10, 2009 12:10 pm    Post subject: Reply with quote

V-Li wrote:
durian wrote:
It seems LaTeX people prefer (ok, ok, small sample as yet, 6) the "screen line"... Whatever the end outcome is, it could be set in the mode-hooks as wel, logical for the programming modes, screen for the LaTeX mode.


No, that's a misconception of LaTeX logical lines and file logical lines. Paragraphs are divided by blank lines in LaTeX, line breaks are ignored.
Yeah, I know, but the reaction of the people in this thread was that the LaTeX people seem to prefer the screen line,

-peter
Back to top
View user's profile Send private message
jezaustin
Tux's lil' helper
Tux's lil' helper


Joined: 22 Sep 2006
Posts: 81
Location: england

PostPosted: Fri Jul 10, 2009 12:13 pm    Post subject: Reply with quote

I subliminally noticed this when it changed. I think I prefer logical lines for most things but I agree with john_r_graham, I'll bind M-p and M-n. Emacs tends to need a lot of customising anyway, so no need to monkey with upstream's defaults, leave it to the users.
Back to top
View user's profile Send private message
webway
n00b
n00b


Joined: 16 May 2006
Posts: 11

PostPosted: Fri Jul 10, 2009 12:40 pm    Post subject: Reply with quote

I think that moving by logical lines is better behaviour, especially when editing program source. However it is easily customisable by those of us who like the old behaviour, so it is best to follow upstream.
Back to top
View user's profile Send private message
Sodki
Guru
Guru


Joined: 11 Aug 2003
Posts: 411
Location: Lisboa - Portugal

PostPosted: Fri Jul 10, 2009 2:29 pm    Post subject: Reply with quote

I strongly believe that we should keep upstream's behaviour. All of us Emacs users have our .emacs and we know how to keep the old behaviour, if we want to.
Back to top
View user's profile Send private message
keenblade
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1007

PostPosted: Fri Jul 10, 2009 2:45 pm    Post subject: Reply with quote

Sodki wrote:
I strongly believe that we should keep upstream's behaviour. All of us Emacs users have our .emacs and we know how to keep the old behaviour, if we want to.

+
Also I believe for line wrapping; if you use truncate long lines it should use logical lines, otherwise it should use visual screen lines.
_________________
Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1"
Back to top
View user's profile Send private message
soth
Apprentice
Apprentice


Joined: 12 Sep 2003
Posts: 206

PostPosted: Fri Jul 10, 2009 7:56 pm    Post subject: Reply with quote

I know emacs maintainers are very diligent but aren't there any distro-wide policies about these things or does everyone roll their own style? Some follows upstream, some don't?
_________________
- Never argue with an idiot. They just drag you down to your level and beat you with experience.

Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
katabami
n00b
n00b


Joined: 11 Jul 2009
Posts: 40

PostPosted: Sat Jul 11, 2009 7:48 am    Post subject: Reply with quote

The change seems to have already been for a year, so isn't it too late to interfere with upstream?

For key bindings, good replies are done.
But if it affects the command 'previous-line' behavior itself, then it breaks existing elisp programs. It's bad, but changing it again could be worse, I fear.

I haven't voted yet. Thanks a lot for maintaing Gentoo!
Back to top
View user's profile Send private message
zsitvaij
n00b
n00b


Joined: 11 Jan 2006
Posts: 54

PostPosted: Sat Jul 11, 2009 11:29 am    Post subject: Reply with quote

I hadn't noticed the change until mentioned, but I find I prefer the logical line move.

That said, the default shouldn't be patched. I'd prefer a mention in the emacs guide.
Back to top
View user's profile Send private message
weyhan
Apprentice
Apprentice


Joined: 27 May 2003
Posts: 245

PostPosted: Sat Jul 11, 2009 7:52 pm    Post subject: Reply with quote

I favor the new change made by upstream developers.

If this behavior can be turn on or off with an option in emacs, there is even less reason why gentoo should fiddle with it. I'm pretty sure people who use emacs is not the everyday joe that finds it difficult to change a setting in emacs. ;)
_________________
Han.
Back to top
View user's profile Send private message
rafo
Apprentice
Apprentice


Joined: 18 Nov 2003
Posts: 157
Location: Sollentuna, Sweden

PostPosted: Sun Jul 12, 2009 8:44 am    Post subject: Reply with quote

I think altering the long-standing meaning of C-N and C-P was a very unwise change by the Emacs developers. It destroys the coherence within the set of basic navigation commands. It makes actions such as C-U 7 7 C-N unreliable (window size matters).

I could not say it better than this: http://www.opensubscriber.com/message/emacs-devel@gnu.org/12554930.html

Then again, I suppose this is not a matter for Gentoo to override. Customizing the behaviour back to the original one is doable (worth describing in a Gentoo Emacs guide, if there were such a thing).

There is an inofficial poll on the issue, not Gentoo related: http://www.micropoll.com/akira/mpview/623323-182852


Last edited by rafo on Sun Jul 12, 2009 10:08 am; edited 2 times in total
Back to top
View user's profile Send private message
rafo
Apprentice
Apprentice


Joined: 18 Nov 2003
Posts: 157
Location: Sollentuna, Sweden

PostPosted: Sun Jul 12, 2009 8:55 am    Post subject: Reply with quote

rafo wrote:

There is an inofficial poll on the issue, not Gentoo related: http://www.micropoll.com/akira/mpview/623323-182852


BTW, the question of that poll is expressed in terms of an Emacs variable value. The "yes" response means "go for the new default behaviour" and "no" means "keep the old behaviour".
Back to top
View user's profile Send private message
V-Li
Developer
Developer


Joined: 03 Jan 2006
Posts: 597

PostPosted: Mon Jul 13, 2009 8:39 am    Post subject: Reply with quote

soth wrote:
I know emacs maintainers are very diligent but aren't there any distro-wide policies about these things or does everyone roll their own style? Some follows upstream, some don't?


Gentoo usually wants to be as close to upstream as possible, and patches should be submitted upstream. But every team/person has the freedom to choose an alternative route if it fits. As this change affects everyday use in Emacs, we wanted some participation.
_________________
Christian Faulhammer, Gentoo Lisp project, GNU Emacs wrangler
http://www.gentoo.org/proj/en/lisp/ #gentoo-lisp on FreeNode

http://gentoo.faulhammer.org/
Back to top
View user's profile Send private message
V-Li
Developer
Developer


Joined: 03 Jan 2006
Posts: 597

PostPosted: Mon Jul 13, 2009 8:43 am    Post subject: Reply with quote

katabami wrote:
The change seems to have already been for a year, so isn't it too late to interfere with upstream?


Normal Emacs users only see the app-editors/emacs package. We are proud of our live ebuild which gives experienced users the possibilty to test the newest developments easily. Other distributions just provided Emacs 23 with the pretest packages released for some months now, so 99,99% will not see that change before the release.
_________________
Christian Faulhammer, Gentoo Lisp project, GNU Emacs wrangler
http://www.gentoo.org/proj/en/lisp/ #gentoo-lisp on FreeNode

http://gentoo.faulhammer.org/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum