emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Martin Pohlack <mp26@os.inf.tu-dresden.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: Org-mode version 6.32trans and 6.21b; Strange interaction between whitespace-mode and cust. org-ellipsis
Date: Thu, 3 Dec 2009 09:20:36 +0100	[thread overview]
Message-ID: <50ED3D70-FE6A-4903-BACC-9EC7D021EC22@gmail.com> (raw)
In-Reply-To: <4B16B9B5.5030508@os.inf.tu-dresden.de>

Hi Martin, this looks to me like a bug in whitespace.el, why does it  
override the display table org-mode is using?

- Carsten

On Dec 2, 2009, at 8:02 PM, Martin Pohlack wrote:

> Remember to cover the basics, that is, what you expected to happen and
> what in fact did happen.  You don't know how to make a good report?   
> See
>
>     http://orgmode.org/manual/Feedback.html#Feedback
>
> Your bug report will be posted to the Org-mode mailing list.
> ------------------------------------------------------------------------
>
> I observe a strange interaction between whitespace-mode and org-mode
> if org-ellipsis is set.
>
> Whenever I use whitespace-toggle-options for customizing
> whitespace-mode in a buffer, all org-mode buffers are effected.
> Probably their display table is overwritten which only has effect if
> org-ellipsis is set?
>
> Steps to reproduce:
>
> * Start emacs as follows (no local init file, start attached minimal
>  init file, open two small org-files, also attached):
>
>  $ emacs -q -l init.test.el test1.org test2.org
>
> * Hit F10 in one org-mode buffer once.
>
> * Look at other org-mode buffer to see that spaces are visualized  
> via a
>  centered dot.
>
> What *is* happening:
>
> * Other buffers are effected by a supposedly local action (display
>  table?).
>
> What *should* be happening:
>
> * No change to other buffers should occur.
>
> I'm not entirely convinced that org-mode is to blame here ...
>
> Emacs  : GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.14.7)
> of 2009-09-17 on monat400
> Package: Org-mode version 6.21b
> Package: Org-mode version 6.32trans
>
> Org-settings see attachment.
> (custom-set-variables
>  ;; custom-set-variables was added by Custom.
>  ;; If you edit it by hand, you could mess it up, so be careful.
>  ;; Your init file should contain only one such instance.
>  ;; If there is more than one, they won't work right.
> '(org-ellipsis "…"))
>
> (require 'whitespace)
>
> (defvar cycle-whitespace-modes-state 0
>  "whitespace mode states:
>   0 -> highlighting of stray whitespace, 72 & 80 column lines
>   1 -> ws highlighting and identification for tabs and spaces (», ·)")
> (make-variable-buffer-local 'cycle-whitespace-modes-state)
>
> (defun my-cycle-whitespace-modes (&optional state)
>  (interactive)
>  (if state
>      (setq cycle-whitespace-modes-state state)
>    (setq cycle-whitespace-modes-state
>          (mod (1+ cycle-whitespace-modes-state) 2)))
>  (case cycle-whitespace-modes-state
>    (0
>     (whitespace-mode 0)
>     )
>    (otherwise
>     (whitespace-mode 0)
>     (whitespace-mode 1)
>     (whitespace-toggle-options (list 'tab-mark 'space-mark))
>     )))
> (global-set-key [f10] 'my-cycle-whitespace-modes)
> abc def
> abc def
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

  reply	other threads:[~2009-12-03  8:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-02 19:02 Org-mode version 6.32trans and 6.21b; Strange interaction between whitespace-mode and cust. org-ellipsis Martin Pohlack
2009-12-03  8:20 ` Carsten Dominik [this message]
2009-12-03 21:34   ` Martin Pohlack
2009-12-04 12:26     ` Carsten Dominik
2009-12-04 15:41       ` Martin Pohlack
2009-12-14 16:27         ` Carsten Dominik
2009-12-14 19:51           ` Martin Pohlack
2010-01-01 13:34             ` Carsten Dominik
  -- strict thread matches above, loose matches on Subject: below --
2009-12-02 19:06 Martin Pohlack

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50ED3D70-FE6A-4903-BACC-9EC7D021EC22@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mp26@os.inf.tu-dresden.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public 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).