[haiku-bugs] Re: [Haiku] #6831: New StyledEdit features: word count & show document as read-only

  • From: "axeld" <trac@xxxxxxxxxxxx>
  • Date: Thu, 18 Nov 2010 13:10:18 -0000

#6831: New StyledEdit features: word count & show document as read-only
--------------------------------------+------------------------------
  Reporter:  negusnyul                |        Owner:  korli
      Type:  enhancement              |       Status:  new
  Priority:  normal                   |    Milestone:  R1
 Component:  Applications/StyledEdit  |      Version:  R1/Development
Resolution:                           |     Keywords:
Blocked By:                           |  Has a Patch:  1
  Platform:  All                      |     Blocking:
--------------------------------------+------------------------------

Comment (by axeld):

 I'm also not sure about the "read-only" feature; since you have to enable
 it manually, it has only very limited use. One could set it automatically
 depending on the actual POSIX permissions of the file, though. OTOH I am
 always annoyed by editors that do so (like Pe), as it doesn't have any
 practical use other than to notify you that you may not have the rights to
 edit the file at the current location.

 Furthermore, if you accidentally change a file (how often does this
 happen, anyway?), no one forces you to save it, and there is always the
 possibility to undo your last action.

 About the coding style, one thing I have to add to humdinger: use '\t'
 when you need a tab character constant, don't just use an actual tab, as
 that cannot be seen. In this particular case, you may want to use
 isspace() instead, though, anyway, or rather BUnicodeChar::IsSpace().

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/6831#comment:3>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: