emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Amin Bandali <bandali@gnu.org>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: emacs-org list <emacs-orgmode@gnu.org>,
	"Garreau, Alexandre" <galex-713@galex-713.eu>
Subject: Re: org-store/insert-link truncating the full subject of mails
Date: Sun, 28 Oct 2018 10:05:13 -0400	[thread overview]
Message-ID: <871s8a6uau.fsf@aminb.org> (raw)
In-Reply-To: <87zhuzd9ih.fsf@nicolasgoaziou.fr>

Hi,

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> I don't know. This is why I agree it is safer to limit length to an
> arbitrary number instead of allowing any size.

Hoping to find an actual answer, I did a =git blame lisp/org.el=
and found the commit that introduced it,
2c16f092e64915a7e3d0b2dda82f3978a0f42dea, by Carsten Dominik,
the creator of Org mode himself.

I emailed Carsten yesterday and asked if he recalls why he
introduced that variable and that behvaiour.  He said that he
doesn’t recall exactly, but that either it was aesthetic (he
didn’t find extremely long link descriptions pretty), or that
long lines slowed down some regular expressions that ran in the
buffer.  He said it was most likely the first one (aesthetic),
and that he wouldn’t object to lifting the restriction.

On a side note, I’d like to point out that I use C-h k, C-h f,
and C-h v many times a day, especially when encountering new
functions or variables.  But I don’t know if I’m the minority, or
if most other Emacs users check the docs frequently as well.

That said, I still find the default a bit obtuse and frankly
unexpected.  I don’t know, maybe a nice middle ground between the
current behaviour and completely removing the limit would be to
increase the limit from 30 to 78 characters, the recommended
maximum number of characters in a line according to RFC 2822 [0].
That somehow feels less arbitrary, and would cover a larger
portion of subjects.

[0]: https://tools.ietf.org/html/rfc2822#section-2.1.1

> I updated the manual instead. It now mentions
> `org-email-link-description-format'.

Thanks for that.

Best,
amin

  parent reply	other threads:[~2018-10-28 14:05 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-26  5:30 org-store/insert-link truncating the full subject of mails Garreau, Alexandre
2018-10-26 15:35 ` Nicolas Goaziou
2018-10-26 15:42   ` Garreau, Alexandre
2018-10-26 19:54     ` Nicolas Goaziou
2018-10-26 23:22       ` Amin Bandali
2018-10-27  9:27         ` Nicolas Goaziou
2018-10-27 10:43           ` Garreau, Alexandre
2018-10-27 11:55             ` Nicolas Goaziou
2018-10-28  4:49               ` Garreau, Alexandre
2018-11-02  0:55                 ` Nicolas Goaziou
2018-10-28  4:49               ` Garreau, Alexandre
2018-10-28 14:05           ` Amin Bandali [this message]
2018-10-28 17:01             ` Garreau, Alexandre
2018-10-28 19:23             ` org-email-link-description-format (Was: Re: org-store/insert-link truncating the full subject of mails) Garreau, Alexandre
2018-10-29  7:30       ` org-store/insert-link truncating the full subject of mails Eric S Fraga
2018-10-30 15:42         ` Nick Dokos

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=871s8a6uau.fsf@aminb.org \
    --to=bandali@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=galex-713@galex-713.eu \
    --cc=mail@nicolasgoaziou.fr \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.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).