Re: Line Numbers

"Marc Wilson" <[email protected]> Fri, 02 Sep 2022 16:16:45 -0700
Newsgroups gmane.editors.qemacs.devel
Message-ID <[email protected]>
--6adf75524dc64b98a4e714ab16402be1
Content-Type: text/plain;charset=utf-8
Content-Transfer-Encoding: quoted-printable

Also, it=E2=80=99s in the M-x TAB list as a function, but executing it f=
rom there doesn=E2=80=99t work either.  The keybinding does.

--=20
Marc Wilson
[email protected]


On Fri, Sep 2, 2022, at 4:08 PM, Marc Wilson wrote:
> That does not produce an error, but does not work to turn them on, eit=
her.
>=20
> --=20
> Marc Wilson
> [email protected]
>=20
>=20
> On Fri, Sep 2, 2022, at 4:02 PM, Charlie Gordon wrote:
>> There is not, but you can add a line in your ~/.qe/config file:
>>=20
>> toggle_line_numbers();
>>=20
>> Chqrlie
>>=20
>>> On 3 Sep 2022, at 00:46, Marc Wilson <[email protected]> wrote:
>>>=20
>>> Is there a variable that will force the line numbers on at startup, =
either global or .qerc ?  Reading variables.c doesn=E2=80=99t seem like =
there is one.
>>>=20
>>> --=20
>>> Marc Wilson
>>> [email protected]
>>>=20
>>>=20
>>> On Fri, Sep 2, 2022, at 3:39 PM, Charlie Gordon wrote:
>>>> Indeed QE_STYLE_GUTTER is the style used for the line numbers:
>>>>=20
>>>>     /* line numbers */
>>>>     if (ds->line_numbers) {
>>>>         ds->style =3D QE_STYLE_GUTTER;
>>>>         display_printf(ds, -1, -1, "%6d  ", line_num + 1);
>>>>         ds->style =3D 0;
>>>>     }
>>>>=20
>>>> with a default definition of
>>>>=20
>>>>     STYLE_DEF(QE_STYLE_GUTTER, "gutter", /* #f84400 on grey25 */
>>>>               QERGB(0xf8, 0x44, 0x00), QERGB(0x3f, 0x3f, 0x3f), 0, =
0)
>>>>=20
>>>> Chqrlie.
>>>>=20
>>>>> On 3 Sep 2022, at 00:34, Marc Wilson <[email protected]> wrote:
>>>>>=20
>>>>> What style element name is the numbers themselves?  I figured out =
that =E2=80=9Cgutter=E2=80=9D is the tray the numbers are in.
>>>>>=20
>>>>> --=20
>>>>> Marc Wilson
>>>>> [email protected]
>>>>>=20
>>>>>=20
>>>>> On Fri, Sep 2, 2022, at 2:43 PM, Charlie Gordon wrote:
>>>>>> Hello Marc,
>>>>>>=20
>>>>>> You can toggle line numbers display with the toggle-line-numbers =
command bound to "C-x RET l=E2=80=9D and "C-c l=E2=80=9D
>>>>>>=20
>>>>>> This command can be found with the apropos command: C-h a line RET
>>>>>>=20
>>>>>> Enjoy!
>>>>>>=20
>>>>>> Chqrlie
>>>>>>=20
>>>>>>> On 2 Sep 2022, at 20:15, Marc Wilson <[email protected]> wrote:
>>>>>>>=20
>>>>>>> Can Qemacs number lines onscreen?  I realize there=E2=80=99s a l=
ine counter in the mode line.
>>>>>>>=20
>>>>>>> --=20
>>>>>>> Marc Wilson
>>>>>>> [email protected]
>=20
--6adf75524dc64b98a4e714ab16402be1
Content-Type: text/html;charset=utf-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html><html><head><title></title><style type=3D"text/css">
p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Also, it=E2=
=80=99s in the M-x TAB list as a function, but executing it from there d=
oesn=E2=80=99t work either. &nbsp;The keybinding does.</div><div><br></d=
iv><div id=3D"sig39065985"><div class=3D"signature">--&nbsp;<br></div><d=
iv class=3D"signature">Marc Wilson<br></div><div class=3D"signature"><a =
href=3D"mailto:[email protected]">[email protected]</a><br></div></div=
><div><br></div><div><br></div><div>On Fri, Sep 2, 2022, at 4:08 PM, Mar=
c Wilson wrote:<br></div><blockquote type=3D"cite" id=3D"qt" style=3D"">=
<div>That does not produce an error, but does not work to turn them on, =
either.<br></div><div><br></div><div id=3D"qt-sig39065985"><div class=3D=
"qt-signature">--&nbsp;<br></div><div class=3D"qt-signature">Marc Wilson=
<br></div><div class=3D"qt-signature"><a href=3D"mailto:[email protected]=
om">[email protected]</a><br></div></div><div><br></div><div><br></div>=
<div>On Fri, Sep 2, 2022, at 4:02 PM, Charlie Gordon wrote:<br></div><bl=
ockquote type=3D"cite" id=3D"qt-qt" style=3D"word-wrap:break-word;line-b=
reak:after-white-space;"><div>There is not, but you can add a line in yo=
ur ~/.qe/config file:<br></div><div class=3D"qt-qt-"><br></div><div clas=
s=3D"qt-qt-">toggle_line_numbers();<br></div><div class=3D"qt-qt-"><br><=
/div><div class=3D"qt-qt-">Chqrlie<br></div><div class=3D"qt-qt-"><div><=
br></div><div><blockquote type=3D"cite" class=3D"qt-qt-"><div class=3D"q=
t-qt-">On 3 Sep 2022, at 00:46, Marc Wilson &lt;<a href=3D"mailto:posguy=
[email protected]" class=3D"qt-qt-">[email protected]</a>&gt; wrote:<br></di=
v><div><br></div><div class=3D"qt-qt-"><div style=3D"font-family:Helveti=
ca;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight=
:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-tran=
sform:none;white-space:normal;word-spacing:0px;-webkit-text-stroke-width=
:0px;" class=3D"qt-qt-">Is there a variable that will force the line num=
bers on at startup, either global or .qerc ? &nbsp;Reading variables.c d=
oesn=E2=80=99t seem like there is one.<br></div><div style=3D"font-famil=
y:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;fo=
nt-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;=
text-transform:none;white-space:normal;word-spacing:0px;-webkit-text-str=
oke-width:0px;" class=3D"qt-qt-"><br></div><div id=3D"qt-qt-sig39065985"=
 style=3D"font-family:Helvetica;font-size:12px;font-style:normal;font-va=
