From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amin Bandali Subject: Re: org-store/insert-link truncating the full subject of mails Date: Sun, 28 Oct 2018 10:05:13 -0400 Message-ID: <871s8a6uau.fsf@aminb.org> References: <875zxpi8bn.fsf@portable.galex-713.eu> <87k1m4g1qk.fsf@nicolasgoaziou.fr> <87woq4pveb.fsf@portable.galex-713.eu> <874ld8fpqf.fsf@nicolasgoaziou.fr> <87in1ojntq.fsf@aminb.org> <87zhuzd9ih.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38926) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gGlhG-0005h4-JO for emacs-orgmode@gnu.org; Sun, 28 Oct 2018 10:05:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gGlhD-0002VP-Ef for emacs-orgmode@gnu.org; Sun, 28 Oct 2018 10:05:42 -0400 In-Reply-To: <87zhuzd9ih.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: emacs-org list , "Garreau, Alexandre" Hi, Nicolas Goaziou 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 =3Dgit blame lisp/org.el=3D 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=E2=80=99t recall exactly, but that either it was aesthetic (he didn=E2=80=99t 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=E2=80=99t object to lifting the restriction. On a side note, I=E2=80=99d 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=E2=80=99t know if I=E2=80=99m the minori= ty, 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=E2=80=99t 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