From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Prevent fill-paragraph from breaking inside Org mode links [9.1.9 (release_9.1.9-580-g39837b @ /home/drunkard/emacs_lisp_imported/org-mode/org-mode/lisp/)] Date: Sun, 08 Apr 2018 18:43:23 +0200 Message-ID: <87efjp1wes.fsf@nicolasgoaziou.fr> References: <23242.14979.666606.8006@bgnetgear2.ddns.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5DPf-0007Rv-17 for emacs-orgmode@gnu.org; Sun, 08 Apr 2018 12:43:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f5DPc-00021v-02 for emacs-orgmode@gnu.org; Sun, 08 Apr 2018 12:43:31 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:54127) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f5DPb-00020x-P7 for emacs-orgmode@gnu.org; Sun, 08 Apr 2018 12:43:27 -0400 In-Reply-To: <23242.14979.666606.8006@bgnetgear2.ddns.net> (Brent Goodrick's message of "Sun, 8 Apr 2018 08:51:31 -0700") 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: Brent Goodrick Cc: emacs-orgmode@gnu.org Hello, Brent Goodrick writes: > First, it may be a separate "bug" that org-return cannot recognize the > multi-line Org link. Fixed. Thank you. > I don't know one way or the other for that, but instead I am arguing > that org mode's fill paragraph function should never break the line > right in the middle of the link. I disagree. Link descriptions can be arbitrarily long and Org should be able to fill them. We could improve the fontification, however (e.g., not using link face on blanks at the beginning of a line). > Instead the whole link should be treated as a word. To illustrate the > fix, I have appended my own function to `fill-nobreak-predicate' to > prevent the breakages I think this is the way to go: prevent filling in your own config. Regards, -- Nicolas Goaziou