riant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:st=
art;text-indent:0px;text-transform:none;white-space:normal;word-spacing:=
0px;-webkit-text-stroke-width:0px;" class=3D"qt-qt-"><div class=3D"qt-qt=
-signature">--&nbsp;<br></div><div class=3D"qt-qt-signature">Marc Wilson=
<br></div><div class=3D"qt-qt-signature"><a href=3D"mailto:posguy99@gmai=
l.com" class=3D"qt-qt-">[email protected]</a><br></div></div><div style=
=3D"font-family:Helvetica;font-size:12px;font-style:normal;font-variant-=
caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;te=
xt-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;-w=
ebkit-text-stroke-width:0px;" class=3D"qt-qt-"><br></div><div style=3D"f=
ont-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:=
normal;font-weight:normal;letter-spacing:normal;text-align:start;text-in=
dent:0px;text-transform:none;white-space:normal;word-spacing:0px;-webkit=
-text-stroke-width:0px;" class=3D"qt-qt-"><br></div><div style=3D"font-f=
amily:Helvetica;font-size:12px;font-style:normal;font-variant-caps:norma=
l;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:=
0px;text-transform:none;white-space:normal;word-spacing:0px;-webkit-text=
-stroke-width:0px;" class=3D"qt-qt-">On Fri, Sep 2, 2022, at 3:39 PM, Ch=
arlie Gordon wrote:<br></div><blockquote type=3D"cite" id=3D"qt-qt-qt" s=
tyle=3D"font-family:Helvetica;font-size:12px;font-style:normal;font-vari=
ant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:star=
t;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0p=
x;-webkit-text-stroke-width:0px;word-wrap:break-word;" class=3D"qt-qt-">=
<div class=3D"qt-qt-">Indeed QE_STYLE_GUTTER is the style used for the l=
ine numbers:<br></div><div class=3D"qt-qt-qt-"><br></div><div class=3D"q=
t-qt-qt-"><div class=3D"qt-qt-qt-">&nbsp; &nbsp; /* line numbers */<br><=
/div><div class=3D"qt-qt-qt-">&nbsp; &nbsp; if (ds-&gt;line_numbers) {<b=
r></div><div class=3D"qt-qt-qt-">&nbsp; &nbsp; &nbsp; &nbsp; ds-&gt;styl=
e =3D QE_STYLE_GUTTER;<br></div><div class=3D"qt-qt-qt-">&nbsp; &nbsp; &=
nbsp; &nbsp; display_printf(ds, -1, -1, "%6d &nbsp;", line_num + 1);<br>=
</div><div class=3D"qt-qt-qt-">&nbsp; &nbsp; &nbsp; &nbsp; ds-&gt;style =
=3D 0;<br></div><div class=3D"qt-qt-qt-">&nbsp; &nbsp; }<br></div><div c=
lass=3D"qt-qt-qt-"><br></div><div class=3D"qt-qt-qt-">with a default def=
inition of<br></div><div class=3D"qt-qt-qt-"><br></div><div class=3D"qt-=
qt-qt-"><div class=3D"qt-qt-qt-">&nbsp; &nbsp; STYLE_DEF(QE_STYLE_GUTTER=
, "gutter", /* #f84400 on grey25 */<br></div><div class=3D"qt-qt-qt-">&n=
bsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QERGB(0xf8, 0x44, 0x00), =
QERGB(0x3f, 0x3f, 0x3f), 0, 0)<br></div></div><div class=3D"qt-qt-qt-"><=
br></div><div class=3D"qt-qt-qt-">Chqrlie.<br></div><div class=3D"qt-qt-=
qt-"><br></div><div class=3D"qt-qt-"><blockquote type=3D"cite" class=3D"=
qt-qt-qt-"><div class=3D"qt-qt-qt-">On 3 Sep 2022, at 00:34, Marc Wilson=
 &lt;<a href=3D"mailto:[email protected]" class=3D"qt-qt-qt-">posguy99@=
