Re: Weird problem in xvile - I can't enter a '>' character

2024-03-11 Thread Gary Jennejohn
On Mon, 11 Mar 2024 10:16:08 -0400
Paul Fox  wrote:

> chris wrote:
>  > I don't use xvile all that much, I use vile in a terminal window most
>  > of the time, however I do sometimes find I need to use xvile.
>  >
>  > I've just found that the > character doesn't work in xvile.  This
>  > seems to be the same on both version 9.8v and 9.8y running on two
>  > different xubuntu systems.
>  >
>  > The > character works fine everwhere else, in vile, in the terminal
>  > window, in browser windows, etc.
>  >
>  > I've tried changing font selection but that didn't help.
>  >
>  > I *can* enter a > by typing x3e.
>  >
>  > Any ideas how to diagnose this?
>
> Perhaps not much help, but:  works for me, 9.8v on Ubuntu.
>

Similar for me, but xvile version 9.8y for freebsd15.0.

I use xvile to compose my e-mails and often have to add >'s when I
respond to e-mails.

--
Gary Jennejohn



Re: Start again with syntax highlighting problem

2023-01-02 Thread Gary Jennejohn
On Mon, 2 Jan 2023 14:17:43 -0500
Thomas Dickey  wrote:

> On Mon, Jan 02, 2023 at 10:45:14AM +, Chris Green wrote:
> > OK, restart, I think I now see a pattern in this.  I completely
> > removed and re-installed vile from the Ubuntu repositories on esprimo
> > and it is now working correctly there.  I had modified it there
> > because of the issue a while ago with UTF8 characters.  So the table
> > is now as follows:-
> >
> > backup  xubuntu 22.10   vile 9.8w   colour OK, but not right
> > bison   Android 11  vile 9.8w   colour OK, but not right
> > caracal Debian 10   vile 9.8no colour syntax
> > cheddar Debian 10   vile 9.8t   colour OK
> > esprimo xubuntu 22.04   vile 9.8v   colour OK
> > isbdUbuntu 20.04vile 9.8t   colour OK
> > odinDebian 9vile 9.8s   colour OK
> > pimedia Debian 11   vile 9.8u   colour OK
> > t470xubuntu 22.10   vile 9.8w   colour OK, but not right
> > tsohost very oldvile 9.8no colour syntax
> >
> >
> > This makes *much* more sense! :-)  The systems with versions older
> > than vile9.8w do syntax highlighting OK.  The two systems where I
> > built vile myself and installed as a user (no root access) don't do
> > syntax highlighting but thati's almost certainly something I have
> > missed out in the build and it's not so important there anyway.
> >
> > So, the question is why the syntax highlighting of vilemode for
> > version 9.8w is messed up.  It's not badly wrong, it gets the colour
>
> I made an incorrect bug-fix in 9.8w for vilemode, which is fixed in 9.8x
>
> This was the change (reverting it will fix the bug):
>
> @@ -17,7 +17,7 @@
>
>  #define FLTSTACK_EXTRA int with_state; int with_active;
>  #define FltStack_WITH_STATE   FLTSTACK_THIS.with_state
> -#define FltStack_WITH_ACTIVE  FLTSTACK_THIS.with_state
> +#define FltStack_WITH_ACTIVE  FLTSTACK_THIS.with_active
>  #include 
>
>  #if defined(_estruct_h) && !SMALLER
>

This is peculiar.  In my 9.8w code (FreeBSD) this error is not present.

> > of comments right throughout but gets confused about keyword colours
> > and within some 'map' settings.  As far as I can see on other file
> > types (shell scripts, python, C) version 9.8w gets the highlighting
> > correct so it does look like just an error in the vilemode
> > highlighting.
> >
> > Has the vile-filt-filt file changed between 9.8v and 9.8w?
> >
> > --
> > Chris Green
> >
>
> --
> Thomas E. Dickey 
> https://invisible-island.net


--
Gary Jennejohn



Re: Always get two windows when using -c

2022-11-13 Thread Gary Jennejohn
On Sun, 13 Nov 2022 13:57:30 +
Chris Green  wrote:

