From: Rusi <rustompmody@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: whitespace issues
Date: Tue, 30 Jun 2015 07:57:56 -0700 (PDT) [thread overview]
Message-ID: <dbafbf30-35bd-4d96-94d6-d4d6af18c79e@googlegroups.com> (raw)
In-Reply-To: <mailman.6025.1435676084.904.help-gnu-emacs@gnu.org>
On Tuesday, June 30, 2015 at 8:24:46 PM UTC+5:30, to...@tuxteam.de wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Tue, Jun 30, 2015 at 07:17:39AM -0700, Rusi wrote:
> > I have two somewhat related questions, both around whitespace:
> >
> > 1. Is it possible to have some sort of save-hook so that all leading (indentation) whitespace is cleaned up to space alone and tabs are removed?
>
> I'll leave that to more knowledgeable.
>
> > 2. How to make a dirty crlf file in emacs?
> > By dirty I mean, some lines ending LF (ie Unix) and some ending CRLF (ie DOS)
> > [This is to test that such dirty-files are not add-able into git]
>
> Since CR == CTLR-M, create a file with a buffer coding system
> whatever-nix (e.g. utf8-unix). This is the default on a sensible
> operating system anyway :-)
>
> At the end of a line, type CTRL-Q CTRL-M -- voilà, this line has crlf
> at its end. Check either with hexl-mode, or outside Emacs with hexdump -C.
Neat! Thanks!
[Its 2015 and our version systems cant get this right]
next prev parent reply other threads:[~2015-06-30 14:57 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-30 14:17 whitespace issues Rusi
2015-06-30 14:54 ` tomas
[not found] ` <mailman.6025.1435676084.904.help-gnu-emacs@gnu.org>
2015-06-30 14:57 ` Rusi [this message]
2015-06-30 15:03 ` Jorge A. Alfaro-Murillo
2015-06-30 15:06 ` Óscar Fuentes
2015-06-30 15:24 ` Ian Zimmerman
[not found] ` <mailman.6026.1435676539.904.help-gnu-emacs@gnu.org>
2015-06-30 16:21 ` Rusi
2015-06-30 16:35 ` Rasmus
2015-06-30 16:27 ` Dan Espen
2015-06-30 23:25 ` Emanuel Berg
[not found] ` <mailman.6027.1435676795.904.help-gnu-emacs@gnu.org>
2015-07-01 2:37 ` Rusi
2015-07-01 8:06 ` tomas
[not found] ` <mailman.6071.1435706838.904.help-gnu-emacs@gnu.org>
2015-07-01 2:50 ` Rusi
2015-07-01 14:33 ` Jorge A. Alfaro-Murillo
2015-07-01 17:14 ` 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=dbafbf30-35bd-4d96-94d6-d4d6af18c79e@googlegroups.com \
--to=rustompmody@gmail.com \
--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.