[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] Wash output of org-encrypt-entry, take 3
From: |
David Maus |
Subject: |
Re: [O] [PATCH] Wash output of org-encrypt-entry, take 3 |
Date: |
Sun, 10 Apr 2011 22:08:03 +0200 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/23.2 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
At Mon, 21 Mar 2011 14:54:09 +0100,
Julien Danjou wrote:
>
> [1 <text/plain; utf-8 (quoted-printable)>]
> On Fri, Mar 18 2011, Óscar Fuentes wrote:
>
> > The first line (Version:...) can change from machine to machine and over
> > time (as gpg is updated with a new version.) This is problematic when
> > the file is stored under version control, because as you decrypt and
> > encrypt an entry that line will change and create differences among the
> > file on the workspace and the file stored on VC.
>
> This is true only if you modify the content of the entry, so I'm not
> sure there's a real harm done here.
gpg --no-emit-version
Can be configured in gpg.conf.
>
> > Second, the empty line just wastes space and it is plain ugly once we
> > remove the first one with the Version text.
>
> This line is required by the protocol.
+1
>
> > Finally, on some systems (mostly Windows) depending on how your Emacs
> > and gpg are configured, ^M characters may appear at the end of every
> > line of gpg output once it is inserted on the Emacs buffer. This happens
> > when the buffer uses Unix line-endings but gpg uses DOS line-endings.
>
> I do not feel the right place and/or way to fix and encoding bug.
Don't think this is a bug at all: The gpg executable (as well as plain
Emacs btw ) uses whatever is deemed the line-ending signature of the
operating system. Washing out the ^M overrules the system settings and
enforces the assumption that lines are terminated by a single
newline. This sound like a bad idea: You might get the opposite
situation -- the Org file uses "DOS"-style CRLF and the encrypted
block doesn't.
Best,
-- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... address@hidden
Email..... address@hidden
pgpfd7lp4aCf4.pgp
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [O] [PATCH] Wash output of org-encrypt-entry, take 3,
David Maus <=