vile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vile] digraphs.rc issue


From: Thomas Dickey
Subject: Re: [vile] digraphs.rc issue
Date: Thu, 8 Dec 2016 21:33:48 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

On Thu, Dec 08, 2016 at 05:30:04AM -0500, Thomas Dickey wrote:
> ----- Original Message -----
> | From: "Brendan O'Dea" <address@hidden>
> | To: "Marc Simpson" <address@hidden>
> | Cc: "Vile List" <address@hidden>
> | Sent: Thursday, December 8, 2016 5:13:31 AM
> | Subject: Re: [vile] digraphs.rc issue
> | 
> | On 8 December 2016 at 17:55, Marc Simpson <address@hidden> wrote:
> | > Enter (on newlines): ^Ka' ^Ka` ^Ke" ^Ke` (where ^K is control-k)
> | > after
> | > sourcing digraphs.rc.
> | >
> | > Output in my buffer,
> | >
> | >   ^Ka'
> | >   à
> | >   ^Ke"
> | >   è
> | >
> | > i.e., ' and " aren't rendering the appropriate digraphs (á, é). As
> | > far
> | > as I can tell, this affects all mappings involving quote
> | > characters.
> | 
> | I'm not seeing the incorrect characters, but for anything involving '
> | or " I'm just getting the ^K sequence inserted unchanged.  This is
> | with version 9.8l and 9.8r.
> | 
> | Looking in digraphs.rc, I see that the quote characters are escaped
> | in
> | the map! statements:
> | 
> |   map! ^Ka` ^V224
> |   map! ^Ka\' ^V225
> |   map! ^Ka\" ^V228
> | 
> | So the first works fine, and produces à as expected.  The other two
> | require the backslash to be entered as part of the sequence to work.
> | i.e. the four character sequence ^Ka\' produces á.  Omitting the
> | backslash gives the input unchanged: ^Ka'.
> | 
> | Editing diagraphs.rc to remove the backslashes appears to load fine,
> | and then the digraph works as expected.  Did the rc parser change
> | Tom?
> 
> it's been a while - I'll research that this evening (have to go now...)

That was 9.7zf2 (label v9_7zf2):

https://github.com/ThomasDickey/vile-snapshots/commit/39d4f7ee7824ffc0856857d42a8c23172e9c49e8#diff-e4eb329834da3d36278b1b7d943b3bc9

 20100725 (zg)
        > Tom Dickey:
        + correct scripting for map/map! commands to allow ^V to escape any
          character, as well as ignoring single/double quotes and backslashes
          (report by Larry Gensch).

so, yes it was intentionally changed but I overlooked the digraphs.rc file.

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]