From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik 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 Message-ID: <50ED3D70-FE6A-4903-BACC-9EC7D021EC22@gmail.com> References: <4B16B9B5.5030508@os.inf.tu-dresden.de> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NG7Of-0001yW-61 for emacs-orgmode@gnu.org; Thu, 03 Dec 2009 03:50:45 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NG7Oa-0001pp-98 for emacs-orgmode@gnu.org; Thu, 03 Dec 2009 03:50:44 -0500 Received: from [199.232.76.173] (port=32789 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NG7OZ-0001pU-Tu for emacs-orgmode@gnu.org; Thu, 03 Dec 2009 03:50:39 -0500 Received: from mail-ew0-f214.google.com ([209.85.219.214]:51667) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NG7OZ-0005Ez-7K for emacs-orgmode@gnu.org; Thu, 03 Dec 2009 03:50:39 -0500 Received: by mail-ew0-f214.google.com with SMTP id 6so1148050ewy.9 for ; Thu, 03 Dec 2009 00:50:38 -0800 (PST) In-Reply-To: <4B16B9B5.5030508@os.inf.tu-dresden.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Martin Pohlack Cc: emacs-orgmode@gnu.org Hi Martin, this looks to me like a bug in whitespace.el, why does it =20 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? =20= > 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 =20 > 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 "=85")) > > (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 (=BB, = =B7)") > (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