unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#16167: 24.3; rcirc coloring incompatible with global-whitespace-mode
@ 2013-12-16 13:07 Felix S. Klock II
  2013-12-17  0:36 ` Leo Liu
  0 siblings, 1 reply; 6+ messages in thread
From: Felix S. Klock II @ 2013-12-16 13:07 UTC (permalink / raw)
  To: 16167

This bug report will be sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker at debbugs.gnu.org. Please check that
the From: line contains a valid email address. After a delay of up
to one day, you should receive an acknowledgment at that address.

Please write in English if possible, as the Emacs maintainers
usually do not have translators for other languages.

Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug. If you can, give a recipe
starting from `emacs -Q':

1. Start `emacs -Q'

2. Invoke `M-x rcirc`, go to a channel.

3. Observe: As messages arrive, user nicknames are colored by default.

4. Quit emacs, restart `emacs -Q'

5. In *scratch*, eval `(global-whitespace-mode 1)'

6. Invoke `M-x rcirc`, go to a channel.

7. Observe that when messages come in, user nicknames are not colored.


If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
`bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/Applications/EmacsIRC.app/Contents/Resources/etc/DEBUG.


In GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
of 2013-03-13 on bob.porkrind.org
Windowing system distributor `Apple', version 10.3.1187
Configured using:
`configure '--host=3Dx86_64-apple-darwin' '--build=3Di686-apple-darwin'
'--with-ns' 'build_alias=3Di686-apple-darwin'
'host_alias=3Dx86_64-apple-darwin' 'CC=3Dgcc -mmacosx-version-min=3D10.7
-isystem
/Users/david/Xcode-10.7_4.5.2/Xcode.app/Contents/Developer/Platforms/MacOS=
X.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/
-F/Users/david/Xcode-10.7_4.5.2/Xcode.app/Contents/Developer/Platforms/Mac=
OSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks''

Important settings:
value of $LANG: en_GB.UTF-8
locale-coding-system: utf-8-unix
default enable-multibyte-characters: t

Major mode: rcirc

Minor modes in effect:
tooltip-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
use-hard-newlines: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t

Recent input:
<escape> x r c i r <tab> <return> / j o i n SPC =C2=A3 r=20
<backspace> <backspace> C-x 2 C-x o C-x C-f C-a C-k=20
~ / . e m <tab> <return> y e s <return> C-s r c i r=20
c C-e C-s C-s C-s C-s C-s C-s C-e C-s C-s C-s C-a C-s=20
<C-home> C-s =C2=A3 C-e C-x C-e C-x o # p n k f x . <backspace>=20
<return> <help-echo> <down-mouse-1> <mouse-1> <double-down-mouse-1>=20
<double-mouse-1> <escape> x r e p o <tab> r <tab>=20
<return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Connecting to irc.freenode.net...done
Loading vc-git...done
Followed link to /Users/fklock/DotFiles-github/emacs
Mark saved where search started [3 times]
Mark set
Mark saved where search started
35
Making completion list...

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message format-spec rfc822 mml mml-sec
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils help-mode
easymenu misearch multi-isearch vc-git disp-table network-stream
auth-source eieio byte-opt bytecomp byte-compile cconv gnus-util mm-util
mail-prsvr password-cache starttls tls rcirc ring time-date tooltip
ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset
image regexp-opt fringe tabulated-list newcomment lisp-mode register
page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core frame cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew
greek romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process ns multi-tty emacs)






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

* bug#16167: 24.3; rcirc coloring incompatible with global-whitespace-mode
  2013-12-16 13:07 bug#16167: 24.3; rcirc coloring incompatible with global-whitespace-mode Felix S. Klock II
@ 2013-12-17  0:36 ` Leo Liu
  2013-12-17  2:22   ` Stefan Monnier
  0 siblings, 1 reply; 6+ messages in thread
From: Leo Liu @ 2013-12-17  0:36 UTC (permalink / raw)
  To: Felix S. Klock II; +Cc: 16167

