| 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% |
[ 11 ] |
| Yes, but Gentoo shouldn't change the upstream default |
|
46% |
[ 34 ] |
| No |
|
28% |
[ 21 ] |
| I don't care |
|
9% |
[ 7 ] |
|
| Total Votes : 73 |
|
| Author |
Message |
ulm Developer

Joined: 04 Oct 2004 Posts: 51 Location: Mainz, Germany
|
Posted: Fri Jul 10, 2009 7:16 am Post subject: Emacs 23 line-move-visual |
|
|
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 |
|
 |
durian Guru


Joined: 16 Jul 2003 Posts: 312 Location: Margretetorp
|
Posted: Fri Jul 10, 2009 7:21 am Post subject: |
|
|
I would prefer the logical line, not the screen one,
-peter |
|
| Back to top |
|
 |
V-Li Developer

Joined: 03 Jan 2006 Posts: 597
|
|
| Back to top |
|
 |
addeman Apprentice


Joined: 04 Nov 2004 Posts: 181 Location: Stockholm, Sweden
|
Posted: Fri Jul 10, 2009 8:44 am Post subject: |
|
|
Moving by logical line has always annoyed me, I'm all for going with the upstream on this one.
addeman |
|
| Back to top |
|
 |
BrummieJim Guru

Joined: 22 Jul 2005 Posts: 559
|
Posted: Fri Jul 10, 2009 8:51 am Post subject: |
|
|
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 |
|
 |
BrummieJim Guru

Joined: 22 Jul 2005 Posts: 559
|
Posted: Fri Jul 10, 2009 8:53 am Post subject: |
|
|
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 |
|
 |
ulm Developer

Joined: 04 Oct 2004 Posts: 51 Location: Mainz, Germany
|
Posted: Fri Jul 10, 2009 9:10 am Post subject: |
|
|
| 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 |
|
 |
durian Guru


Joined: 16 Jul 2003 Posts: 312 Location: Margretetorp
|
Posted: Fri Jul 10, 2009 9:22 am Post subject: |
|
|
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 |
|
 |
yngwin Retired Dev


Joined: 19 Dec 2002 Posts: 4174 Location: Suzhou, China
|
Posted: Fri Jul 10, 2009 9:59 am Post subject: |
|
|
<insert obligatory vim flamebait>  _________________ "Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF |
|
| Back to top |
|
 |
V-Li Developer

Joined: 03 Jan 2006 Posts: 597
|
Posted: Fri Jul 10, 2009 10:48 am Post subject: |
|
|
| 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 |
|
 |
V-Li Developer

Joined: 03 Jan 2006 Posts: 597
|
Posted: Fri Jul 10, 2009 10:50 am Post subject: |
|
|
| yngwin wrote: | <insert obligatory vim flamebait>  |
Then I guess you voted for I don't care which translates to I am a vim weenie.  _________________ 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 |
|
 |
John R. Graham Administrator


Joined: 08 Mar 2005 Posts: 4459 Location: Somewhere over Atlanta, Georgia
|
Posted: Fri Jul 10, 2009 11:56 am Post subject: |
|
|
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 |
|
 |
durian Guru


Joined: 16 Jul 2003 Posts: 312 Location: Margretetorp
|
Posted: Fri Jul 10, 2009 12:10 pm Post subject: |
|
|
| 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 |
|
 |
jezaustin Tux's lil' helper

Joined: 22 Sep 2006 Posts: 81 Location: england
|
Posted: Fri Jul 10, 2009 12:13 pm Post subject: |
|
|
| 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 |
|
 |
webway n00b

Joined: 16 May 2006 Posts: 11
|
Posted: Fri Jul 10, 2009 12:40 pm Post subject: |
|
|
| 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 |
|
 |
Sodki Guru


Joined: 11 Aug 2003 Posts: 411 Location: Lisboa - Portugal
|
Posted: Fri Jul 10, 2009 2:29 pm Post subject: |
|
|
| 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 |
|
 |
keenblade Veteran


Joined: 03 Oct 2004 Posts: 1007
|
Posted: Fri Jul 10, 2009 2:45 pm Post subject: |
|
|
| 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 |
|
 |
soth Apprentice


Joined: 12 Sep 2003 Posts: 206
|
Posted: Fri Jul 10, 2009 7:56 pm Post subject: |
|
|
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 |
|
 |
katabami n00b

Joined: 11 Jul 2009 Posts: 40
|
Posted: Sat Jul 11, 2009 7:48 am Post subject: |
|
|
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 |
|
 |
zsitvaij n00b


Joined: 11 Jan 2006 Posts: 54
|
Posted: Sat Jul 11, 2009 11:29 am Post subject: |
|
|
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 |
|
 |
weyhan Apprentice


Joined: 27 May 2003 Posts: 245
|
Posted: Sat Jul 11, 2009 7:52 pm Post subject: |
|
|
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 |
|
 |
rafo Apprentice

Joined: 18 Nov 2003 Posts: 157 Location: Sollentuna, Sweden
|
Posted: Sun Jul 12, 2009 8:44 am Post subject: |
|
|
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 |
|
 |
rafo Apprentice

Joined: 18 Nov 2003 Posts: 157 Location: Sollentuna, Sweden
|
Posted: Sun Jul 12, 2009 8:55 am Post subject: |
|
|
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 |
|
 |
V-Li Developer

Joined: 03 Jan 2006 Posts: 597
|
Posted: Mon Jul 13, 2009 8:39 am Post subject: |
|
|
| 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 |
|
 |
V-Li Developer

Joined: 03 Jan 2006 Posts: 597
|
Posted: Mon Jul 13, 2009 8:43 am Post subject: |
|
|
| 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 |
|
 |
|