gmail.com</a>&gt; wrote:<br></div><div class=3D"qt-qt-"><br></div><div c=
lass=3D"qt-qt-qt-"><div class=3D"qt-qt-qt-" style=3D"font-family:Helveti=
ca;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight=
:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-tran=
sform:none;white-space:normal;word-spacing:0px;-webkit-text-stroke-width=
:0px;">What style element name is the numbers themselves? &nbsp;I figure=
d out that =E2=80=9Cgutter=E2=80=9D is the tray the numbers are in.<br><=
/div><div class=3D"qt-qt-qt-" style=3D"font-family:Helvetica;font-size:1=
2px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter=
-spacing:normal;text-align:start;text-indent:0px;text-transform:none;whi=
te-space:normal;word-spacing:0px;-webkit-text-stroke-width:0px;"><br></d=
iv><div id=3D"qt-qt-qt-sig39065985" class=3D"qt-qt-qt-" style=3D"font-fa=
mily:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal=
;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0=
px;text-transform:none;white-space:normal;word-spacing:0px;-webkit-text-=
stroke-width:0px;"><div class=3D"qt-qt-qt-signature">--&nbsp;<br></div><=
div class=3D"qt-qt-qt-signature">Marc Wilson<br></div><div class=3D"qt-q=
t-qt-signature"><a href=3D"mailto:[email protected]" class=3D"qt-qt-qt-=
">[email protected]</a><br></div></div><div class=3D"qt-qt-qt-" style=3D=
"font-family:Helvetica;font-size:12px;font-style:normal;font-variant-cap=
s:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-=
indent:0px;text-transform:none;white-space:normal;word-spacing:0px;-webk=
it-text-stroke-width:0px;"><br></div><div class=3D"qt-qt-qt-" style=3D"f=
ont-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:=
normal;font-weight:normal;letter-spacing:normal;text-align:start;text-in=
dent:0px;text-transform:none;white-space:normal;word-spacing:0px;-webkit=
-text-stroke-width:0px;"><br></div><div class=3D"qt-qt-qt-" style=3D"fon=
t-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:no=
rmal;font-weight:normal;letter-spacing:normal;text-align:start;text-inde=
nt:0px;text-transform:none;white-space:normal;word-spacing:0px;-webkit-t=
ext-stroke-width:0px;">On Fri, Sep 2, 2022, at 2:43 PM, Charlie Gordon w=
rote:<br></div><blockquote type=3D"cite" id=3D"qt-qt-qt-qt" class=3D"qt-=
qt-qt-" style=3D"font-family:Helvetica;font-size:12px;font-style:normal;=
font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-a=
lign:start;text-indent:0px;text-transform:none;white-space:normal;word-s=
pacing:0px;-webkit-text-stroke-width:0px;word-wrap:break-word;"><div cla=
ss=3D"qt-qt-qt-qt-">Hello Marc,<br></div><div class=3D"qt-qt-qt-qt-"><br=
></div><div class=3D"qt-qt-qt-qt-">You can toggle line numbers display w=
ith the toggle-line-numbers command bound to "C-x RET l=E2=80=9D and "C-=
c l=E2=80=9D<br></div><div class=3D"qt-qt-qt-qt-"><br></div><div class=3D=
"qt-qt-qt-qt-">This command can be found with the apropos command: C-h a=
 line RET<br></div><div class=3D"qt-qt-qt-qt-"><br></div><div class=3D"q=
