Re: Line Numbers

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

That does not produce an error, but does not work to turn them on, eithe=
r.

--=20
Marc Wilson
[email protected]


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, e=
ither global or .qerc ?  Reading variables.c doesn=E2=80=99t seem like t=
here 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 t=
hat =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 c=
ommand 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 li=
ne counter in the mode line.
>>>>>>=20
>>>>>> --=20
>>>>>> Marc Wilson
>>>>>> [email protected]

--89b9adb81fbe43f187a368e6e608be1e
Content-Type: text/html;charset=utf-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html><html><head><title></title><style type=3D"text/css">p.Mso=
Normal,p.MsoNoSpacing{margin:0}</style></head><body><div>That does not p=
roduce an error, but does not work to turn them on, either.</div><div><b=
r></div><div id=3D"sig39065985"><div class=3D"signature">--&nbsp;<br></d=
iv><div 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:02 PM=
, Charlie Gordon wrote:<br></div><blockquote type=3D"cite" id=3D"qt" sty=
le=3D"word-wrap:break-word;line-break:after-white-space;"><div>There is =
not, but you can add a line in your ~/.qe/config file:<br></div><div cla=
ss=3D"qt-"><br></div><div class=3D"qt-">toggle_line_numbers();<br></div>=
<div class=3D"qt-"><br></div><div class=3D"qt-">Chqrlie<br></div><div cl=
ass=3D"qt-"><div><br></div><div><blockquote type=3D"cite" class=3D"qt-">=
<div class=3D"qt-">On 3 Sep 2022, at 00:46, Marc Wilson &lt;<a href=3D"m=
ailto:[email protected]" class=3D"qt-">[email protected]</a>&gt; wrote=
:<br></div><div><br></div><div class=3D"qt-"><div style=3D"font-family:H=
elvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-=
weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;tex=
t-transform:none;white-space:normal;word-spacing:0px;-webkit-text-stroke=
-width:0px;" class=3D"qt-">Is there a variable that will force the line =
numbers on at startup, either global or .qerc ? &nbsp;Reading variables.=
c doesn=E2=80=99t seem like there is one.<br></div><div 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;" class=3D"qt-"><br></div><div id=3D"qt-sig39065985" st=
yle=3D"font-family:Helvetica;font-size:12px;font-style:normal;font-varia=
nt-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;" class=3D"qt-"><div class=3D"qt-signatur=
e">--&nbsp;<br></div><div class=3D"qt-signature">Marc Wilson<br></div><d=
iv class=3D"qt-signature"><a href=3D"mailto:[email protected]" class=3D=
"qt-">[email protected]</a><br></div></div><div style=3D"font-family:He=
lvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-w=
eight: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-"><br></div><div style=3D"font-family:Helvetica;=
font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:no=
rmal;letter-spacing:normal;text-align:start;text-indent:0px;text-transfo=
rm:none;white-space:normal;word-spacing:0px;-webkit-text-stroke-width:0p=
x;" class=3D"qt-"><br></div><div style=3D"font-family:Helvetica;font-siz=
e:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;let=
ter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;=
white-space:normal;word-spacing:0px;-webkit-text-stroke-width:0px;" clas=
s=3D"qt-">On Fri, Sep 2, 2022, at 3:39 PM, Charlie Gordon wrote:<br></di=
v><blockquote type=3D"cite" id=3D"qt-qt" style=3D"font-family:Helvetica;=
font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:no=
rmal;letter-spacing:normal;text-align:start;text-indent:0px;text-transfo=
rm:none;white-space:normal;word-spacing:0px;-webkit-text-stroke-width:0p=
x;word-wrap:break-word;" class=3D"qt-"><div class=3D"qt-">Indeed QE_STYL=
E_GUTTER is the style used for the line numbers:<br></div><div class=3D"=
qt-qt-"><br></div><div class=3D"qt-qt-"><div class=3D"qt-qt-">&nbsp; &nb=
sp; /* line numbers */<br></div><div class=3D"qt-qt-">&nbsp; &nbsp; if (=
ds-&gt;line_numbers) {<br></div><div class=3D"qt-qt-">&nbsp; &nbsp; &nbs=
p; &nbsp; ds-&gt;style =3D QE_STYLE_GUTTER;<br></div><div class=3D"qt-qt=
-">&nbsp; &nbsp; &nbsp; &nbsp; display_printf(ds, -1, -1, "%6d &nbsp;", =
line_num + 1);<br></div><div class=3D"qt-qt-">&nbsp; &nbsp; &nbsp; &nbsp=
; ds-&gt;style =3D 0;<br></div><div class=3D"qt-qt-">&nbsp; &nbsp; }<br>=
</div><div class=3D"qt-qt-"><br></div><div class=3D"qt-qt-">with a defau=
lt definition of<br></div><div class=3D"qt-qt-"><br></div><div class=3D"=
qt-qt-"><div class=3D"qt-qt-">&nbsp; &nbsp; STYLE_DEF(QE_STYLE_GUTTER, "=
gutter", /* #f84400 on grey25 */<br></div><div class=3D"qt-qt-">&nbsp; &=
nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QERGB(0xf8, 0x44, 0x00), QERGB(=
0x3f, 0x3f, 0x3f), 0, 0)<br></div></div><div class=3D"qt-qt-"><br></div>=
<div class=3D"qt-qt-">Chqrlie.<br></div><div class=3D"qt-qt-"><br></div>=
<div class=3D"qt-"><blockquote type=3D"cite" class=3D"qt-qt-"><div class=
=3D"qt-qt-">On 3 Sep 2022, at 00:34, Marc Wilson &lt;<a href=3D"mailto:p=
[email protected]" class=3D"qt-qt-">[email protected]</a>&gt; wrote:<br=
></div><div class=3D"qt-"><br></div><div class=3D"qt-qt-"><div class=3D"=
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;">What style element name is th=
e numbers themselves? &nbsp;I figured out that =E2=80=9Cgutter=E2=80=9D =
is the tray the numbers are in.<br></div><div class=3D"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-i=
ndent:0px;text-transform:none;white-space:normal;word-spacing:0px;-webki=
t-text-stroke-width:0px;"><br></div><div id=3D"qt-qt-sig39065985" class=3D=
"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"qt-qt-signatur=
e">--&nbsp;<br></div><div class=3D"qt-qt-signature">Marc Wilson<br></div=
><div class=3D"qt-qt-signature"><a href=3D"mailto:[email protected]" cl=
ass=3D"qt-qt-">[email protected]</a><br></div></div><div class=3D"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-spacin=
g:0px;-webkit-text-stroke-width:0px;"><br></div><div class=3D"qt-qt-" st=
yle=3D"font-family:Helvetica;font-size:12px;font-style:normal;font-varia=
nt-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;"><br></div><div class=3D"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;">On Fri, Sep 2, 2022, at 2:43 PM, Charlie Gord=
on wrote:<br></div><blockquote type=3D"cite" id=3D"qt-qt-qt" class=3D"qt=
-qt-" style=3D"font-family:Helvetica;font-size:12px;font-style:normal;fo=
nt-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-ali=
gn:start;text-indent:0px;text-transform:none;white-space:normal;word-spa=
cing:0px;-webkit-text-stroke-width:0px;word-wrap:break-word;"><div class=
=3D"qt-qt-qt-">Hello Marc,<br></div><div class=3D"qt-qt-qt-"><br></div><=
div class=3D"qt-qt-qt-">You can toggle line numbers display with the tog=
gle-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-"><br></div><div class=3D"qt-qt-qt-">Th=
is command can be found with the apropos command: C-h a line RET<br></di=
v><div class=3D"qt-qt-qt-"><br></div><div class=3D"qt-qt-qt-">Enjoy!<br>=
</div><div class=3D"qt-qt-qt-"><br></div><div class=3D"qt-qt-qt-">Chqrli=
e<br></div><div class=3D"qt-qt-qt-"><div class=3D"qt-qt-"><br></div><div=
 class=3D"qt-qt-qt-"><div class=3D"qt-qt-"><blockquote type=3D"cite" cla=
