From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Re: Can't turn off hide-stars Date: Fri, 27 Mar 2020 15:26:53 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b07db405a1dbeca0" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:59471) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHvZM-00035A-CO for emacs-orgmode@gnu.org; Fri, 27 Mar 2020 16:27:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jHvZK-0006j7-Kj for emacs-orgmode@gnu.org; Fri, 27 Mar 2020 16:27:08 -0400 Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]:33944) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jHvZK-0006hF-C5 for emacs-orgmode@gnu.org; Fri, 27 Mar 2020 16:27:06 -0400 Received: by mail-lj1-x22c.google.com with SMTP id p10so11371331ljn.1 for ; Fri, 27 Mar 2020 13:27:06 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: Ag Ibragimov , emacs-orgmode Mailinglist --000000000000b07db405a1dbeca0 Content-Type: text/plain; charset="UTF-8" Changing my theme didn't help. The foreground-color of hide-face is set to the background color of my theme. What I suspect the problem is is the spaces and tabs used by sml-mode for indentations. I don't think other languages use a mix of spaces and tabs. They use just spaces. Is there a way to convert every tab to its size in spaces? On Fri, Mar 27, 2020 at 2:52 PM Ag Ibragimov wrote: > > > As far as "org-hide face", I'm not sure what you mean. > > You've said: > > > I can't find where orgmode is suppressing the display of leading > asterisks of headings. > > The asterisks being displayed/hidden is controlled by 'org-hide' face. Run > "M-x describe-face org-hide RET" and see what the foreground of that face > is set to. Alternatively, you can try switching to another theme and see if > that makes any difference. > > On Fri 27 Mar 2020 at 12:30, Lawrence Bottorff wrote: > > > I did have a monospace font, but changing to a vari-spaced one didn't > help. > > I can promote/demote the heading above the code block and the alignment > of > > the code shifts along with it, specifically this sort of block with a let > > > > #+begin_src sml > > fun countUpFrom1 (x : int) = > > let > > fun count (from : int, to : int) = > > if from = to > > then to :: [] > > else from :: count (from+1, to) > > in > > count (1, x) > > end > > #+end_src > > > > Note, this is copied into my gmail from below a heading 4 -- which in the > > sml code block looks good. However, as I pasted this into gmail, the > spaces > > and tabs are behaving differently, e.g., the let is exactly 4 spaces > over, > > while the second nested fun is just a single tab over, which gmail isn't > > honoring. This > > is the same behavior I'm seeing at, e.g., a level 3 heading. > > > > Again, when this file is brought up in a clean emacs -Q where only SML > > mode/ob is set up and stars are all showing there is no (spaces v. tabs) > > shifting around trouble. If I could definitively turn off star hiding I > > could get around this shifting problem. But why this is happening is very > > mysterious. As far as "org-hide face", I'm not sure what you mean. > > > > On Fri, Mar 27, 2020 at 12:19 PM Ag Ibragimov > > > wrote: > > > >> > >> Have you tried tweaking org-hide face? Maybe the problem is with the > font > >> you use, is it monospaced? > >> > >> On Thu 26 Mar 2020 at 22:40, Lawrence Bottorff > wrote: > >> > >> > I have searched high and low through my init/config and I can't find > >> where > >> > orgmode is suppressing the display of leading asterisks of headings. > I've > >> > got org-hide-leading-stars set to nil -- but it turns itself back on > >> > whenever I open an org file. I can start a clean, blank org file (no > >> > #+STARTUP hidestars/showstars) and create a few headings -- to see, > once > >> > again, the leading stars suppressed. My org-bullets is commented out > in > >> > init-land. I try an emacs -Q and of course I have leading stars on > >> > sub-headings, however deep. Yes, it's something in my init/config, > but I > >> > just can't find what's suppressing leading stars. > >> > > >> > The whole reason I'm trying to do this is I'm tinkering with babel SML > >> and > >> > whenever I have a code block under a heading -- depending on the > depth of > >> > the heading -- the SML code block can be mis-justified. And if I > >> > promote/demote the heading around with M- the SML > code > >> > alignment dances around depending on the depth. I can do C-c ' and the > >> > alignment is perfect; but come back the org file and it's wonky. So > if I > >> > set up an SML babel environment in an emacs -Q environment -- with > >> leading > >> > starts -- no problem. > >> > > >> > This is maddening, to say the least. I need to turn off suppression or > >> > figure out why suppressed stars and babel SML blocks don't mix. > >> > > >> > LB > >> > >> > >> > > --000000000000b07db405a1dbeca0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Changing my theme didn't help. The foreground-color of= hide-face is set to the background color of my theme. What I suspect the p= roblem is is the spaces and tabs used by sml-mode for indentations. I don&#= 39;t think other languages use a mix of spaces and tabs. They use just spac= es. Is there a way to convert every tab to its size in spaces?

On Fri, Mar 2= 7, 2020 at 2:52 PM Ag Ibragimov <agzam.ibragimov@gmail.com> wrote:

> As far as "org-hide face", I'm not sure what you mean.
You've said:

> I can't find where orgmode is suppressing the display of leading a= sterisks of headings.

The asterisks being displayed/hidden is controlled by 'org-hide' fa= ce. Run "M-x describe-face org-hide RET" and see what the foregro= und of that face is set to. Alternatively, you can try switching to another= theme and see if that makes any difference.

On Fri 27 Mar 2020 at 12:30, Lawrence Bottorff <borgauf@gmail.com> wrote:

> I did have a monospace font, but changing to a vari-spaced one didn= 9;t help.
> I can promote/demote the heading above the code block and the alignmen= t of
> the code shifts along with it, specifically this sort of block with a = let
>
> #+begin_src sml
> fun countUpFrom1 (x : int) =3D
>=C2=A0 =C2=A0 =C2=A0let
> fun count (from : int, to : int) =3D
>=C2=A0 =C2=A0 if from =3D to
>=C2=A0 =C2=A0 then to :: []
>=C2=A0 =C2=A0 else from :: count (from+1, to)
>=C2=A0 =C2=A0 =C2=A0in
> count (1, x)
>=C2=A0 =C2=A0 =C2=A0end
> #+end_src
>
> Note, this is copied into my gmail from below a heading 4 -- which in = the
> sml code block looks good. However, as I pasted this into gmail, the s= paces
> and tabs are behaving differently, e.g., the let is exactly 4 spaces o= ver,
> while the second nested fun is just a single tab over, which gmail isn= 't
> honoring. This
> is the same behavior I'm seeing at, e.g., a level 3 heading.
>
> Again, when this file is brought up in a clean emacs -Q where only SML=
> mode/ob is set up and stars are all showing there is no (spaces v. tab= s)
> shifting around trouble. If I could definitively turn off star hiding = I
> could get around this shifting problem. But why this is happening is v= ery
> mysterious. As far as "org-hide face", I'm not sure what= you mean.
>
> On Fri, Mar 27, 2020 at 12:19 PM Ag Ibragimov <agzam.ibragimov@gmail.com>= ;
> wrote:
>
>>
>> Have you tried tweaking org-hide face? Maybe the problem is with t= he font
>> you use, is it monospaced?
>>
>> On Thu 26 Mar 2020 at 22:40, Lawrence Bottorff <borgauf@gmail.com> wrote: >>
>> > I have searched high and low through my init/config and I can= 't find
>> where
>> > orgmode is suppressing the display of leading asterisks of he= adings. I've
>> > got org-hide-leading-stars set to nil -- but it turns itself = back on
>> > whenever I open an org file. I can start a clean, blank org f= ile (no
>> > #+STARTUP hidestars/showstars) and create a few headings -- t= o see, once
>> > again, the leading stars suppressed. My org-bullets is commen= ted out in
>> > init-land. I try an emacs -Q and of course I have leading sta= rs on
>> > sub-headings, however deep. Yes, it's something in my ini= t/config, but I
>> > just can't find what's suppressing leading stars.
>> >
>> > The whole reason I'm trying to do this is I'm tinkeri= ng with babel SML
>> and
>> > whenever I have a code block under a heading -- depending on = the depth of
>> > the heading -- the SML code block can be mis-justified. And i= f I
>> > promote/demote the heading around with M-<right/left arrow= > the SML code
>> > alignment dances around depending on the depth. I can do C-c = ' and the
>> > alignment is perfect; but come back the org file and it's= wonky. So if I
>> > set up an SML babel environment in an emacs -Q environment --= with
>> leading
>> > starts -- no problem.
>> >
>> > This is maddening, to say the least. I need to turn off suppr= ession or
>> > figure out why suppressed stars and babel SML blocks don'= t mix.
>> >
>> > LB
>>
>>
>>

--000000000000b07db405a1dbeca0--