From mboxrd@z Thu Jan 1 00:00:00 1970 From: Texas Cyberthal Subject: mixed truncate/wrap mode for Org Date: Sat, 8 Feb 2020 16:44:50 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:54309) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j0Lk1-0005wD-FS for emacs-orgmode@gnu.org; Sat, 08 Feb 2020 03:45:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j0Lk0-0005tM-Al for emacs-orgmode@gnu.org; Sat, 08 Feb 2020 03:45:29 -0500 Received: from mail-oi1-x230.google.com ([2607:f8b0:4864:20::230]:39821) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j0Lk0-0005me-5h for emacs-orgmode@gnu.org; Sat, 08 Feb 2020 03:45:28 -0500 Received: by mail-oi1-x230.google.com with SMTP id z2so4490021oih.6 for ; Sat, 08 Feb 2020 00:45:27 -0800 (PST) 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" #+begin_quote alphapapa 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 #+end_quote That would be useful. mixed-pitch-mode already distinguishes codelike from proselike. Which might help apply virtual-auto-fill only to prose-like. https://gitlab.com/jabranham/mixed-pitch Seems this should be an Org feature, since it wants to combine prose, tables and code. #+begin_quote alphapapa 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. #+end_quote text-mode doesn't recognize org-mode tables or code blocks. Why would it need selective truncation?