Hi Bram, Christian, James, Olaf, Pavel


On 2015-07-11 Saturday at 00:22 +0200 Christian Brabandt wrote:
> On Fr, 10 Jul 2015, Bram Moolenaar wrote:
> > The 'addeol' option indicates adding an EOL, also when there already was
> > one, that's confusing.  We could call it 'fixeol', which would normally
> > be on.  For some file formats for some systems it could be switched off,
> > so that the missing EOL is not added.
> 
> I might be missing something (or I did not quite understand all mails 
> posted), but what is the problem with the 'respecteol' patch that has 
> been posted here in the beginning?


What about just dropping the dependency of option “endofline” on option
“binary”?

Yes, in theory cases of breaking backwards compatibility by this change
could be constructed, but do they matter for  _reasonable_  usage in
already written code?


--- runtime/doc/options.txt~
+++ runtime/doc/options.txt
@@ -2661,15 +2661,15 @@
                        *'endofline'* *'eol'* *'noendofline'* *'noeol'*
 'endofline' 'eol'      boolean (default on)
                        local to buffer
                        {not in Vi}
-       When writing a file and this option is off and the 'binary' option
-       is on, no <EOL> will be written for the last line in the file.  This
+       When writing a file and this option is off, no <EOL> will be written
+       for the last line in the file.  Thus denominating this option
+       “endoflastline” would more intuitively tell its purpose.  This
        option is automatically set when starting to edit a new file, unless
        the file does not have an <EOL> for the last line in the file, in
        which case it is reset.  Normally you don't have to set or reset this
-       option.  When 'binary' is off the value is not used when writing the
-       file.  When 'binary' is on it is used to remember the presence of a
+       option.  It is used to remember the presence of an
        <EOL> for the last line in the file, so that when you write the file
        the situation from the original file can be kept.  But you can change
        it if you want to.
 

-- 
Best regards,
Roland Eggner

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: pgpQOCN5HP6fS.pgp
Description: PGP signature

Raspunde prin e-mail lui