all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <incal@dataswamp.org>
To: help-gnu-emacs@gnu.org
Subject: Re: whitespace-mode deactivated at end of line
Date: Sat, 11 Jun 2022 07:24:13 +0200	[thread overview]
Message-ID: <877d5nu60y.fsf@dataswamp.org> (raw)
In-Reply-To: 83ilp91vn8.fsf@gnu.org

Eli Zaretskii wrote:

> The red background that highlights trailing whitespace

Also why isn't that removed automatically on save? Or are they
programming languages that have that semantically as well or
how ever was put?

(defun untab-all ()
  (unless (member major-mode '(makefile-gmake-mode
                               makefile-mode) ) ; exceptions
    (untabify (point-min) (point-max)))
  nil) ; "did not write buffer to disk"

;; (setq before-save-hook nil)
(defun before-save-hook-f ()
  (untab-all)
  (delete-trailing-whitespace) )
(add-hook 'before-save-hook #'before-save-hook-f)

I agree with the OP (original poster) in this particular issue
that configuration to make it make sense shouldn't be needed,
in much the same way I agree with the OP (other poster, this
refers to YT) that all basic math stuff should be implemented
and distributed as the official Emacs math library so not
everyone has to do that all over.

Then after math we can do - I don't know. But so we'd have
a super-library of all building blocks pretty soon. And then
one wouldn't have to post source on gmane.emacs.help all the
time to "own" them if you will.

-- 
underground experts united
https://dataswamp.org/~incal




  parent reply	other threads:[~2022-06-11  5:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-09 18:22 whitespace-mode deactivated at end of line goncholden via Users list for the GNU Emacs text editor
2022-06-09 19:31 ` Eli Zaretskii
2022-06-11  3:03   ` goncholden
2022-06-11  5:24   ` Emanuel Berg [this message]
2022-06-11  8:15     ` Eli Zaretskii
2022-06-11  8:34       ` goncholden
2022-06-11  9:07       ` Arash Esbati
2022-06-11  9:58         ` Eli Zaretskii
2022-06-12  8:58       ` Emanuel Berg

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

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

  git send-email \
    --in-reply-to=877d5nu60y.fsf@dataswamp.org \
    --to=incal@dataswamp.org \
    --cc=help-gnu-emacs@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.