Ralph Corderoy <[email protected]> wrote:
 |>> So it seems there's tab completion of filenames in the midst of
 |>> writing an email.  That seems of rare use, but a source of frequent
 |>> annoyance.  How is it disabled?
 |>
 |> Not at all.  In v14.9, however, you will be able to re-`bind' the
 |> tabulator expansion for compose mode.  Let me see... ah ja, works:
 |>
 |>   ?0[steffen@wales nail.git]$ ./s-nail -RSnoeditalong \
 |>     -X "bind compose \$'\\t' RALPH@"
 |
 |That gave me a clue.  `set line-editor-disable' in .mailrc helps.  The

Oh yes, this can also help, then.
Be aware -- it is an upward compatible setting.  ^.^

 |TTY's erase, werase, and kill suffice for me, and if not there's `~e'.

Yes, indeed.  I usually (need to) do ":read!cat" to get something
pasted as is, it is an annoyance.  Maybe in the future, something
like this would be possible:

  define raw_paste {
     ignerr read line
     if [ "$?" == 0 ] 
        inject_input "${line}"
        \call raw_paste
     endif
  }  
  bind compose :kf10 !:echo before';'!:call raw_paste';'!:echo after

In fact this already, but doesn't work:

  define raw_paste {
     ignerr read line
     if [ "$?" == 0 ] 
        inject_input "${line}"
        \call raw_paste
     endif
  }  
  bind compose :kf10 !:echo before';'call raw_paste';'echo after

The problem being we don't emit a OnLineCompletedEvent so that the
current consumer (i.e., normal mode, compose mode, etc.) can do
with line content whatever it wants.  Therefore the line gets
evaluated in "normal" command context, and therefore anything
pasted will be, too, e.g.:

  ?0[steffen@wales nail.git]$ ./s-nail -Snoeditalong -sub [email protected]

  INJECTED 26 < call raw_paste;echo after>
  before
  INJECTED 11 < echo after>
  echo hi future!
  INJECTED 16 < echo hi future!>
  hi future!
  set debug
  INJECTED 10 < set debug>
  s-nail: memreset: freed 1 chunks/8248 bytes
  s-nail: memreset: freed 1 chunks/91 bytes
  s-nail: memreset: freed 4 chunks/17016 bytes
  s-nail: MACRO 15 bytes <\call raw_paste>
  s-nail: MACRO 16 bytes <ignerr read line>
  ...

So this won't work out.  But in general, we could offer such
a thing, or give you the hands to code it.  Note this will be
backward-incompatible, then, regarding the `bind' expansion and
just as shown above.

--steffen

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
__________________________________
[email protected]

Reply via email to