home *** CD-ROM | disk | FTP | other *** search
/ Dream 54 / Amiga_Dream_54.iso / OS2 / elvis-2.1i-os2.tar.gz / elvis-2.1i-os2.tar / BUGS next >
Text File  |  1998-03-13  |  51KB  |  1,098 lines

  1. REPORT BUGS TO kirkenda@cs.pdx.edu (STEVE KIRKENDALL)
  2.  
  3. NOTE: Each bug in this file is marked with either "*", "/", or "?".
  4. The "*" means the bug is still pending.  The "/" means that I believe it has
  5. been solved.  A "?" means that I've done some work on it, and *hope* it is
  6. solved because it seems to work better but I never really understood what
  7. was wrong in the first place.  A "?" will become a "/" if I don't receive
  8. more reports of that bug.  About 80% of this file lists *fixed* bugs.
  9.  
  10. NOTE: Not all of these are truly bugs.  This file also serves as my "to do"
  11. list, so some items are just unimplemented features that sounded like a good
  12. idea at one time or another.
  13.  
  14. / In "untar.c", the typedefs are apparently clashing with similar typedefs in
  15.   <stdio.h>, on some systems.  Change the names of those types in untar.c.
  16.  
  17. / Check the manual for typos!
  18.  
  19. / Need to add NEED_MEMMOVE, and use it for older SunOS.
  20.  
  21. / The "man" display mode doesn't handle long section names.  At the very least
  22.   it should truncate them!
  23.  
  24. / To compile elvis under Solaris2 with "cc" (not "gcc"), you need to add
  25.   "-Dconst=" to the value of the CC macro in Makefile.
  26.  
  27. * ":set global" scrolls off the top of the screen.  Something should be done
  28.   about that.
  29.  
  30. * Document the meaning of "!" for each ex command.
  31.  
  32. * In WinElvis, the "windows" lptype is counter-intuitive.  It changes the
  33.   lplines and lpcolumn options to correspond to the font size and paper size.
  34.   This is the opposite from the "ps" and "ps2" lptypes, which change the
  35.   font size to squeeze lplines by lpcolumns characters on a page.
  36.  
  37. / The sesclose() function shouldn't attempt I/O on the session file unless
  38.   the session file has been successfully opened.  Currently, elvis can get
  39.   stuck in an endless loop giving fatal error messages if you set SESSIONPATH
  40.   to a bad value.
  41.  
  42. * Is `ref' broken?  It can't seem to find variables.
  43.  
  44. * Trouble with the :& and :~ commands: They are supposed to discard any flags
  45.   from the original :s command, and accept new flags.  (This implies that the
  46.   visual ~ command also discards the old flags.)  Also, :& should always use
  47.   the regexp from the previous :s command, but :~ should use the most recent
  48.   regexp used in any context.
  49.  
  50. * When an href in a remote web page contains just a file name elvis tends
  51.   to mangle it.  From ftp://ftp.cs.pdx.edu/pub/elvis/unreleased/README.html,
  52.   <A HREF="/pub/elvis/untar.c"> is treated as a reference to
  53.   ftp://ftp.cs.pdx.edu//ub/elvis/unreleased/pub/elvis/untar.c
  54.  
  55. * Sometimes crashes after running multiple external commands.  Particularly
  56.   noticible with :make, but I think it affects all external programs.
  57.   Reported under Linux.
  58.  
  59.     I used to be able to reproduce this easily, but now I can't.  Either
  60.     some other change fixed this or changed its symptoms, or I just forgot
  61.     how to reproduce it.
  62.  
  63. * A core dump has been reported while entering a ":x" command.  The dump
  64.   apparently occurred inside the mapdo() function after most of the local
  65.   variables got scrambled.
  66.  
  67.     This may be a variation of the "crash after running an external
  68.     program" bug.  The :x command can save the file, and if the backup
  69.     option is set, then elvis runs "cp" or "copy", depending on the OS.
  70.  
  71.     In addition, a potential bug in the termcap interface was fixed.
  72.  
  73. * Some crashes/hangs have been reported under Linux.  These may have something
  74.   to do with <u> and <Shift-U> commands.  Usually there are no clues, but at
  75.   least twice the buffer filled with ^@ characters.  Reported by Steve Woodard,
  76.   woodard@kodakr.kodak.com
  77.  
  78.     I enabled assert() checking and allocation debugging, and played
  79.     around with those commands hundreds of times without being able to
  80.     reproduce it.  It may be compiler- or OS-dependent.
  81.  
  82.     1/20: It happened to me while I was just editing a plain old text file.
  83.     One of the numbered cut buffers' bufinfo blocks was recycled as a text
  84.     block, and that cause blkread to fail as it tried to find a bogus
  85.     blklist block.
  86.  
  87.     This happened to me again, shortly after a <Shift-U>.  Definitely a
  88.     problem there.  I've inspected the code though (bufundo() in buffer.c)
  89.     and it seems correct.
  90.  
  91. * The "ref" program doesn't understand compound tag addresses, such as
  92.     bar    foo.h    /^struct foo$/;/^ int bar;$/;"    struct:foo
  93.  
  94. * The "ref" program should be modified to support "./tags".  In fact, does
  95.   it even support "tags" (file name instead of directory name)?
  96.  
  97.     How can it support "./tags" when ref doesn't know which file you're
  98.     editing?  To do this right, I'd probably need to add a "-f fromfile"
  99.     option.
  100.  
  101. * The value of the blkcache option can have a *HUGE* effect on the speed of
  102.   elvis.  Why should a large cache be necessary?  A macro may crawl when
  103.   blkcache=150, and fly when blkcache=200.
  104.  
  105. * An ex search command (:/foo) doesn't highlight text when autoselect is true.
  106.   This is unfortunate, because the X11 [Search] button uses that command.
  107.  
  108. * Problems with the "ctags" program:
  109.   1) `extern "C"' seems to confuse it a lot.
  110.   2) It doesn't know that #defines can't be in a class.
  111.   3) A predeclaration of a class name (e.g., "class MyClass;") generates a
  112.      tag but shouldn't.
  113.   4) Bodies of class declarations aren't scanned but should be (with all
  114.      generated tags being declared as being in that class).
  115.      And could enum values maybe be detected as part of the same fix?
  116.   5) C++ destructors (e.g., ~classname(void)) aren't found.
  117.  
  118. * When using <a name=...>...</a> to define a name anchor, elvis shouldn't
  119.   display the anchor's text like an href link.
  120.  
  121. * Reduce the left margin for the markup display modes.  This is particularly
  122.   important for "html", where many preformatted documents are slightly too wide
  123.   to fit in just 72 columns.  Suggestion: Make <H1> center its title, and
  124.   shift everything else four columns to the left.
  125.  
  126. * In "html" mode, if a single displayed line contains more than one link,
  127.   elvis always seems to follow the *first* link regardless of which one you
  128.   click on.  This is bad for some menu bars.  (May only occur with images.)
  129.  
  130. * Modify "elvis.ps" to sense the paper size automatically.  Replace "lppaper"
  131.   with a list of driver-specific options; for PS, this should include frame,
  132.   bar, punch, clipboard, font, and tray.  (The frame, bar, and punch options
  133.   are already implemented, but you need to edit elvis.ps to change them.)
  134.  
  135. * Under X11, if you replace the controlfont with another of the same height,
  136.   elvis doesn't redraw the toolbar.  Labels don't fit in the buttons anymore!
  137.  
  138. * Under X11, if a dialog has a locked field which is wider than a normal string
  139.   field, it is shifted.  This is bad, because locked fields have no cursor so
  140.   there is no way to shift it back again.  Also, the overall dialog width is
  141.   chosen with the assumption that the whole locked field is visible.
  142.  
  143. * The X11 interface should support backtabs, for moving backward through
  144.   links in an HTML file.  Map <ISO_Left_Tab> to... what?  ^K and ^_ are
  145.   available.  If I add vim-style g commands, then <g><Tab> would make sense.
  146.   Is there a termcap/terminfo field for describing backtabs?
  147.  
  148. * Problem: The "squid" HTTP proxy, when handling an FTP request to read a
  149.   directory, returns an HTML document similar to Elvis' own format, but
  150.   it uses relative file names in a weird way.  I suspect squid's method is
  151.   incompatible with that used in "index.html" files on some FTP sites
  152.   such as ftp://sunsite.unc.edu/pub/Linux/!INDEX.html, so this is probably
  153.   really a squid bug, but I need to check.
  154.  
  155. * Elvis gets confused if you load a URL which has no filename component,
  156.   such as "http://www.yahoo.com".  Adding a trailing slash avoids that.
  157.  
  158. * Some FTP servers make non-existent files look like directories.
  159.   Specifically, the SIZE command returns "550-Argument is not a plain file".
  160.   Need a better way to detect non-existent files.
  161.  
  162. * If the cursor is past the end of the buffer, then it looks weird.  This
  163.   could be fixed by adding a "virtual" newline to the end of a file which
  164.   doesn't end with a real one.
  165.  
  166. * If you use the scrollbar to scroll to the bottom of a large file in html,
  167.   man, or hex mode, then when you reach the very end of the file (where you
  168.   would expect see no part of the file, just ~'s) it jumps back so the window
  169.   is completely filled with lines from the file.
  170.  
  171. * Can't run a shell command in the background under X11, because elvis waits
  172.   for an EOF condition on its stdout/stderr.  Should something be done about
  173.   that?  (You can do it if you redirect the program's stdout and stderr.)
  174.  
  175.     Maybe make the x11 prgopen() wrapper check for a '&' command, and
  176.     force "willread" to False in that situation.
  177.  
  178. * The "hex" display mode does strange things to 0x0a characters.  Those quirks
  179.   are hard to eliminate, because that's the newline character and several
  180.   commands are sensitive to newlines.  But eventually something should be done.
  181.  
  182. * In the "syntax" display mode, if a multi-line comment ends on the last
  183.   character of the line just above the top of the window, and the comment
  184.   ender string is one character long (which happens in Pascal, but not C),
  185.   then elvis assumes that the top line of the window is a continuation of
  186.   that comment.
  187.  
  188. * Ex command-line history is very weird.  If you recall an earlier command
  189.   and edit it, you're actually editing the historic version.  I would prefer
  190.   to have a new copy of that line created at the end of the history buffer,
  191.   and have the editing take place on that new copy.
  192.  
  193.   The same thing happens with regular-expression history, and filter-program
  194.   history.
  195.  
  196. * elvis's prompt cannot be answered from a keyboard map, an
  197.   example (simplified and therefore useless):
  198.  
  199.           :map #1 :!more %^M^M
  200.  
  201.   the second ^M should answer elvis's prompt, that occurs after
  202.   the shell escape, automatically (only for convenience, because
  203.   `more' has its own prompt), but this doesn't work: I have to
  204.   press <Return> manually - but then elvis recognizes the ^M - and
  205.   moves the cursor one line down (to my surprise: if I map a
  206.   single character to any key I can use this key to answer the
  207.   prompt!)
  208.  
  209. * In the installation routine, create links named "vi", "ex", and "view".
  210.   Similarly, supply .BAT files or something for Win32.
  211.  
  212. * Some problems have been reported while trying to recover files.  Either
  213.   there's a bug, or I need to improve the documentation.
  214.  
  215. * Sometimes text changes as you move the cursor over it in HTML mode.  This
  216.   has also been reported in Hex mode, but I wasn't able to reproduce that, and
  217.   it could easily have been a configuration problem anyway. (:set nonascii=...)
  218.  
  219. -------------------------------------------------------------------------------
  220. ? Under X11, elvis was reported to get stuck in a loop while trying to step
  221.   through the toolbar buttons in the x_tb_predict() function.
  222.  
  223.     It looks like there was only one button in the toolbar, and the
  224.     buttons are organized in a circular list.  They shouldn't be a
  225.     circular list!  How could that happen?
  226.  
  227.     This may have some indirect relationship to the way that the default
  228.     geometry is parsed.  The system where this was reported had a
  229.     geometry string that looked like "80x25+130" -- with no "+Y" value.
  230.  
  231. ? Trouble decoding URL-encoded addresses?  Compare elvis' code to that of
  232.   VFY.  Also compare the osnet.c file to the VFY's code.
  233.  
  234. ? Sometimes the X11 interface refuses to give up keyboard focus.  I've seen
  235.   this *VERY RARELY* with FVWM under Linux.  It has also been reported under
  236.   OLVWM, and is supposed to be very common under TWM.  I suspect there is a
  237.   race condition, perhaps because elvis (or something else?) isn't including
  238.   a timestamp on a request?
  239.  
  240.     Hopefully this was a side-effect of the bug which caused elvis to
  241.     request an invalid window size (width != basewidth + integer * inc).
  242.     That bug caused elvis and the window manager to fight about window
  243.     sizes (and thus burn a lot of CPU cycles!) which may have lead the
  244.     window manager to treat elvis windows differently.
  245.  
  246. ? Does elvis handle ^M in macros differently than the standard vi?
  247.  
  248.     MS-DOS handles them differently than the standard Unix.  I suspect
  249.     that's the main problem.  Elvis should try to avoid dependencies
  250.     like that, though; perhaps ":source" should always read ex scripts
  251.     in "unix" mode?
  252.  
  253. ? In the Win32/console version, the handling of the "dead" keys (^, ' and `)
  254.   is wrong, they produce three characters, for instance ^<space> inserts #)^
  255.  
  256. / the read command omits the message 'read x lines' in some
  257.   circumstances, one case that I can reproduce:
  258.  
  259.   call elvis for a new (empty) file, then do
  260.  
  261.       :r !echo "abc\ndef"
  262.   twice
  263.  
  264.       I couldnt reproduce this here.  Hopefully that means it is fixed,
  265.       but I doubt it.
  266.  
  267. / In lib/elvis.bwf, the Win32 copy command doesn't like the ">NUL".
  268.  
  269.     Unable to verify this bug; it works for me.  I have made a few small
  270.     changes to osprg.c, but as far as I can tell, it should also have
  271.     worked before those changes.  From the description of this bug, it
  272.     sounds like ">NUL" was being passed to COPY.EXE as an argument.
  273.  
  274. / A URL with empty parameters ("http://localhost/sample.html?") has been
  275.   reported to cause core dumps.  I was unable to reproduce this myself.
  276.   It is possible that some other change that I made to the code has fixed
  277.   this.
  278.  
  279.     Could not reproduce this.
  280.  
  281. / Elvis got hung on a slow machine running X11.  The cursor continued to blink,
  282.   but elvis didn't respond to any events, including Expose or KeyPress events.
  283.  
  284.     Unable to reproduce this.
  285.  
  286. / These commands, taken from elvis.brf, cause a trap under NT:
  287.   > I suppose you could make "elvis.brf" check the file's write permissions,
  288.   > and check it out if it is read-only.  The following UNTESTED lines should
  289.   > do the job:
  290.   > 
  291.   >         if dirperm(filename) == "readonly"
  292.   >         then !co -l %
  293.   >         if dirperm(filename) == "readwrite"
  294.   >         then set noreadonly
  295.  
  296.     Worked for me.  (Actually, I used "then !attr -r %" since I don't
  297.     have RCS for Win32.)
  298.  
  299. / The NT console port throws away any characters that the user types into
  300.   the console window before elvis creates its own console buffer.  Ideally
  301.   it shouldn't do that.
  302.  
  303.     I don't think it does.  It can be hard to tell, since (on my NT system
  304.     at least) elvis creates its console buffer after only a second or so.
  305.     But it looks like it works, and if the SetConsoleMode() functions do
  306.     clobber the typeahead buffer, I'm not sure how to tell it not to do
  307.     that.
  308.  
  309. / A long (>255 chars) error message from a compiler caused elvis to dump core.
  310.   This was while running :make, of course.
  311.  
  312.     There's no obvious reason for this to happen.  All of the buffers for
  313.     holding parsed parts of the error message are dynamically allocated
  314.     and grow when necessary.  Perhaps the msg() command caused calc.c's
  315.     buffer to overflow?
  316.  
  317.     This was actually reported for 2.0, not 2.1.  I was able to reproduce
  318.     it under 2.0 but not 2.1, so I'll assume it was fixed somewhere along
  319.     the way.
  320.  
  321. -------------------------------------------------------------------------------
  322. / Change version to "2.1i-beta".
  323.  
  324. / The "-b blksize" option doesn't verify that the requested size is a power
  325.   of 2.  It must!
  326.  
  327. / The command "elvis -Gquit -cq -b16384" causes a core dump.
  328.  
  329.     Actually, anything that generated a non-fatal, non-status message
  330.     was causing core dumps when elvis was invoked with the "quit" or
  331.     "script" user interfaces.
  332.  
  333. / It would be nice if regexp character classes allowed extra characters after
  334.   the :alnum: or whatever.  E.g., /[:alpha:_][:alnum:_]*/ find C identifiers.
  335.   MORE IMPORTANTLY, did I really implement the right syntax?  The POSIX specs
  336.   could be interpretted as meaning that you need an extra set of brackets
  337.   around the named classes.
  338.  
  339.     Apparently POSIX does require an extra set of brackets, as in
  340.     /[[:alpha:]_][[:alnum:]_]*/ for matching C identifiers.  I've changed
  341.     elvis' regexp code, and the lib/elvisre.html documentation file.
  342.  
  343. / The visual / command doesn't allow / in a character class.  In fact, it
  344.   appears that *all* regular expression parsing code has this problem:
  345.   ex addresses, and :g/:v/:s commands.  Tags may also have this problem,
  346.   but since tag addresses never use character classes it is a moot point.
  347.  
  348. / Winelvis' "About" box should show the version number of the VERSION macro,
  349.   or the o_version option.  (They're the same.)  In 2.1h and earlier, it is
  350.   just hardcoded to show "2.1".
  351.  
  352. / All aliases seem to be enclosed in curlies, even the ones which were really
  353.   defined on a single line.  Since the presence of curlies affects the way
  354.   arguments are handled, this is a problem.  Apparently arguments are appended
  355.   on the *following* line, so they look like a separate command.
  356.  
  357. / Added OS/2 port to general distribution.
  358.  
  359. / Describe blksize in the manual.  Mention that it can only be set via -b#
  360.   and explain why.
  361.  
  362. / The manual entry for MS-DOS (9.1) states incorrectly that you can change
  363.   the blksize option in a configuration file.
  364.  
  365. / The manual needs to say more about filenames: wildcards, %, #, \, $env,
  366.   (expr), ~, {a,b}, `command`.
  367.  
  368. / Typo in manual: "altername" should be "alternate".
  369.  
  370. / In elvisinp.html, ^R/^L get confused about the terms "window" & "screen".
  371.  
  372. / In elvis.syn, MS-DOS file names should accept uppercase extensions as well
  373.   as lowercase.  E.g., .BAT and .bat.
  374.  
  375. / Make the X11 version check for WINDOWID *or* one of the known TERM values.
  376.  
  377. / If $name isn't found, should elvis try for $NAME?  This would be handy under    Win95 because most programs are insensitive to the case of environment
  378.   variables but getenv() is case-sensitive.  It could also be construed to be
  379.   more CSH-like, which is probably a good thing.
  380.  
  381. / How about a command-line option for redirecting stderr (and maybe stdout?)
  382.   to a log file?  This would provide an easy-to-document means by which
  383.   Windows95 users can store error messages.
  384.  
  385. / The manual entry for "elvis.ses" still tries to use the old "binary" option.
  386.  
  387. / If the "backup" option is set, :wq can cause a core dump at guitcap.c:1547
  388.  
  389. / Tag searches on operators don't work?  E.g., if you double-click on <<
  390.   in a C++ program, it should search for the tag "operator<<" but instead it
  391.   just fails.
  392.  
  393. -------------------------------------------------------------------------------
  394. / Change version number to "2.1h-beta".
  395.  
  396. / For MS-DOS, the ^C key doesn't interupt macros, or long commands.  This is
  397.   apparently due to the fact that MS-DOS only checks for ^C during a few
  398.   specific system calls, and elvis doesn't use those calls when it is busy
  399.   executing commands.
  400.  
  401.     I fixed this by adding a bogus kbhit() call to the ttypoll() function.
  402.  
  403. / The :a, :c, and :i commands are dropping the newline from the last line of
  404.   multi-line text.
  405.  
  406. / For X11, the XGetInputFocus() function now returns void instead of a success
  407.   indicator.  Need to modify guix11/guix11.c
  408.  
  409. / The sigaction() calls should not use sa_restorer, because it is deprecated.
  410.  
  411. / The [charlist] notation in regular expressions doesn't allow ] to be included
  412.   in a regexp.  It should be allowed as the first character, or after an initial
  413.   ^ character for negating the list, or after a - as the end of a range.  Also
  414.   need to document this.
  415.  
  416. / In osunix/osnet.c, the function netread() tries to return -1 to indicate
  417.   an error.  It should return False.
  418.  
  419. / Problems remain with terminals that support dim text but not bright text.
  420.   md/me/mh termcap attributes.
  421.  
  422. / The backslash changes for aliases seems to have broken backslash handling
  423.   for commands like...
  424.  
  425.       g/foo/a\
  426.       one\
  427.       two
  428.  
  429.   ... which now adds an extra blank line.  Probably the :append command should
  430.   be modified to expect a newline after the last line, and the normal '.'
  431.   marker should ensure that the last added line ends with a newline.
  432.  
  433. / In ex mode if you hit <Enter> at the end of a file, elvis should give a
  434.   better error message than "bad delta".
  435.  
  436. / In guiwin32/gwmsg.c, the gwclient_WM_DROPFILES() function needs to quote
  437.   the dangerous characters (such as space) in the filename.
  438.  
  439. / The X11 interface can get stuck in a loop in which it continually resizes
  440.   the window.  Apparently if there are two or more resize requests in the
  441.   queue, and elvis adjusts itself for the first one, then the others will
  442.   can change it to still another size.  This has been reported under TWM
  443.   after a simple resize action.
  444.  
  445.     A somewhat sleazy way to reproduce this: Start elvis.  From within
  446.     elvis, start xkoules.  While elvis is waiting for xkoules to exit,
  447.     resize the elvis window *twice*.  Exit xkoules.
  448.  
  449.     Possible fix: When elvis gets one configure request, it can try to
  450.     read as many more as possible, and only use the last one.
  451.  
  452. ? Problems with German keyboards under X11.  The modifiers don't appear to
  453.   work correctly, which prevents { } [ ] ~ @ \ | from being enterable.
  454.   Reported by Juergen Preuss (preuss@cach02.chm.tu-dresden.de).
  455.  
  456.     I borrowed some code from RXVT, which had borrowed it from XTerm.
  457.     Hopefully this will solve the problem.  It doesn't seem to have
  458.     broken anything for US keyboards, but that's all I can test myself.
  459.  
  460. / ctags can't handle derived classes: "class foo: public bar {...}" should
  461.   generate an entry for "foo" and ignore "bar".
  462.  
  463. / The "tags" option needs to support a notation for "look in the directory of
  464.   the current file".  Vim uses "./tags" for that.
  465.  
  466. / After a <L command, I got the message "15 lines NULLed".
  467.  
  468. / Some problems with the manual: The use of multiple -V flags should be
  469.   explained somewhere.  The missing features of the DOS port should be
  470.   writ large.
  471.  
  472. / The "version" option isn't being initialized correctly.
  473.  
  474. / Add a dummy "redraw" option.  Or maybe a real one.
  475.  
  476. / Change the html entry in "elvis.syn" to include more tags.
  477.  
  478. / When the "number" option is set, clicking the mouse sets the preferred
  479.   column to the wrong value; If you click and then hit j/k, the cursor
  480.   jumps to a different column.
  481.  
  482. / A crash was reported in the TeX mode.  Overflowed a token, perhaps?
  483.  
  484.     Perhaps; the token-getting function wasn't smart enough to handle
  485.     long comments or expressions.  It should be that smart now.
  486.  
  487. / The online manual title says "elvis 2.0" -- change to "2.1".  Also, I saw
  488.   a reference to "14.x" which should actually read "16.x"
  489.  
  490. / The "Tips" chapter of the manual should have a section on how to make elvis
  491.   run faster.
  492.  
  493. -------------------------------------------------------------------------------
  494. / Change version number to "2.1g-beta".
  495.  
  496. / Consistent crashes have been reported under Linux in the lp() function
  497.   when elvis is compiled with gcc -O2, with ELF binaries.  Unfortunately, it
  498.   works correctly when compiled with gcc -g, so we can't narrow it down any
  499.   more than that.  Reported by William Cheung, wcheung@scc.spiralcomm.com
  500.  
  501. / In text-mode Win32, there are freaky problems reading from a program. 
  502.   Just running a program works; filtering works; reading from a text-mode
  503.   win32 executable such as ls.exe works.  Reading from anything else
  504.   generally causes the output to show on your screen but not be inserted
  505.   into the edit buffer.
  506.  
  507.     Got pipes working under Win95 in text mode, but not graphic mode.
  508.     Would like to have pipes under graphic mode (WinElvis).
  509.  
  510. / Add the ability to run an external tag search program.  A new "tagprg"
  511.   options will be invoked, and its stdout will be parsed as a series of
  512.   tag lines, all of which are assumed to match the requested tag.
  513.   If tagprg is undefined, then use the standard built-in tag searches.
  514.  
  515. / Both "windows" and "x11" have a scrollbar option, but they work differently.
  516.   Should probably rename the x11 option to "xscrollbar".
  517.  
  518. / Temp files tend to accumulate under Win32.  Problem in oswin32/osprg.c?
  519.  
  520. / Rapid left-arrow while in input mode causes characters to be lost.  This
  521.   only seems to show up in Win32 text-mode.
  522.  
  523.     This was fixed once before, I thought, in input.c:cleanup().
  524.     I suspect new ctrl_o code in inputchange() is to blame for its
  525.     reappearance.
  526.  
  527. / Using backslashes for multi-line commands doesn't seem to work right.
  528.   It looks like there's no terminating '\0'.
  529.  
  530. / In WinElvis, the toolbar and scrollbar options don't quite work -- you can
  531.   apparently turn them off, but you can't turn them back on again.
  532.  
  533. / The names of the "windows" font options conflict with the "x11" options.
  534.   This is a problem because both sets of names appear in the elvisopt.html
  535.   file, and :help needs to be able to find the right one.
  536.  
  537.     Changed the names of the "windows" options from normalfont, boldfont,
  538.     etc., to normalstyle, boldstyle, etc.  This makes more sense anyway,
  539.     since their values aren't really font names.
  540.  
  541. / ":w>>file" doesn't set the alternate file name correctly.  Also, the
  542.   >>file notation doesn't seem to *create* a file if it doesn't exist;
  543.   it should.
  544.  
  545. / The :set command doesn't permit trailing spaces.  It should.
  546.  
  547. / Need to find a way to nest the { ... } notation.
  548.  
  549. / The following should be undoable in a single step: @x macros, :map macros,
  550.   :@x macros, :ab abbreviations, aliases, and :g/:v commands (which are already
  551.   undoable as a single step).
  552.  
  553.     One possible way to do this: make bufwilldo() check the eventcounter,
  554.     and do nothing if it hasn't changed since the previous bufwilldo().
  555.  
  556. / Under X11, toolbar labels should accept characters which aren't defined
  557.   as meaning something else -- namely :"=?~ -- and trailing spaces should be
  558.   ignored.
  559.  
  560. / Aliases should not affect the behavior of the exthenflag variable.
  561.  
  562. / Add :while and :do commands.  The while expression should be saved
  563.   wherever the exthenflag flag is saved.
  564.  
  565. / The htmlescape() function in dmmarkup.c is reported to cause core dumps
  566.   on an RS6000 running AIX, when compiled with optimization enabled.  If
  567.   compiled for debugging, it doesn't dump core so specifics are hard to
  568.   come by on this one.
  569.  
  570. / Under MS-DOS, elvis seems to write each character twice.  This was reported
  571.   by a blind user who has a text-to-speech device hooked into his console.
  572.  
  573.     It doesn't do this with the termcap interface under Linux.  I suspect
  574.     that it is having a hard time because the attribute and character
  575.     bytes are written out seperately.
  576.  
  577. / Large :copy commands can get screwed up.  Try editing a large file, such
  578.   as ex.c, and insert line numbers at the start of each line ("%!cat -n").
  579.   Then do a ":100,500co1000" command.
  580.  
  581. / Sometimes keywords from elvis.syn are lost?  Saw some PERL code where
  582.   "if" and "while" weren't in boldface.  The large number of PERL keywords
  583.   may be a factor.
  584.  
  585.     Yes, that was it.  There was a silent limit of 256 keywords.  I have
  586.     now increased that limit to 300 keywords.  I really need to recode
  587.     the keyword hash table though -- it is unnecessarily kludgy.
  588.  
  589. / X11 dialogs should support a "locked" data type, because some options can't
  590.   be edited.  If a row doesn't specify an option name, then that row's type
  591.   should be "locked"; this will allow dialogs to display immutable information
  592.   which doesn't come from an option.  If a row has neither an option nor a
  593.   value, then its label should be centered in the dialog.
  594.  
  595. / Under MSDOS with TERM=dosansi or TERM=nansi, mouse highlighting is
  596.   flakey, and linewrap causes some problems.  Also, running an external
  597.   command causes the mouse cursor to vanish.
  598.  
  599. / Should allow certain words to be customized by language:  Submit, Cancel,
  600.   Help, True, False.  Create options named "true" and "false" for storing
  601.   the local versions of those words; this will also have the pleasant side
  602.   effect of allowing the english words "true" and "false" to be used as
  603.   though they were Boolean literals in expressions.  The other words are
  604.   only used by the "x11" user interface.
  605.  
  606. / The saveregexp option doesn't do enough.  It protects the regexp, but
  607.   it needs to protect the substitution text and the substitution flags too.
  608.  
  609. / Need to replace <xmp></xmp> with <pre></pre> in the lib/*.html files.
  610.   <xmp> is obsolete, and elvis doesn't implement it correctly anyway.
  611.   Also add <code> to dmmarkup.c, as a synonym for <tt>, and use <code>
  612.   in the lib/*.html files.
  613.  
  614. / The :w command affects the value of the "exthenflag" flag.  The elvis.bwf
  615.   and elvis.awf scripts (and others) should probably save the value of
  616.   exthenflag, and restore it afterward.
  617.  
  618. / In a :ab! abbreviation, expansion doesn't take place if the short form
  619.   is the last thing on a command line.
  620.  
  621. / Under Win32, it should be able to parse UNC names (\\machine\directory\file)
  622.  
  623.     Apparently the only missing piece is that elvis should not change
  624.     the leading \\ to \.
  625.  
  626. / The termcap interface can't use "dim" unless there is also a "bold" escape
  627.   sequence.  There's no need for that!
  628.  
  629. / The :ta command doesn't offer any way to supply values which contain
  630.   colons or whitespace.
  631.  
  632. / Long moves don't necessarily center the cursor line in the window.  See
  633.   the "!!!" comment in dmnormal.c.  To fix this, I'll need to pass the
  634.   window pointer into the setup function.  (Some other setup functions could
  635.   benefit from this, too.)
  636.  
  637. / The :ta command should be smarter about setting the previoustag option.
  638.   Whenever you jump to a tag, previoustag should be set to the name of that
  639.   tag.
  640.  
  641. / Add a Windows version of the "quit" GUI to WinElvis.  The normal "quit"
  642.   interface isn't supported there, and the text-mode version of elvis doesn't
  643.   support "lptype=windows".
  644.  
  645. / When ^L is defined as forcing a redraw in input mode, it can break some
  646.   common macros.  Perhaps it should be left as a normal "insert me" character.
  647.   Users could still redraw the screen while in input mode by typing ^O^L.
  648.  
  649. / Bottom button of X11 scrollbar isn't drawn initially.  It appears after
  650.   an expose event, or after any colon command including colon-backspace.
  651.   I suspect the scrollbar is first drawn with a height of 0, and the top
  652.   button is drawn over the top of the bottom button.
  653.  
  654. / On AIX systems, the toolbar is drawn incorrectly.
  655.  
  656. / Control-V should display a carat on the screen, while waiting for the
  657.   quoted character.
  658.  
  659. --------------------------------------------------------------------------------
  660. / Change version number in version.h to "2.1f-alpha".  (n.b. I haven't been
  661.   doing a consistent job of updating this list as bugs are fixed, or as new
  662.   versions are uploaded.  There *were* some fixes between 2.1b and 2.1f.)
  663.  
  664. / An expose event causes the scrollbar to be redrawn, even if it should really
  665.   be blanked out (because the cursor is on the bottom row).
  666.  
  667. / Under Win32 or DOS, text-mode "elvis -?" outputs a line of garbage after
  668.   the help message.  The garbage consists of uninterpretted escape sequences,
  669.   emitted as the termcap interface shuts itself down.
  670.  
  671. / When invoked in the current directory, with the "exrc" option set, elvis
  672.   will source the ./.exrc file twice.
  673.  
  674. / Abbreviations can get stuck in a loop.  Self-referential abbreviations
  675.   should be disallowed.  (Actually, should an abbreviation *ever* expand
  676.   another embedded abbreviation?)
  677.  
  678. / The :& command doesn't seem to be working correctly in all circumstances.
  679.   After doing a ":%s/.$" on one buffer, and then switching to another buffer,
  680.   the command ":%&" did not work.
  681.  
  682.     This is because the "elvis.arf" file uses a :s command to locate and
  683.     execute modelines.  There is no easy way to fix this, unless you think
  684.     ":set nomodelines" is an acceptable solution.
  685.  
  686.     Here's an idea: Create a new "saveregexp" option.  Leave it on
  687.     normally, but turn it off when doing the modeline search.  Also force
  688.     it off while searching for tags for the "showtag" option.
  689.  
  690. / The command ":g/old/s//new/g" doesn't work in 2.1e.  It worked in 2.0, so
  691.   some recent change must have broken it.
  692.  
  693. / When returning after a :bb command, the cursor is moved to the top of the
  694.   buffer instead of its previous position.  The best way to fix this would
  695.   be to add a "winpos" field to the BUFFER struct, and set it to the cursor
  696.   position before each ^W command or ex command.
  697.  
  698. / The X11 interface doesn't handle Expose events during time-consuming
  699.   commands such as :make.
  700.  
  701. / If bufdisplay is set to "man", "html", or "tex", then ^Wd should probably
  702.   toggle between "syntax" and bufdisplay, rather than "normal" and bufdisplay,
  703.   so the source text will be displayed with syntax coloring.
  704.  
  705. / In ioopen(), the usestdio flag is never turned off.
  706.  
  707. / The :make command is insensitive to the gui->poll function.
  708.  
  709.     It does set the pollfrequency option to 1 while it is running, but
  710.     I think maybe it also needs to call the guipoll() function to reset
  711.     its internal count-down.
  712.  
  713.     Update: It does detect it, but not until the next line comes in from
  714.     the compiler.  This can take a while.
  715.  
  716. / The :g and :v commands don't work correctly on last line.  If the last line
  717.   is supposed to be affected, it appears to actually affect the *FIRST* line.
  718.  
  719.     The behavior of this bug is more complex than that, actually.  More
  720.     testing is needed.
  721.  
  722. / The :s command doesn't handle counts correctly.  It should treat a count as
  723.   a quantity of lines, but instead it treats it as a selector for the instance
  724.   of matching text to change in each line.
  725.  
  726. / In the "x11" interface, the tool buttons should wait until the mouse button
  727.   is released.  Otherwise the "quit" button could leave the mouse pointing at
  728.   some totally unrelated window WITH A BUTTON PRESSED!  Surprise!
  729.  
  730. / If the "number" option is set, then the printout should show line numbers.
  731.   It should also cause page headers to be printed.
  732.  
  733. / Often it would be handy to allow ":e !command" or ":sp !command" to fill an
  734.   untitled buffer from a filter command.  For example, ":sp !man \@ | col -b"
  735.   would cause a window to pop-up, showing the man-page for the word under the
  736.   cursor.
  737.  
  738. / In the syntax display mode, the directory in which the current file resides
  739.   should assumed to be in the search path.  For example, if you're editing
  740.   osunix/tcaphelp.c, and you double-click on "tcaposix.h", then elvis should
  741.   be smart enough to load osunix/tcaposix.h.  Currently it isn't.
  742.  
  743. / The assert() statement in ex_qall() needs "|| xinf->command==EX_ONLY".
  744.  
  745. / If the backspace key sends ^? (and the tty settings indicate this) then
  746.   elvis should treat ^? as ^H.
  747.  
  748. / It would be nice if elvis supported HTML frames, in the least-complex
  749.   manner possible: Treat <FRAME SRC=... ALT=...> like <A HREF=...>...</A>
  750.  
  751.   Similarly, it would be nice if an <IMG> which isn't an hypertext reference
  752.   would fetch the image data (perhaps reading it into a temporary edit buffer)
  753.   and then send it to a configurable program; the default should be "xv -"
  754.   so the image is displayed by xv.
  755.  
  756. / If ":make" is used in a window which is displaying an internal buffer
  757.   (especially the "Elvis error list" buffer), and there is another window
  758.   which is displaying a non-internal buffer, then the command should be run
  759.   in that other window.  This is simply for convenience -- after going to the
  760.   trouble of displaying an internal buffer in a window, the user probably
  761.   doesn't want to use that same window to show a buggy source file.
  762.  
  763. / Some older X-windows servers don't have XrmCombineFileDatabase().
  764.  
  765. / If you are displaying a cut buffer in a window, then you can try to yank
  766.   text from a cut buffer into itself... but cutyank() isn't smart enough to
  767.   handle that correctly; elvis hangs.  Probably cut buffers should be locked.
  768.  
  769. / The :pop command should wipe out the list of matching tags.  This will
  770.   allow elvis's enhanced tags to act more like traditional tags for users
  771.   who are in the habit of using ^]^T to glance at the definition of a tag.
  772.  
  773. / The X11 resource "*foreground: somecolor" makes toolbar buttons unreadable.
  774.  
  775. / The install procedure should copy lib/elvis.xpm and lib/elvis.xbm into the
  776.   /usr/include/X11/{pix,bit}map directories.  Also, small icons would be nice
  777.   (pixmaps of size next/normal=56x46, small=21x18, and mini=17x14)
  778.  
  779. / The "Delete Window" button of the last elvis window should not simply fail;
  780.   it should do a ":close" command instead.
  781.  
  782. / In the "html" display mode, if a token begins with   then elvis
  783.   mistakes the token for a whitespace token; the remaining characters aren't
  784.   displayed.
  785.  
  786. / The x, X, ~, and r commands don't work correctly when the count exceeds
  787.   the number of characters in the line.  They should implicitly reduce the
  788.   count; but instead they're just ignoring the command.
  789.  
  790.     Actually, r and X are supposed to fail, and they do.
  791.     x should fail, but elvis just deleted to left.  Now it fails correctly.
  792.     ~ should reduce the count.  It didn't before, but it does now.
  793.  
  794. / The character search commands stop at a newline, even if the current display
  795.   mode uses some other definition of a "line".
  796.  
  797. / The X11 interface should handle GraphicsExpose events when scrolling a
  798.   window which is partially obscured.
  799.  
  800. / Add support for hardtabs/ht option.  And then ignore it, since elvis never
  801.   outputs hard tabs.
  802.  
  803. / The "flash" option doesn't work.
  804.  
  805. / The current("word") function sometimes causes a core dump.  This occurs when
  806.   the cursor isn't located on a word (but sometimes that works too).
  807.  
  808. / Elvis uses an option named "buffers", but that clashes with a variable
  809.   declared in some systems' <stdio.h> file.  Change to "elvis_buffers".
  810.  
  811. / Elvis checks for :mh=: even if :me=: is undefined.  It shouldn't.
  812.  
  813. / Under NT, in the GUI version, the Options/Syntax menu item brings up
  814.   Dr. Watson.
  815.  
  816. / Cut/Paste don't work in Win32/gui?
  817.  
  818.     Verified.  A true bug.  It attempts to cut/paste whole lines (?) via
  819.     the ">/"< buffer, but the underlying GUI clipboard functions don't
  820.     seem to work.
  821.  
  822. / Win32: There is a limit to how small a window can be: 2 rows of 30 characters.
  823.   Resizing the screen to be smaller than that (by dragging an edge/corner of
  824.   the window frame) causes elvis to crash.
  825.  
  826. / Win32: If you use a mouse click to position the cursor, and you jiggle
  827.   the mouse slightly, then WinElvis starts highlighting text.  Xelvis is less
  828.   sensitive to jiggles; it requires you to drag the mouse into a different
  829.   character cell before it'll start highlighting, which seems to work well.
  830.  
  831. --------------------------------------------------------------------------------
  832. / Change version number in version.h to "2.1b-alpha"
  833.  
  834. / The X icons still say "2.0", even though we're working on 2.1 now.
  835.  
  836. / Some commands move the cursor to a different buffer when they shouldn't.
  837.   For example, ":(otherbuf)1,20co." copies the lines correctly, but then it
  838.   moves the cursor to line 20 of otherbuf.
  839.  
  840. / The "x11" interface should ignore MotionNotify except after a ButtonPress.
  841.   Although elvis only requests MotionNotify events while a button is held down,
  842.   some servers send them at other times as well.
  843.  
  844. / Ex parser doesn't support backslashes, for things like...
  845.  
  846.     :g/XXX/a\
  847.     line1\
  848.     line2
  849.  
  850. / Under X, pasting from the clipboard doesn't work during, e.g., a "5s"
  851.   command.  (Probably true of Win32 gui, too.)
  852.  
  853. / Environment variables with underscores are not recognized in elvis scripts.
  854.  
  855. / A more sophisticated method for handling EOF would be appreciated.
  856.   Suggestion:
  857.       * Add a "readeol" option to each buffer, one of {unix, dos, mac, text,
  858.         binary}, defaults to "text".
  859.       * Add a "writeeol" option to each buffer, one of {unix, dos, mac, text,
  860.         binary, same}, defaults to "same".
  861.       * Add a "fileeol(filename)" function, returns the file's probable
  862.         format, one of {unix, dos, mac, text, binary} by reading the first
  863.         part of a file.  Returns "text" if no hard evidence of any other
  864.         format.
  865.     * Meanings of values: unix=LF, dos=CRLF, mac=CR, text=local convention,
  866.       binary=no modifications, same=current value of readeol.
  867.     * The "elvis.brf" file could do a "let readeol=fileeol(filename)"
  868.       to detect non-text files automatically.
  869.  
  870. / Need a way to prevent :make from loading an erroneous BINARY file.
  871.  
  872. / The built-in calculator can easily overflow when fetching the value of an
  873.   environment variable.  Possibly other situations, too.
  874.  
  875. / Under Unixware, when the termcap interface writes a '\n' character, the
  876.   cursor is forced to column 0.  Should use :do=: or :DO=: instead.
  877.  
  878. / ":q!" doesn't turn off a buffer's "modified" flag or delete the buffer.
  879.  
  880. / The guitcap file never checks the LINES and COLUMNS environment variables.
  881.  
  882. / When entering a command line, ^Ocw places a $ as though it will replace
  883.   the current word, but actually any text is inserted.
  884.  
  885. / The "program" option isn't documented.
  886.  
  887. / Under X11, some sites are missing the default fonts, or have goofy fonts
  888.   aliased to "fixed" and "variable".  Probably appdefaults fix this for other
  889.   applications.  Elvis should support some method of reading X resources.
  890.  
  891. / It would be nice if untar.c kept the date and permissions from the archive.
  892.   This can't be done in ANSI C, but if POSIX calls are supported then it can
  893.   be.  Maybe check for _POSIX_SOURCE?  Also, it would be nice if the untar
  894.   executable could be prepended to the archive, to produce a self-extracting
  895.   archive.
  896.  
  897. / Add a way to abbreviate (Elvis error list) and (Elvis map log).
  898.  
  899.     Done: You can now give use a quote character followed by the initials
  900.     of any buffer in place of the buffer name.  So ("Eel) means the same
  901.     as (Elvis error list).
  902.  
  903. / The "warningbells" and "warpback" options are both abbreviated "wb".  Change
  904.   "warpback" to "xwb".
  905.  
  906. / The termcap gui should not attempt to catch SIGHUP.  It isn't necessary,
  907.   and catching it can, in fact, cause the elvis process to go into a tight
  908.   loop as it attempts to read from a dead tty.
  909.  
  910. / Add ^Wo and :only commands -- like :qall except they only close (don't
  911.   delete buffers) and don't affect the current window.
  912.  
  913. / Maybe add a "showname" option, to display the buffer name on the status
  914.   line?
  915.  
  916. / The console's "Edit/Paste" menu item doesn't paste all of the characters
  917.   that it should.  (Also, it doesn't work correctly for Chinese text... but
  918.   that may be too big a problem for now.)
  919.  
  920. / The manual should mention that "ignorecase" doesn't affect character classes.
  921.  
  922. / The status line isn't redrawn when colors change.
  923.  
  924. / The "instman.sh" script doesn't invoke elvis correctly to format the
  925.   man-pages.  It uses "-gquit" instead of "-Gquit", and the EXINIT variable
  926.   as no effect because ELVISPATH=dummy.
  927.  
  928. / there seems to be a `!' substitution in command lines, this may
  929.   be a "generalisation" of vi's command repetition `!!' (which
  930.   allows command repetition and appending to a command, i.e.
  931.   `!' substitution occurs only at the beginning of a command);
  932.   IMHO the `original' behaviour (which was also implemented in
  933.   elvis18) is better, because a substitution inside of a command
  934.   is rarely needed, but now you have to quote all exclamation marks
  935.  
  936. / in vi the `print' and `list' commands query the `number' flag
  937.   (and behave according to it, i.e. print line numbers or not)
  938.  
  939. / the join command could display a message like 'x lines joined'
  940.  
  941. / In the termcap interface, if you hit <Esc> in command mode, the following
  942.   character is eaten.
  943.  
  944.     This is normal.  Hitting <Esc> causes the terminal to be "alerted,"
  945.     which has the side effect of throwing away any characters already in
  946.     the type-ahead queue.
  947.  
  948. / The defaultreadonly option is ignored.  The bufload() function resets each
  949.   buffer's readonly flag before loading the file.
  950.  
  951. / if I call the (ex) join command with an adress range of 1 line
  952.   (not a single adress, sounds strange, but see below ...) it
  953.   joins 2 lines, but -per definition- it should do nothing
  954.  
  955.   e.g.:           :3,3j             joins lines 3 and 4!
  956.  
  957.   why bother? ... try the following command:
  958.  
  959.                 :v/./,/./-j
  960.  
  961.   in vi it compresses consecutive blank lines to one, but,
  962.   due to the behavior of `join', elvis deletes all blank lines
  963.  
  964. / the following I've already reported, but now I can describe the
  965.   error more precisely, also I can give you a hint, how to fix
  966.   it:
  967.  
  968.       elvis deletes one `level' of backslashes before passing a
  969.       command to the shell (concerns ex's `!', read and write
  970.       commands, NOT vi's filter command !)
  971.  
  972.   I think it's easy to fix, but you should prove it; in `ex.c'
  973.   change line 1228:
  974.  
  975.         if (*refp && !CHARchr(toCHAR("%#!@\\"), **refp))
  976.                           ^^
  977.                           delete this
  978.  
  979. / In the relative part of a line address, the "+" is optional.  I.e., the
  980.   command ":.,.3y" should be identical to ":.,.+3y".
  981.  
  982. / The command ":g/^/m0" should reverse the order of all lines, but elvis
  983.   just gives the message "destination can't be inside source".
  984.  
  985. / WinElvis doesn't print graphic characters correctly.
  986.  
  987. / Add support for multi-line strings which don't require a backslash.
  988.  
  989. / Typing some text and then (without hitting Esc) allowing the left arrow to
  990.   autorepeat causes some characters to be lost.  This only happens under the
  991.   X11 user interface.
  992.  
  993. / The description of the "keywordprg" option says that $1 is replaced by the
  994.   current word, but currently the word is appended to the option's value.
  995.  
  996. --------------------------------------------------------------------------------
  997. / Change version number in version.h to "2.1a-alpha"
  998.  
  999. / Changing one option via the Options menu causes all options in that dialog
  1000.   to be set, so ":set" with no arguments causes them to be displayed.
  1001.  
  1002.   FIXED: This is actually due to a quirk in elvis' options.c file.  I've fixed
  1003.   it.  Previously elvis didn't store the default value for each option; now
  1004.   it'll save the values of all options immediately after executing "elvis.ini"
  1005.   as the defaults.  Each option's OPT_SET flag will be set or cleared after
  1006.   a value is assigned to the option, depending on whether the new value
  1007.   matches the default value.
  1008.  
  1009. / Bug in filename completion under all Microsoft OSes (not just in Win32 gui):
  1010.   If you enter a directory name and partial file name using forward slashes,
  1011.   the substituted name will drop the directory name.  If I use a backslash,
  1012.   it works correctly.  For example, "guiwin32/gu<Tab>" becomes "guiwin.c" but
  1013.   "guiwin32\gu<Tab>" becomes "guiwin32\guiwin.c".
  1014.  
  1015.   FIXED, at least for Win32.  It is due to minor bugs in the osdir.c functions.
  1016.  
  1017. / In the X11 user interface, I've received some requests for more configuration
  1018.   options for the cursor.  Some folks don't like the hollow rectangle.  Add a
  1019.   new "cursorstyle" option which can be set to hollow, opaque, or xor.
  1020.  
  1021. / In addition to "xterm", perhaps guix11.test() should check for "iris-ansi"
  1022.   (for SGI) and "dtterm" (for CDE).
  1023.  
  1024. / In text mode, the cursor jumps to lower-right corner after each keystroke.
  1025.   Annoying on slow terminals.  This appears to be an attempt to clear the line,
  1026.   by drawing a bunch of spaces before the statusline text (showmode, ruler).
  1027.  
  1028. / Errors that occur interactively should not set exitcode to 1.
  1029.  
  1030. / eventreplace() doesn't move the cursor to the correct location.
  1031.  
  1032. / Add WinElvis and WinTags to the "makwin32.bat" file.
  1033.  
  1034. / In WinElvis, if the text doesn't completely fill the window, then the
  1035.   scrollbar will look funny.  This is unavoidable.  We would like to have
  1036.   the scrollbar's thumb completely fill the scrollbar (since the text
  1037.   completely fills the window) but Win32 tries to do us a favor by removing
  1038.   the scrollbar in that situation.
  1039.  
  1040. / :only can cause a core dump.  Try starting elvis without a file, running :sp
  1041.   and then :on
  1042.  
  1043. / :close can close the last window.  It shouldn't.
  1044.  
  1045.     Actually, that's a pretty convenient behavior to support.  The window's
  1046.     "close" button does a :close, which should be able to close the last
  1047.     window... if there aren't any modified buffers.
  1048.  
  1049. / Under Win32, if you move the pointer outside of the text window, it isn't
  1050.   restored to its intended shape when you move it back in again.
  1051.  
  1052. / Under X11, the resource for button colors must not be named "foreground".
  1053.   That leads to a foreground-on-foreground problem, so button labels aren't
  1054.   legible.
  1055.  
  1056. / Under X11, -client isn't sensitive to which machine the command is running
  1057.   on.  Perhaps the "ELVIS_SERVER" attribute name should be renamed to
  1058.   "ELVIS_ON_{hostname}".  Another problem is that user ids may differ --
  1059.   running in root and as a real user, for example.
  1060.  
  1061. / Backslash needs to be treated literally in more situations, especially
  1062.   under Win32.  A name like "C:\tmp\_tempfile" should be treated literally.
  1063.  
  1064.   The worst case is something like "C:\temp\$wc\foo", where the "$wc" is
  1065.   supposed to be literal.  I don't think anything can make this be rational!
  1066.   The current code interprets the backslash as a quote for the $ character,
  1067.   so elvis loads "C:\temp$wc\foo".  If backslash was literal, it would try
  1068.   to perform environment variable substitution for "$wc".  The current
  1069.   behavior is about as good as it gets.
  1070.  
  1071. / Does the ":lpr" command support ">>" to append to files?  It should.
  1072.  
  1073. / If the buffer doesn't end with a newline, then the Y command will go into
  1074.   an endless loop.
  1075.  
  1076. / Newly created windows should acquire input focus... and when entered
  1077.   interactively they do.  But for macros and the "elvis -client -c ..."
  1078.   command, this doesn't work correctly.
  1079.  
  1080. / The :s command (not :s/old/new/) is supposed to repeat the previous
  1081.   :s/old/new/ command, but doesn't.  The :& command works correctly.
  1082.  
  1083. / Under Win32, the italic font is shifted slightly to the left -- which is
  1084.   fine normally, but not after a ":set italicfont=n".  Then it clips off
  1085.   the uprights of many letters.
  1086.  
  1087. / Skip the "Hit <Enter> to continue" prompt if we're in the middle of a map.
  1088.  
  1089. / Tweak the tags stuff to use the proposed standard.
  1090.     - Allow :" after the address in field 3
  1091.     - Interpret file: as file:(tagfile) -- i.e., file: marks static tags
  1092.     - In the extra fields, the values are subjected to the following
  1093.       translations: = becomes =3D, tab becomes =09, newline becomes =0A
  1094.  
  1095. / Writing via ftp doesn't turn off the "writing" flag when complete.  This
  1096.   causes the next read to fail in an assert() statement.
  1097.  
  1098.