On 2013-12-16 21:07 +0800, Felix S. Klock II wrote:
> 1. Start `emacs -Q'
>
> 2. Invoke `M-x rcirc`, go to a channel.
>
> 3. Observe: As messages arrive, user nicknames are colored by default.
>
> 4. Quit emacs, restart `emacs -Q'
>
> 5. In *scratch*, eval `(global-whitespace-mode 1)'
>
> 6. Invoke `M-x rcirc`, go to a channel.
>
> 7. Observe that when messages come in, user nicknames are not colored.

The colours in rcirc buffers aren't set by font-locking. white-space
mode re-font-lock the buffer and as such colours are removed. So white
space mode is likely to cause problems in other places.

Leo





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

* bug#16167: 24.3; rcirc coloring incompatible with global-whitespace-mode
  2013-12-17  0:36 ` Leo Liu
@ 2013-12-17  2:22   ` Stefan Monnier
  2013-12-17  4:09     ` Leo Liu
  0 siblings, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 2013-12-17  2:22 UTC (permalink / raw)
  To: Leo Liu; +Cc: Felix S. Klock II, 16167

> The colours in rcirc buffers aren't set by font-locking. white-space
> mode re-font-lock the buffer and as such colours are removed. So white
> space mode is likely to cause problems in other places.

Shouldn't rcirc use font-lock-face, then?


        Stefan





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

* bug#16167: 24.3; rcirc coloring incompatible with global-whitespace-mode
  2013-12-17  2:22   ` Stefan Monnier
@ 2013-12-17  4:09     ` Leo Liu
  2013-12-17 13:33       ` Stefan Monnier
  0 siblings, 1 reply; 6+ messages in thread
From: Leo Liu @ 2013-12-17  4:09 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Felix S. Klock II, 16167

On 2013-12-17 10:22 +0800, Stefan Monnier wrote:
> Shouldn't rcirc use font-lock-face, then?
>
>
>         Stefan

Not sure. For example, if you turn on whitespace mode in eshell buffer
it also removes the colour there. thus my conclusion g-w-m can cause
problems in other places.

Leo





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

* bug#16167: 24.3; rcirc coloring incompatible with global-whitespace-mode
  2013-12-17  4:09     ` Leo Liu
@ 2013-12-17 13:33       ` Stefan Monnier
  2013-12-17 15:40         ` Leo Liu
  0 siblings, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 2013-12-17 13:33 UTC (permalink / raw)
  To: Leo Liu; +Cc: Felix S. Klock II, 16167

>> Shouldn't rcirc use font-lock-face, then?
> Not sure.  For example, if you turn on whitespace mode in eshell buffer
> it also removes the colour there.  Thus my conclusion g-w-m can cause
> problems in other places.

Another way to look at it is that eshell might also need to use
font-lock-face.


        Stefan





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

* bug#16167: 24.3; rcirc coloring incompatible with global-whitespace-mode
  2013-12-17 13:33       ` Stefan Monnier
@ 2013-12-17 15:40         ` Leo Liu
  0 siblings, 0 replies; 6+ messages in thread
From: Leo Liu @ 2013-12-17 15:40 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Felix S. Klock II, 16167-done

Fixed in 24.4

On 2013-12-17 21:33 +0800, Stefan Monnier wrote:
> Another way to look at it is that eshell might also need to use
> font-lock-face.

OK, I just fixed rcirc and eshell.

Leo





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

end of thread, other threads:[~2013-12-17 15:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-16 13:07 bug#16167: 24.3; rcirc coloring incompatible with global-whitespace-mode Felix S. Klock II
2013-12-17  0:36 ` Leo Liu
2013-12-17  2:22   ` Stefan Monnier
2013-12-17  4:09     ` Leo Liu
2013-12-17 13:33       ` Stefan Monnier
2013-12-17 15:40         ` Leo Liu

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

	https://git.savannah.gnu.org/cgit/emacs.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).