emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* I can't make work 'startup hidestars'
@ 2012-08-25 10:08 Ashfaq
  2012-08-25 10:15 ` Bastien
  2012-12-05 13:40 ` Daniel E. Doherty
  0 siblings, 2 replies; 10+ messages in thread
From: Ashfaq @ 2012-08-25 10:08 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 382 bytes --]

Hi All,

I have installed slacwark13.7 and emacs 23.3. Then I've installed the
orgmode 7.9.3. This is my .emacs initialization file:

(require 'org-install)

Then, in a org file, I added the following lines to have cleaner view

#+STARTUP: indent
#+STARTUP: hidestars


But the starts are not hidden. I can see even extra stars. Could anyone
please help me?


-- 
Sincerely,
Ashfaq

[-- Attachment #2: Type: text/html, Size: 471 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: I can't make work 'startup hidestars'
  2012-08-25 10:08 I can't make work 'startup hidestars' Ashfaq
@ 2012-08-25 10:15 ` Bastien
  2012-08-25 12:44   ` Ashfaq
  2012-12-05 13:40 ` Daniel E. Doherty
  1 sibling, 1 reply; 10+ messages in thread
From: Bastien @ 2012-08-25 10:15 UTC (permalink / raw)
  To: Ashfaq; +Cc: emacs-orgmode

Hi Ashfaq,

Ashfaq <quazi.ashfaq@gmail.com> writes:

> I have installed slacwark13.7 and emacs 23.3. Then I've installed the
> orgmode 7.9.3. This is my .emacs initialization file:
          ^^^^^^

The version is not 7.9.3 but 7.9.  

The "3" in "org-7.9-3-ga986d3" means that there has been 3 commits since
the release of the version tagged release_7.9.

>
> (require 'org-install)
>
> Then, in a org file, I added the following lines to have cleaner view
>
> #+STARTUP: indent
> #+STARTUP: hidestars
>
>
> But the starts are not hidden. I can see even extra stars. Could
> anyone please help me?

I can't reproduce this with emacs-23.4 -Q and I don't have Emacs 23.3.

Does this happen with emacs-23.3 -Q or with your config?

Can anyone else reproduce this?

-- 
 Bastien

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: I can't make work 'startup hidestars'
  2012-08-25 10:15 ` Bastien
@ 2012-08-25 12:44   ` Ashfaq
  2012-08-25 13:03     ` Charles Philip Chan
  0 siblings, 1 reply; 10+ messages in thread
From: Ashfaq @ 2012-08-25 12:44 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 534 bytes --]

I am testing orgmode in Ubuntu 12.04. The host is a VM in oracle virtual
box (ver 4.1.18) in Windows 7. Here the emacs version is 23.3.1. I am using
the default org-mode here.

Within the host, I opened an org file with the emacs. Now it can hide the
stars.
However, interestingly, when I ssh-ed into the host with 'putty' and opened
the same file with emacs, it shows the stars.

Then I tried it in the latest cygwin. Here, the stars are not hidden.

The org flie has the following entry --

#+STARTUP: hidestars


Sincerely,
Ashfaq

[-- Attachment #2: Type: text/html, Size: 638 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: I can't make work 'startup hidestars'
  2012-08-25 12:44   ` Ashfaq
@ 2012-08-25 13:03     ` Charles Philip Chan
  2012-08-25 15:18       ` Ashfaq
  0 siblings, 1 reply; 10+ messages in thread
From: Charles Philip Chan @ 2012-08-25 13:03 UTC (permalink / raw)
  To: Org-mode

[-- Attachment #1: Type: text/plain, Size: 497 bytes --]

Ashfaq <quazi.ashfaq@gmail.com> writes:

> Within the host, I opened an org file with the emacs. Now it can hide
> the stars.  However, interestingly, when I ssh-ed into the host with
> 'putty' and opened the same file with emacs, it shows the stars.

Do they have different colour backgrounds? Hide star is really just a
hack by setting the stars to the same colour as the background.

Charles

-- 
"It's God.  No, not Richard Stallman, or Linus Torvalds, but God."
(By Matt Welsh)

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: I can't make work 'startup hidestars'
  2012-08-25 13:03     ` Charles Philip Chan
@ 2012-08-25 15:18       ` Ashfaq
  2012-08-25 16:31         ` Charles Philip Chan
  0 siblings, 1 reply; 10+ messages in thread
From: Ashfaq @ 2012-08-25 15:18 UTC (permalink / raw)
  To: Charles Philip Chan; +Cc: Org-mode

[-- Attachment #1: Type: text/plain, Size: 664 bytes --]

On Sat, Aug 25, 2012 at 7:03 PM, Charles Philip Chan <cpchan@bell.net>wrote:

> Ashfaq <quazi.ashfaq@gmail.com> writes:
>
> > Within the host, I opened an org file with the emacs. Now it can hide
> > the stars.  However, interestingly, when I ssh-ed into the host with
> > 'putty' and opened the same file with emacs, it shows the stars.
>
> Do they have different colour backgrounds? Hide star is really just a
> hack by setting the stars to the same colour as the background.
>
>
They have different background colors. putty has black background. But the
emacs application in Ubuntu has white background. Can it be hacked into
again? :-)


-- 
Sincerely,
Ashfaq

[-- Attachment #2: Type: text/html, Size: 1129 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: I can't make work 'startup hidestars'
  2012-08-25 15:18       ` Ashfaq
@ 2012-08-25 16:31         ` Charles Philip Chan
  2012-08-25 19:50           ` Ashfaq
  0 siblings, 1 reply; 10+ messages in thread
From: Charles Philip Chan @ 2012-08-25 16:31 UTC (permalink / raw)
  To: Org-mode

[-- Attachment #1: Type: text/plain, Size: 504 bytes --]

Ashfaq <quazi.ashfaq@gmail.com> writes:

> They have different background colors. putty has black background. But
> the emacs application in Ubuntu has white background. Can it be hacked
> into again? :-)

The "hidden stars" colour is determined by the "org-hide" face which
defaults to white. The easiest way for you is to start emacs with the
"-rv" switch when you are using Putty.

Charles

-- 
"Never make any mistaeks."
(Anonymous, in a mail discussion about to a kernel bug report.)

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: I can't make work 'startup hidestars'
  2012-08-25 16:31         ` Charles Philip Chan
@ 2012-08-25 19:50           ` Ashfaq
  2012-08-26  1:56             ` Charles Philip Chan
  0 siblings, 1 reply; 10+ messages in thread
From: Ashfaq @ 2012-08-25 19:50 UTC (permalink / raw)
  To: Charles Philip Chan; +Cc: Org-mode

[-- Attachment #1: Type: text/plain, Size: 613 bytes --]

> The "hidden stars" colour is determined by the "org-hide" face which
> defaults to white. The easiest way for you is to start emacs with the
> "-rv" switch when you are using Putty.
>
>
Thanks for the info. I have installed emacs-goodies-el, inserted the
following line in .emacs

(require 'color-theme)

Then I selected a color theme which the color of  leading extra stars same
as the background giving an illusion of non-existence.

However, as I wanted to indent too, it added extra stars in the line. To be
precise, each line has now (2 * line_no -1) no. stars. Why is it like this?

-- 
Sincerely,
Ashfaq

[-- Attachment #2: Type: text/html, Size: 901 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: I can't make work 'startup hidestars'
  2012-08-25 19:50           ` Ashfaq
@ 2012-08-26  1:56             ` Charles Philip Chan
  2012-08-26 17:56               ` Ashfaq
  0 siblings, 1 reply; 10+ messages in thread
From: Charles Philip Chan @ 2012-08-26  1:56 UTC (permalink / raw)
  To: Org-mode

[-- Attachment #1: Type: text/plain, Size: 651 bytes --]

Ashfaq <quazi.ashfaq@gmail.com> writes:

> However, as I wanted to indent too, it added extra stars in the
> line. To be precise, each line has now (2 * line_no -1) no. stars. Why
> is it like this?

I have no idea. I haven't ran Emacs in a console, let along through ssh,
in a couple of years. These days I connect to my machine with vnc
through an ssh tunnel. Maybe someone with more experience with emacs in
a console can help you. Alternatively, you might just want to bite the
bullet and use vnc.

Charles

-- 
"The move was on to 'Free the Lizard'"

  -- Jim Hamerly and Tom Paquin (Open Sources, 1999 O'Reilly and Associates)

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: I can't make work 'startup hidestars'
  2012-08-26  1:56             ` Charles Philip Chan
@ 2012-08-26 17:56               ` Ashfaq
  0 siblings, 0 replies; 10+ messages in thread
From: Ashfaq @ 2012-08-26 17:56 UTC (permalink / raw)
  To: Charles Philip Chan; +Cc: Org-mode

[-- Attachment #1: Type: text/plain, Size: 142 bytes --]

: )
Thank you, Phillip, for the info.

At last, I got it right. Selecting manoj-dark color-theme has hid those
stars.


-- 
Sincerely,
Ashfaq

[-- Attachment #2: Type: text/html, Size: 242 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: I can't make work 'startup hidestars'
  2012-08-25 10:08 I can't make work 'startup hidestars' Ashfaq
  2012-08-25 10:15 ` Bastien
@ 2012-12-05 13:40 ` Daniel E. Doherty
  1 sibling, 0 replies; 10+ messages in thread
From: Daniel E. Doherty @ 2012-12-05 13:40 UTC (permalink / raw)
  To: Ashfaq; +Cc: emacs-orgmode

If it helps, I have the following in my init file to make sure the hidden stars stay hidden:

#+begin_src emacs-lisp
    (defun ded-set-org-hide ()
      "Make sure the background and foreground colors of the org-hide face
      matches the background of the default face."
      (interactive)
      (when (featurep 'org)
        (set-face-attribute 'org-hide nil
                            :foreground
                            (face-attribute 'default :background))
        (set-face-attribute 'org-hide nil
                            :background
                            (face-attribute 'default :background))))
  (add-hook 'after-init-hook 'ded-set-org-hide)
  (add-hook 'org-ctrl-c-ctrl-c-hook 'ded-set-org-hide)
#+end_src

This works fine, but has to be manually re-run if you load a different custom theme.

-- 
====================================================
Daniel E. Doherty
Law Offices of Daniel E. Doherty
ded-law@ddoherty.net

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-12-05 13:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-25 10:08 I can't make work 'startup hidestars' Ashfaq
2012-08-25 10:15 ` Bastien
2012-08-25 12:44   ` Ashfaq
2012-08-25 13:03     ` Charles Philip Chan
2012-08-25 15:18       ` Ashfaq
2012-08-25 16:31         ` Charles Philip Chan
2012-08-25 19:50           ` Ashfaq
2012-08-26  1:56             ` Charles Philip Chan
2012-08-26 17:56               ` Ashfaq
2012-12-05 13:40 ` Daniel E. Doherty

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).