ss=3D"qt-qt-qt-"><div class=3D"qt-qt-qt-">On 2 Sep 2022, at 20:15, Marc =
Wilson &lt;<a href=3D"mailto:[email protected]" class=3D"qt-qt-qt-">pos=
[email protected]</a>&gt; wrote:<br></div><div class=3D"qt-qt-"><br></div>=
<div class=3D"qt-qt-qt-"><div class=3D"qt-qt-qt-" style=3D"font-family:H=
elvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-=
weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;tex=
t-transform:none;white-space:normal;word-spacing:0px;-webkit-text-stroke=
-width:0px;">Can Qemacs number lines onscreen? &nbsp;I realize there=E2=80=
=99s a line counter in the mode line.<br></div><div class=3D"qt-qt-qt-" =
style=3D"font-family:Helvetica;font-size:12px;font-style:normal;font-var=
iant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:sta=
rt;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0=
px;-webkit-text-stroke-width:0px;"><br></div><div id=3D"qt-qt-qt-sig3906=
5985" class=3D"qt-qt-qt-" style=3D"font-family:Helvetica;font-size:12px;=
font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spa=
cing:normal;text-align:start;text-indent:0px;text-transform:none;white-s=
pace: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-qt-qt-signature"><a href=3D"mailt=
o:[email protected]" class=3D"qt-qt-qt-">[email protected]</a><br></di=
v></div></div></blockquote></div></div></div></blockquote></div></blockq=
uote></div></div></blockquote></div></blockquote></div></div></blockquot=
e><div><br></div></body></html>
--89b9adb81fbe43f187a368e6e608be1e--