From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Porter Subject: Re: org-startup-truncated default should be nil [legibility 2/6] Date: Tue, 04 Feb 2020 01:05:11 -0600 Message-ID: <87wo92ygrc.fsf@alphapapa.net> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:57692) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iysGt-00085s-PN for emacs-orgmode@gnu.org; Tue, 04 Feb 2020 02:05:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iysGs-0001HW-KO for emacs-orgmode@gnu.org; Tue, 04 Feb 2020 02:05:19 -0500 Received: from ciao.gmane.io ([159.69.161.202]:35510) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iysGs-0001EG-DE for emacs-orgmode@gnu.org; Tue, 04 Feb 2020 02:05:18 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1iysGr-000Pry-9d for emacs-orgmode@gnu.org; Tue, 04 Feb 2020 08:05:17 +0100 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Texas Cyberthal writes: > #+begin_src elisp > (org-startup-truncated nil) > #+end_src > > Line truncation is necessary for code but anathema for prose. Prose > lines need visual wrap as windows resize, so that texts can be > compared easily. > > Advanced Org uses such as large tables require line truncation. Tables > are a code-like fixed-pitch feature. > > Users will write a paragraph of prose longer than the screen well > before they discover a need for line truncation, such as long lines of > code or wide tables. Users who need line truncation are likely to know > about it, whereas users who need line truncation off are unlikely to > know what it's called. > > Learning about line truncation is an unnecessary hurdle for beginners. > Therefore the default should be nil. visual-line-mode and toggle-truncate-lines are basic Emacs commands that all users should learn early. As well, many users prefer to use filled paragraphs rather than visual wrapping. And we shouldn't prioritize prose above other uses. So this default should probably not be changed. What would be useful would be if Emacs/Org could be configured to wrap prose lines but not, e.g. tables and code blocks. I don't think such functionality exists in Emacs now, but here's a new package that may be relevant: https://github.com/luisgerhorst/virtual-auto-fill As well, it might be good to discuss on emacs-devel whether a feature could be developed to truncate/wrap lines selectively; maybe font-locking could be used to apply text properties to disable wrapping dynamically (assuming that a feature could be developed to wrap based on a certain text property). Then we could have the best of both worlds, and solve an existing problem, viz. that tables and code gets wrapped when visual-line-mode is enabled.