> This relates to my recent posting about trying to use the '-c' command
> line option.  However it's now a more general problem/question.
>
> Whenever I add a '-c command' (or a '+ command', or a '-g NNN') to the
> command line vile opens two windows, the file I want is in the first
> window and the following is in the second (lower) window:-
>
> [Reading /home/chris/.vilerc]
> [Read 66 lines from "/home/chris/.vilerc"]
> [Reading /usr/share/vile/filters.rc]
> [Reading /usr/share/vile/modes.rc]
> [Reading /usr/share/vile/digraphs.rc]
> [Reading /home/chris/wiki/data/pages/boating/diary/2011/05/20.txt]
> [Read 2 lines from
> "/home/chris/wiki/data/pages/boating/diary/2011/05/20.txt"]
> [Not that many lines in buffer: 20]
>
> The error at the bottom is simply because, in this case, I had a
> '-g 20' on the command line.  As I said, it makes no difference what I
> add to the command line (with -c, + or -g) I always get this second
> window.
>
> How can I prevent this second window from opening?
>

I never see this.  Do you having something weird in your .vilerc?

--
Gary Jennejohn



Re: Why doesn't this do what I expect?

2022-11-10 Thread Gary Jennejohn
On Thu, 10 Nov 2022 17:55:49 +
Chris Green  wrote:

