unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#12496: 24.2; global newline mode shows whitespace too
@ 2012-09-23 17:41 Steven Degutis
  2012-09-27  6:41 ` Glenn Morris
  0 siblings, 1 reply; 3+ messages in thread
From: Steven Degutis @ 2012-09-23 17:41 UTC (permalink / raw)
  To: 12496

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

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 acknowledgement 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':


putting (global-whitespace-newline-mode) in my init.el file makes all

whitespace appear, not just newlines. the work-around that jlp gave me

is to use '(whitespace-style (quote (newline newline-mark))) but he said

it's definitely a bug that i should report.


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

/usr/local/Cellar/emacs/24.2/share/emacs/24.2/etc/DEBUG.



In GNU Emacs 24.2.1 (x86_64-apple-darwin12.2.0, NS apple-appkit-1187.34)

of 2012-09-22 on Stevens-MacBook-Pro-2.local

Windowing system distributor `Apple', version 10.3.1187

Configured using:

`configure '--prefix=/usr/local/Cellar/emacs/24.2' '--without-dbus'

'--enable-locallisppath=/usr/local/share/emacs/site-lisp'

'--infodir=/usr/local/Cellar/emacs/24.2/share/info/emacs' '--with-ns'

'--disable-ns-self-contained' 'CC=cc''


Important settings:

  value of $LC_ALL: nil

  value of $LC_COLLATE: nil

  value of $LC_CTYPE: nil

  value of $LC_MESSAGES: nil

  value of $LC_MONETARY: nil

  value of $LC_NUMERIC: nil

  value of $LC_TIME: nil

  value of $LANG: en_US.UTF-8

  value of $XMODIFIERS: nil

  locale-coding-system: utf-8-unix

  default enable-multibyte-characters: t


Major mode: Dired by name


Minor modes in effect:

  global-undo-tree-mode: t

  global-whitespace-newline-mode: t

  global-whitespace-mode: t

  tooltip-mode: t

  mouse-wheel-mode: 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:

<ns-open-file-line> <help-echo> M-x r e p o r t - e

m <tab> <return>


Recent messages:

For information about GNU Emacs and the GNU system, type C-h C-a.

ls does not support --dired; see `dired-use-ls-dired' for more details.


Load-path shadows:

None found.


Features:

(shadow sort gnus-util 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 mm-util

mail-prsvr mail-utils disp-table undo-tree help-fns edmacro kmacro diff

go-mode-load dirtree dired-x dired regexp-opt windata tree-mode derived

easy-mmode easymenu tree-widget wid-edit cl ido whitespace time-date

tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd

fontset image fringe 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 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)

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

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

* bug#12496: 24.2; global newline mode shows whitespace too
  2012-09-23 17:41 bug#12496: 24.2; global newline mode shows whitespace too Steven Degutis
@ 2012-09-27  6:41 ` Glenn Morris
  2021-06-01  7:15   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Glenn Morris @ 2012-09-27  6:41 UTC (permalink / raw)
  To: Steven Degutis; +Cc: viniciusjl, 12496

Steven Degutis wrote:

> putting (global-whitespace-newline-mode) in my init.el file makes all
> whitespace appear, not just newlines. the work-around that jlp gave me
> is to use '(whitespace-style (quote (newline newline-mark))) but he said
> it's definitely a bug that i should report.

Thanks for the report.
global-whitespace-newline-mode basically does this:

(let ((whitespace-style '(newline-mark newline)))
  (global-whitespace-mode 1))

So it does the right thing in existing buffers, but not in future
buffers that are created later (because whitespace-style is back to its
default value).

I don't know why global-whitespace-newline-mode even needs to exist.
It would be simpler to remove it and just say "customize
whitespace-style to whatever you want, and call global-whitespace-mode".





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

* bug#12496: 24.2; global newline mode shows whitespace too
  2012-09-27  6:41 ` Glenn Morris
@ 2021-06-01  7:15   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Ingebrigtsen @ 2021-06-01  7:15 UTC (permalink / raw)
  To: Glenn Morris; +Cc: Steven Degutis, viniciusjl, 12496

Glenn Morris <rgm@gnu.org> writes:

> I don't know why global-whitespace-newline-mode even needs to exist.
> It would be simpler to remove it and just say "customize
> whitespace-style to whatever you want, and call global-whitespace-mode".

Makes sense to me, so I've now obsoleted it in Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

end of thread, other threads:[~2021-06-01  7:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-23 17:41 bug#12496: 24.2; global newline mode shows whitespace too Steven Degutis
2012-09-27  6:41 ` Glenn Morris
2021-06-01  7:15   ` Lars Ingebrigtsen

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).