all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: <tomas@tuxteam.de>
To: Rusi <rustompmody@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: whitespace issues
Date: Tue, 30 Jun 2015 16:54:28 +0200	[thread overview]
Message-ID: <20150630145428.GA18383@tuxteam.de> (raw)
In-Reply-To: <c2dba062-9719-41dc-805d-91a376cf1eaa@googlegroups.com>

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

regards
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlWSraQACgkQBcgs9XrR2kZ89ACfSaNmH/5SeCDcV5r+yAnVZbig
MtMAn2ogT/O7Z6vHpFBctGwobLonf+HG
=MoaO
-----END PGP SIGNATURE-----



  reply	other threads:[~2015-06-30 14:54 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 [this message]
     [not found] ` <mailman.6025.1435676084.904.help-gnu-emacs@gnu.org>
2015-06-30 14:57   ` Rusi
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=20150630145428.GA18383@tuxteam.de \
    --to=tomas@tuxteam.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=rustompmody@gmail.com \
    /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.