Re: Line Numbers

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

Is there a variable that will force the line numbers on at startup, eith=
er global or .qerc ?  Reading variables.c doesn=E2=80=99t seem like ther=
e is one.

--=20
Marc Wilson
[email protected]


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 tha=
t =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 com=
mand 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 line=
 counter in the mode line.
>>>>=20
>>>> --=20
>>>> Marc Wilson
>>>> [email protected]

--00b6312fc9fe4eab8895ddaf4e206dae
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>Is there a vari=
able that will force the line numbers on at startup, either global or .q=
erc ? &nbsp;Reading variables.c doesn=E2=80=99t seem like there is one.<=
/div><div><br></div><div id=3D"sig39065985"><div class=3D"signature">--&=
nbsp;<br></div><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 3:39 PM, Charlie Gordon wrote:<br></div><blockquote type=3D"cite" id=3D=
"qt" style=3D"word-wrap:break-word;line-break:after-white-space;"><div>I=
ndeed QE_STYLE_GUTTER is the style used for the line numbers:<br></div><=
div class=3D"qt-"><br></div><div class=3D"qt-"><div class=3D"qt-">&nbsp;=
 &nbsp; /* line numbers */<br></div><div class=3D"qt-">&nbsp; &nbsp; if =
(ds-&gt;line_numbers) {<br></div><div class=3D"qt-">&nbsp; &nbsp; &nbsp;=
 &nbsp; ds-&gt;style =3D QE_STYLE_GUTTER;<br></div><div class=3D"qt-">&n=
bsp; &nbsp; &nbsp; &nbsp; display_printf(ds, -1, -1, "%6d &nbsp;", line_=
num + 1);<br></div><div class=3D"qt-">&nbsp; &nbsp; &nbsp; &nbsp; ds-&gt=
;style =3D 0;<br></div><div class=3D"qt-">&nbsp; &nbsp; }<br></div><div =
class=3D"qt-"><br></div><div class=3D"qt-">with a default definition of<=
br></div><div class=3D"qt-"><br></div><div class=3D"qt-"><div class=3D"q=
t-">&nbsp; &nbsp; STYLE_DEF(QE_STYLE_GUTTER, "gutter", /* #f84400 on gre=
y25 */<br></div><div class=3D"qt-">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &n=
bsp; &nbsp; QERGB(0xf8, 0x44, 0x00), QERGB(0x3f, 0x3f, 0x3f), 0, 0)<br><=
/div></div><div class=3D"qt-"><br></div><div class=3D"qt-">Chqrlie.<br><=
/div><div class=3D"qt-"><br></div><div><blockquote type=3D"cite" class=3D=
"qt-"><div class=3D"qt-">On 3 Sep 2022, at 00:34, Marc Wilson &lt;<a hre=
f=3D"mailto:[email protected]" class=3D"qt-">[email protected]</a>&gt;=
 wrote:<br></div><div><br></div><div class=3D"qt-"><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-">What style element name is the numbers =
themselves? &nbsp;I figured out that =E2=80=9Cgutter=E2=80=9D is the tra=
y the numbers are in.<br></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;text-indent:0px;text-transform:no=
ne;white-space:normal;word-spacing:0px;-webkit-text-stroke-width:0px;" c=
lass=3D"qt-"><br></div><div id=3D"qt-sig39065985" 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-"><div class=3D"qt-signature">--&nbsp;<br></div=
><div class=3D"qt-signature">Marc Wilson<br></div><div class=3D"qt-signa=
ture"><a href=3D"mailto:[email protected]" class=3D"qt-">posguy99@gmail=
.com</a><br></div></div><div style=3D"font-family:Helvetica;font-size:12=
px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-=
spacing:normal;text-align:start;text-indent:0px;text-transform:none;whit=
e-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: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-"><b=
r></div><div style=3D"font-family:Helvetica;font-size:12px;font-style:no=
rmal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;t=
ext-align:start;text-indent:0px;text-transform:none;white-space:normal;w=
ord-spacing:0px;-webkit-text-stroke-width:0px;" class=3D"qt-">On Fri, Se=
p 2, 2022, at 2:43 PM, Charlie Gordon wrote:<br></div><blockquote type=3D=
"cite" id=3D"qt-qt" style=3D"font-family:Helvetica;font-size:12px;font-s=
tyle:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:n=
ormal;text-align:start;text-indent:0px;text-transform:none;white-space:n=
ormal;word-spacing:0px;-webkit-text-stroke-width:0px;word-wrap:break-wor=
d;" class=3D"qt-"><div class=3D"qt-qt-">Hello Marc,<br></div><div class=3D=
"qt-qt-"><br></div><div class=3D"qt-qt-">You can toggle line numbers dis=
play with the toggle-line-numbers command bound to "C-x RET l=E2=80=9D a=
nd "C-c l=E2=80=9D<br></div><div class=3D"qt-qt-"><br></div><div class=3D=
"qt-qt-">This command can be found with the apropos command: C-h a line =
RET<br></div><div class=3D"qt-qt-"><br></div><div class=3D"qt-qt-">Enjoy=
!<br></div><div class=3D"qt-qt-"><br></div><div class=3D"qt-qt-">Chqrlie=
<br></div><div class=3D"qt-qt-"><div class=3D"qt-"><br></div><div class=3D=
"qt-qt-"><div class=3D"qt-"><blockquote type=3D"cite" class=3D"qt-qt-"><=
div class=3D"qt-qt-">On 2 Sep 2022, at 20:15, Marc Wilson &lt;<a href=3D=
"mailto:[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-styl=
e:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:norm=
al;text-align:start;text-indent:0px;text-transform:none;white-space:norm=
al;word-spacing:0px;-webkit-text-stroke-width:0px;">Can Qemacs number li=
nes onscreen? &nbsp;I realize there=E2=80=99s a line counter in the mode=
 line.<br></div><div class=3D"qt-qt-" style=3D"font-family:Helvetica;fon=
t-size:12px;font-style:normal;font-variant-caps:normal;font-weight:norma=
l;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 id=3D"qt-qt-sig39065985" class=3D"qt-qt-" style=3D"font-=
family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:norm=
al;font-weight:normal;letter-spacing:normal;text-align:start;text-indent=
:0px;text-transform:none;white-space:normal;word-spacing:0px;-webkit-tex=
t-stroke-width:0px;"><div class=3D"qt-qt-signature">--&nbsp;<br></div><d=
iv class=3D"qt-qt-signature">Marc Wilson<br></div><div class=3D"qt-qt-si=
gnature"><a href=3D"mailto:[email protected]" class=3D"qt-qt-">posguy99=
@gmail.com</a><br></div></div></div></blockquote></div></div></div></blo=
ckquote></div></blockquote></div></div></blockquote><div><br></div></bod=
y></html>
--00b6312fc9fe4eab8895ddaf4e206dae--