t-qt-qt-qt-">Enjoy!<br></div><div class=3D"qt-qt-qt-qt-"><br></div><div =
class=3D"qt-qt-qt-qt-">Chqrlie<br></div><div class=3D"qt-qt-qt-qt-"><div=
 class=3D"qt-qt-qt-"><br></div><div class=3D"qt-qt-qt-qt-"><div class=3D=
"qt-qt-qt-"><blockquote type=3D"cite" class=3D"qt-qt-qt-qt-"><div class=3D=
"qt-qt-qt-qt-">On 2 Sep 2022, at 20:15, Marc Wilson &lt;<a href=3D"mailt=
o:[email protected]" class=3D"qt-qt-qt-qt-">[email protected]</a>&gt; =
wrote:<br></div><div class=3D"qt-qt-qt-"><br></div><div class=3D"qt-qt-q=
t-qt-"><div class=3D"qt-qt-qt-qt-" style=3D"font-family:Helvetica;font-s=
ize:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;l=
etter-spacing:normal;text-align:start;text-indent:0px;text-transform:non=
e;white-space:normal;word-spacing:0px;-webkit-text-stroke-width:0px;">Ca=
n Qemacs number lines onscreen? &nbsp;I realize there=E2=80=99s a line c=
ounter in the mode line.<br></div><div class=3D"qt-qt-qt-qt-" style=3D"f=
ont-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:=
normal;font-weight:normal;letter-spacing:normal;text-align:start;text-in=
dent:0px;text-transform:none;white-space:normal;word-spacing:0px;-webkit=
-text-stroke-width:0px;"><br></div><div id=3D"qt-qt-qt-qt-sig39065985" c=
lass=3D"qt-qt-qt-qt-" style=3D"font-family:Helvetica;font-size:12px;font=
-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing=
:normal;text-align:start;text-indent:0px;text-transform:none;white-space=
:normal;word-spacing:0px;-webkit-text-stroke-width:0px;"><div class=3D"q=
t-qt-qt-qt-signature">--&nbsp;<br></div><div class=3D"qt-qt-qt-qt-signat=
ure">Marc Wilson<br></div><div class=3D"qt-qt-qt-qt-signature"><a href=3D=
"mailto:[email protected]" class=3D"qt-qt-qt-qt-">[email protected]</a=
><br></div></div></div></blockquote></div></div></div></blockquote></div=
></blockquote></div></div></blockquote></div></blockquote></div></div></=
blockquote><div><br></div></blockquote></body></html>
--6adf75524dc64b98a4e714ab16402be1--