> I have a file, called .editfile which contains just a filename, e.g.:-
>
> chris$ cat .editfile
> /srv/wiki/data/pages/telecoms/umidigi.txtchris$
> chris$
>
> When I open the file with vile or xvile I see (as expected) the
> filename and I can enter ^X-e to edit the file.
>
> However if I try the following:-
>
> chris$ vile -ce .editfile
>
> I don't get to edit the file whose name is in .editfile, I get
> .editfile in one window and the following in the other window
> (named [Binding List] :-
>
> [Reading /home/chris/.vilerc]
> [Read 66 lines from "../.vilerc"]
> [Reading /usr/share/vile/filters.rc]
> [Reading /usr/share/vile/modes.rc]
> [Reading /usr/share/vile/digraphs.rc]
> [Reading /home/chris/wiki/.editfile]
> [Read 1 line from "./.editfile"]
>
>
> Is there any way I can get this to work as I want?  I just want to
> open the file whose name is in .editfile.
>
> I've tried the alternatives of 'edit-file', 'E', 'e' and 'find-file'
> but they all act the same.
>

Don't know whether this will reach the list because I'm subscribed via
gmail.com, but I can't send mail via POP3 to gmail.com and have to use
a different email account.

This works for me:

vile `cat ^Xe .zot` where .zot contains .bashrc and vile opens .bashrc.

^X = ctrl-V+ctrl-X

--
Gary Jennejohn



Re: Why doesn't this do what I expect?

2022-11-10 Thread Gary Jennejohn
On Thu, 10 Nov 2022 20:20:52 +
Chris Green  wrote:

> On Thu, Nov 10, 2022 at 08:58:14PM +0100, Gary Jennejohn wrote:
> > On Thu, 10 Nov 2022 17:55:49 +
> > Chris Green  wrote:
> >
> > > I have a file, called .editfile which contains just a filename, e.g.:-
> > >
> > > chris$ cat .editfile
> > > /srv/wiki/data/pages/telecoms/umidigi.txtchris$
> > > chris$
> > >
> > > When I open the file with vile or xvile I see (as expected) the
> > > filename and I can enter ^X-e to edit the file.
> > >
> > > However if I try the following:-
> > >
> > > chris$ vile -ce .editfile
> > >
> > > I don't get to edit the file whose name is in .editfile, I get
> > > .editfile in one window and the following in the other window
> > > (named [Binding List] :-
> > >
> > > [Reading /home/chris/.vilerc]
> > > [Read 66 lines from "../.vilerc"]
> > > [Reading /usr/share/vile/filters.rc]
> > > [Reading /usr/share/vile/modes.rc]
> > > [Reading /usr/share/vile/digraphs.rc]
> > > [Reading /home/chris/wiki/.editfile]
> > > [Read 1 line from "./.editfile"]
> > >
> > >
> > > Is there any way I can get this to work as I want?  I just want to
> > > open the file whose name is in .editfile.
> > >
> > > I've tried the alternatives of 'edit-file', 'E', 'e' and 'find-file'
> > > but they all act the same.
> > >
> >
> > Sending to the list since I'm now suscribed using my new email account.
> >
> > This works for me:
> >
> > vile `cat ^Xe .zot` where .zot contains .bashrc and vile opens .bashrc.
> >
> > ^X = ctrl-V+ctrl-X
> >
> Sadly this won't help me as I'm trying to run this from a panel
> launcher button in [x]ubuntu, thus I can't use any bash, all I can
> have is a plain text command line.
>

Good luck.  Maybe someone on the list can come up with a solution.

--
Gary Jennejohn



Re: Why doesn't this do what I expect?

2022-11-10 Thread Gary Jennejohn
On Thu, 10 Nov 2022 17:55:49 +
Chris Green  wrote:

> I have a file, called .editfile which contains just a filename, e.g.:-
>
> chris$ cat .editfile
> /srv/wiki/data/pages/telecoms/umidigi.txtchris$
> chris$
>
> When I open the file with vile or xvile I see (as expected) the
> filename and I can enter ^X-e to edit the file.
>
> However if I try the following:-
>
> chris$ vile -ce .editfile
>
> I don't get to edit the file whose name is in .editfile, I get
> .editfile in one window and the following in the other window
> (named [Binding List] :-
>
> [Reading /home/chris/.vilerc]
> [Read 66 lines from "../.vilerc"]
> [Reading /usr/share/vile/filters.rc]
> [Reading /usr/share/vile/modes.rc]
> [Reading /usr/share/vile/digraphs.rc]
> [Reading /home/chris/wiki/.editfile]
> [Read 1 line from "./.editfile"]
>
>
> Is there any way I can get this to work as I want?  I just want to
> open the file whose name is in .editfile.
>
> I've tried the alternatives of 'edit-file', 'E', 'e' and 'find-file'
> but they all act the same.
>

Sending to the list since I'm now suscribed using my new email account.

This works for me:

vile `cat ^Xe .zot` where .zot contains .bashrc and vile opens .bashrc.

^X = ctrl-V+ctrl-X

--
Gary Jennejohn



package/freebsd/*vile content is for 9.8v rather than for 9.8w

2022-08-22 Thread Gary Jennejohn
I tried to build {,x}vile9.8w for FreeBSD using what's under package/freebsd,
but all the files are for 9.8v.

This would be trivial to fix, but what's missing are the correct
TIMESTAMPs for the distfiles and I'm not sure how to get them.

The size is known and SHA256 values I can generate myself.

Note that I at one time was the FreeBSD maintainer of vile and xvile,
so I know how things should work.

If I can get the TIMESTAMP values I can generate a diff.

--
Gary Jennejohn



Re: Markdown syntax file

2022-01-05 Thread Gary Jennejohn
On Wed, 5 Jan 2022 09:26:45 +
Chris Green  wrote:

> On Tue, Jan 04, 2022 at 11:47:28PM +, Gerard Lally wrote:
> > On Tue, Jan 04, 2022 at 06:35:18PM -0500, Thomas Dickey wrote:  
> > > actually syntax highlighters are relatively easy to code -- but I spend
> > > all of my time on things that aren't that easy :-(  
> > 
> > I can't even begin to imagine. The documentation for xterm alone is
> > enough to give me a lifetime of horrors.
> > 
> > But New Year is an opportune moment to say a sincere thank you for all
> > the work you do, on vile and other software.
> > 
> > I am just returning to vile now, but I use other software like xterm all
> > the time, and am very grateful for it.
> >   
> Can I add my seasons greetings and thanks for vile too, thank you to
> all [x]vile maintainers.
> 

Me too.  I've been using it for at least 20 years and install it on
all my UNIX-based computers.  I even maintained Vile and Xvile in the
FreeBSD ports tree for a number of years, but I stopped doing that a
while ago.

-- 
Gary Jennejohn



Re: paste-from-clipboard vs register ;

2020-04-07 Thread Gary Jennejohn
On Mon, 6 Apr 2020 23:14:57 +
Wayne Cuddy  wrote:

> On Fri, Apr 03, 2020 at 08:27:19PM +0200, Gary Jennejohn wrote:
> > On Fri, 3 Apr 2020 15:45:42 +
> > Wayne Cuddy  wrote:
> >   
> > > Using the latest xvile but I don't believe the version makes a
> > > difference.
> > > 
> > > I know there is data in the clipboard.
> > > 
> > > If issue :paste-from-clibpard it works as expected.
> > > 
> > > Per the help doc.
> > > 
> > >The register name '.' contains the current selected text in xvile. 
> > > Also in
> > >xvile, the register name ';' is a synonym for the clipboard. Other
> > >versions of vile permit use of '.' and ';' as supplemental register
> > >storage.
> > > 
> > > However when data is in the clipboard and I do ";p I receive 'nothing
> > > in register ;]'.
> > >   
> > 
> > Right, '.'works but ';' does not.  So, it's either a bug in xvile or
> > in the help doc.
> > 
> > -- 
> > Gary Jennejohn
> >   
> 
> '.' does not work either for me. I have something in the clipboard,
> start xvile and attempt to paste from register '.' I receive a similar
> message as for ';'.
> 
> [Nothing in register .]
> 
> Where as :paste-from-clipboard does work.
> 
> Thank you for the response. It's not an issue for me since creating a
> binding, or using the defaults, for clipboard yank/put works fine.
> Maybe a good time to update the documentation at some point.
> 

I see.  I tested by entering some text in xvile, highlighting it with
the mouse and then doing "'.P" to insert that text on a different
line.  In this case "';P" did not work.

If I highlight some text in a terminal to get it into the X clipboard,
which I can paste using mouse button 2 in another terminal, and
then start xvile not even paste-from-clipboard works for me.

But if I use one of the insert commands I can paste text from the X
clipboard using mouse button 2 in xvile and even in vile if I hold
down the shift key while hitting mouse button 2.

-- 
Gary Jennejohn



Re: paste-from-clipboard vs register ;

2020-04-03 Thread Gary Jennejohn
On Fri, 3 Apr 2020 15:45:42 +
Wayne Cuddy  wrote:

> Using the latest xvile but I don't believe the version makes a
> difference.
> 
> I know there is data in the clipboard.
> 
> If issue :paste-from-clibpard it works as expected.
> 
> Per the help doc.
> 
>The register name '.' contains the current selected text in xvile. Also in
>xvile, the register name ';' is a synonym for the clipboard. Other
>versions of vile permit use of '.' and ';' as supplemental register
>storage.
> 
> However when data is in the clipboard and I do ";p I receive 'nothing
> in register ;]'.
> 

Right, '.'works but ';' does not.  So, it's either a bug in xvile or
in the help doc.

-- 
Gary Jennejohn



Re: Xvile command line option -xrm

2019-11-09 Thread Gary Jennejohn
On Sat, 9 Nov 2019 23:17:27 +1100
"Brendan O'Dea"  wrote:

> I don't recall having to use .Xdefaults-`hostname` in the past, but it
> certainly behaves that way now.  Maybe this is to support NFS mounted
> homedirs?  In any case, I can't think of a case where I've ever wanted to
> change the behaviour of an X program based on which host it was executed
> from.
> 
> Consider using .Xresources rather than .Xdefaults: the former are loaded
> into the X server, so are linked to a particular display environment,
> whereas the latter are set based on the client.
> 

Thanks!  .Xresources works using ssh -x.

I thought that my window manager would automatically load
.Xresources, but it doesn't do so.  Modifying my .xinitrc fixes
the problem.

[snip lots of irrelevant text]

-- 
Gary Jennejohn



Xvile command line option -xrm

2019-11-08 Thread Gary Jennejohn
Hi,

I'm using Xvile 98.t and am trying to create a bash alias using
-xrm to set various X resources.

I'm doing this because I'm starting Xvile over a ssh login and
for some reason the XVile settings in .Xdefaults are not being
used by the Xorg server on the computer from which I'm logging
in.  Using ssh -X does not help.

The target computer has just enough of Xorg installed to allow
Xvile to run.

Unfortunately, the syntax required for -xrm isn't explained
anywhere in the help file.

Any examples on how to use -xrm?

-- 
Gary Jennejohn