From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Galen Menzel" Subject: Fill column indicator and org indent mode Date: Mon, 14 Aug 2017 10:58:09 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=_MailMate_41CD085F-5C09-40AE-9223-A5AE39EC3DBC_=" Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55983) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhJd2-0000qV-OG for emacs-orgmode@gnu.org; Mon, 14 Aug 2017 13:58:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhJcz-0003go-Kx for emacs-orgmode@gnu.org; Mon, 14 Aug 2017 13:58:16 -0400 Received: from mail-pg0-x235.google.com ([2607:f8b0:400e:c05::235]:37546) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dhJcz-0003g4-CA for emacs-orgmode@gnu.org; Mon, 14 Aug 2017 13:58:13 -0400 Received: by mail-pg0-x235.google.com with SMTP id y129so51758695pgy.4 for ; Mon, 14 Aug 2017 10:58:11 -0700 (PDT) Received: from [172.18.129.202] (c-24-16-180-23.hsd1.wa.comcast.net. [24.16.180.23]) by smtp.gmail.com with ESMTPSA id x13sm13715787pgq.41.2017.08.14.10.58.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Aug 2017 10:58:09 -0700 (PDT) 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: Org Mode --=_MailMate_41CD085F-5C09-40AE-9223-A5AE39EC3DBC_= Content-Type: text/plain; charset=utf-8; format=flowed; markup=markdown Content-Transfer-Encoding: 8bit Hi all, I use [Semantic linefeeds](http://rhodesmill.org/brandon/2012/one-sentence-per-line/) for a lot of my org files, for which having a visual indicator of column 80 is useful. I'm currently using [`fill-column-indicator`](https://github.com/alpaker/Fill-Column-Indicator) for this, but the column indicator does not adjust for the indention level when using `org-indent-mode` — it just draws straight down on column 80 of the frame, regardless of the line's indention level. (So in a line under a level-3 headline with `org-indent-indentation-per-level` set to 2, the fill column indicator will appear on column 80 of the frame, which is actually column 76 of the line.) Is anyone aware of a solution to displaying the fill column in a way that takes the indention level into account? Thanks! Best, Galen --=_MailMate_41CD085F-5C09-40AE-9223-A5AE39EC3DBC_= Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

Hi all,

I use Semantic linefeeds for a lot of my org files, for = which having a visual indicator of column 80 is useful. I'm currently usi= ng fil= l-column-indicator for this, but the column indicator does not= adjust for the indention level when using org-indent-mode =E2= =80=94=C2=A0it just draws straight down on column 80 of the frame, regard= less of the line's indention level. (So in a line under a level-3 headlin= e with org-indent-indentation-per-level set to 2, the fill c= olumn indicator will appear on column 80 of the frame, which is actually = column 76 of the line.)

Is anyone aware of a solution to displaying the fill colu= mn in a way that takes the indention level into account?

Thanks!

Best,

Galen

--=_MailMate_41CD085F-5C09-40AE-9223-A5AE39EC3DBC_=-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Cross Subject: Re: Fill column indicator and org indent mode Date: Tue, 15 Aug 2017 07:57:46 +1000 Message-ID: <87o9rhhkz1.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42680) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhNN0-0001MJ-Ei for emacs-orgmode@gnu.org; Mon, 14 Aug 2017 17:57:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhNMv-00025j-L1 for emacs-orgmode@gnu.org; Mon, 14 Aug 2017 17:57:58 -0400 Received: from mail-pg0-x232.google.com ([2607:f8b0:400e:c05::232]:33352) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dhNMv-00024I-Ef for emacs-orgmode@gnu.org; Mon, 14 Aug 2017 17:57:53 -0400 Received: by mail-pg0-x232.google.com with SMTP id u5so55216909pgn.0 for ; Mon, 14 Aug 2017 14:57:51 -0700 (PDT) In-reply-to: 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: Galen Menzel Cc: Org Mode I was using fci, but found all sorts of problems when it comes to org-mode. In addition to the issue you mention, you will also find 'spurious' additional characters turning up in things like html exports of your org files. I also started getting font-lock errors when I tried to edit special blocks using C-c ' and a number of other bits of weird behaviour. Once I dropped fci and configured the whitespace package to show characters past my fill column in a different colour, all the odd issues I was seeing just vanished and my exports were working correctly again. I preferred using fci and even used it for a while before I started seeing problems. It was only once I stopped using it I realised that many of the minor issues I was experiencing were due to fci and org incompatibilities. I did dig into this and found some others who had experienced similar issues and even some partial fixes, but in the end, they still didn't help with some of the more annoying issues and were likely to introduce other problems. While whitespace mode can provide similar functionality, I don't think it will adjust to the org indentation as well. The problem is that these packages just consider the screen and is not aware of mode level specifics. Of the two, I suspect you could make whitespace act more 'dynamically' than fci, but we probably really need an org-aware column indicator package/extension. tim Galen Menzel writes: > Hi all, > > I use [Semantic > linefeeds](http://rhodesmill.org/brandon/2012/one-sentence-per-line/) > for a lot of my org files, for which having a visual indicator of column > 80 is useful. I'm currently using > [`fill-column-indicator`](https://github.com/alpaker/Fill-Column-Indicator) > for this, but the column indicator does not adjust for the indention > level when using `org-indent-mode` —it just draws straight down on > column 80 of the frame, regardless of the line's indention level. (So in > a line under a level-3 headline with `org-indent-indentation-per-level` > set to 2, the fill column indicator will appear on column 80 of the > frame, which is actually column 76 of the line.) > > Is anyone aware of a solution to displaying the fill column in a way > that takes the indention level into account? > > Thanks! > > Best, > > Galen -- Tim Cross From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: Fill column indicator and org indent mode Date: Mon, 14 Aug 2017 22:16:00 +0000 Message-ID: References: <87o9rhhkz1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c14669499ec160556be0275" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46615) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhNef-0000Wp-4V for emacs-orgmode@gnu.org; Mon, 14 Aug 2017 18:16:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhNed-0003OI-Qd for emacs-orgmode@gnu.org; Mon, 14 Aug 2017 18:16:13 -0400 Received: from mail-yw0-x229.google.com ([2607:f8b0:4002:c05::229]:35149) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dhNed-0003O3-KJ for emacs-orgmode@gnu.org; Mon, 14 Aug 2017 18:16:11 -0400 Received: by mail-yw0-x229.google.com with SMTP id l82so62856395ywc.2 for ; Mon, 14 Aug 2017 15:16:11 -0700 (PDT) In-Reply-To: <87o9rhhkz1.fsf@gmail.com> 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: Tim Cross , Galen Menzel Cc: Org Mode --94eb2c14669499ec160556be0275 Content-Type: text/plain; charset="UTF-8" On Mon, Aug 14, 2017 at 5:59 PM Tim Cross wrote: > > I was using fci, but found all sorts of problems when it comes to > org-mode. In addition to the issue you mention, you will also find 'spurious' additional characters turning up in things like html exports > of your org files. I fixed that particular problem using this: ===== ;; It is required to disable `fci-mode' when `htmlize-buffer' is called; ;; otherwise the invisible fci characters show up as funky looking ;; visible characters in the source code blocks in the html file. ;; http://lists.gnu.org/archive/html/emacs-orgmode/2014-09/msg00777.html (with-eval-after-load 'fill-column-indicator (defvar modi/htmlize-initial-fci-state nil "Variable to store the state of `fci-mode' when `htmlize-buffer' is called.") (defun modi/htmlize-before-hook-fci-disable () (setq modi/htmlize-initial-fci-state fci-mode) (when fci-mode (fci-mode -1))) (defun modi/htmlize-after-hook-fci-enable-maybe () (when modi/htmlize-initial-fci-state (fci-mode 1))) (add-hook 'htmlize-before-hook #'modi/htmlize-before-hook-fci-disable) (add-hook 'htmlize-after-hook #'modi/htmlize-after-hook-fci-enable-maybe)) ===== When the code blocks are exported to HTML, htmlize is used to load the major mode to get the syntax highlighting. The side effect of that is that the FCI mode also gets enabled as they would have been added to the major mode's hook var. Now, FCI shows that column indicator using a special sequence of characters. The spurious additional characters are those. Above snippet basically prevents the fci mode from getting enabled when htmlize is doing its thing. In general I agree that FCI needs one to put such hacks in their config, and whitespace mode (ships with Emacs) is much nicer. Though, there is no package that does the exact same thing as FCI. -- Kaushal Modi --94eb2c14669499ec160556be0275 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Aug 14= , 2017 at 5:59 PM Tim Cross <t= heophilusx@gmail.com> wrote:

I was using fci, but found all sorts of problems when it comes to
org-mode. In addition to the issue you mention, you will also find
'spurious' additional characters turning up in things like html exp= orts
of your org files.

I fixed that particular= problem using this:

=3D=3D=3D=3D=3D
=C2=A0 =C2=A0 ;; It is required to disable `fci-mode' when `htmlize-b= uffer' is called;
=C2=A0 =C2=A0 ;; otherwise the invisible fc= i characters show up as funky looking
=C2=A0 =C2=A0 ;; visible ch= aracters in the source code blocks in the html file.
=C2=A0 =C2=A0 (with-eval-after-load 'fill-column= -indicator
=C2=A0 =C2=A0 =C2=A0 (defvar modi/htmlize-initial-fci-= state nil
=C2=A0 =C2=A0 =C2=A0 =C2=A0 "Variable to store the= state of `fci-mode' when `htmlize-buffer' is called.")
<= div>
=C2=A0 =C2=A0 =C2=A0 (defun modi/htmlize-before-hook-fci= -disable ()
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (setq modi/htmlize-initia= l-fci-state fci-mode)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (when fci-mode<= /div>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (fci-mode -1)))

=
=C2=A0 =C2=A0 =C2=A0 (defun modi/htmlize-after-hook-fci-enable-m= aybe ()
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (when modi/htmlize-initial-fc= i-state
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (fci-mode 1)))

=C2=A0 =C2=A0 =C2=A0 (add-hook 'htmlize-before-hook #= 'modi/htmlize-before-hook-fci-disable)
=C2=A0 =C2=A0 =C2=A0 (= add-hook 'htmlize-after-hook #'modi/htmlize-after-hook-fci-enable-m= aybe))
=3D=3D=3D=3D=3D

When the co= de blocks are exported to HTML, htmlize is used to load the major mode to g= et the syntax highlighting. The side effect of that is that the FCI mode al= so gets enabled as they would have been added to the major mode's hook = var. Now, FCI shows that column indicator using a special sequence of chara= cters. The spurious additional characters are those.

Above snippet basically prevents the fci mode from getting enabled when = htmlize is doing its thing.

In general I agree tha= t FCI needs one to put such hacks in their config, and whitespace mode (shi= ps with Emacs) is much nicer. Though, there is no package that does the exa= ct same thing as FCI.
--

= Kaushal Modi

--94eb2c14669499ec160556be0275-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eduardo Mercovich Subject: Re: Fill column indicator and org indent mode Date: Mon, 14 Aug 2017 19:23:26 -0300 Message-ID: <874lt9yejl.fsf@biologica.mercovich.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48003) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhNm4-0003TQ-4H for emacs-orgmode@gnu.org; Mon, 14 Aug 2017 18:23:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhNlz-0008Nr-4J for emacs-orgmode@gnu.org; Mon, 14 Aug 2017 18:23:52 -0400 Received: from mail-qt0-x22d.google.com ([2607:f8b0:400d:c0d::22d]:34470) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dhNly-0008N7-Vx for emacs-orgmode@gnu.org; Mon, 14 Aug 2017 18:23:47 -0400 Received: by mail-qt0-x22d.google.com with SMTP id s6so59624571qtc.1 for ; Mon, 14 Aug 2017 15:23:45 -0700 (PDT) In-reply-to: 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: Galen Menzel Cc: Org Mode Dear Galen. > I use Semantic linefeeds for a lot of my org files [...] Thank you for the reference about Semantic linefeeds. I didn't knew it, but used it something similar sometimes when operating on complex sentences/paragraphs. I created org list items as in Slf, one semantic nucleus per line, and rearranged them to develop the idea clearly seeing the order, the cuts (colon, semicolon, etc.), the lengths. When it's done, I joined the items again. But, as is usual in the beautiful orgmode world, I don't even have to. Org exports the paragraph perfectly even keeping the short lines in the source. :) Thanks again... -- eduardo mercovich Donde se cruzan tus talentos con las necesidades del mundo, ahí está tu vocación. (Anónimo) From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Galen Menzel" Subject: Re: Fill column indicator and org indent mode Date: Tue, 15 Aug 2017 20:04:45 -0700 Message-ID: <8570DF18-E692-479E-A7E5-EE09108140D1@utexas.edu> References: <87o9rhhkz1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhodX-0003Rf-CF for emacs-orgmode@gnu.org; Tue, 15 Aug 2017 23:04:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhodW-0005r5-K5 for emacs-orgmode@gnu.org; Tue, 15 Aug 2017 23:04:51 -0400 Received: from mail-pf0-x234.google.com ([2607:f8b0:400e:c00::234]:35248) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dhodW-0005qR-D5 for emacs-orgmode@gnu.org; Tue, 15 Aug 2017 23:04:50 -0400 Received: by mail-pf0-x234.google.com with SMTP id t86so628333pfe.2 for ; Tue, 15 Aug 2017 20:04:48 -0700 (PDT) In-Reply-To: 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: Kaushal Modi Cc: Tim Cross , Org Mode Thanks both Tim and Kaushal for the great information! Given what appears to be the state of affairs, I'll probably just live without it a fill-column indicator for the time being. Best, Galen From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Galen Menzel" Subject: Re: Fill column indicator and org indent mode Date: Tue, 15 Aug 2017 20:14:03 -0700 Message-ID: <11247644-044F-4D4D-87E5-1F3AB6C243D7@utexas.edu> References: <874lt9yejl.fsf@biologica.mercovich.net> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; markup=markdown Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhomW-00078b-BP for emacs-orgmode@gnu.org; Tue, 15 Aug 2017 23:14:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhomV-00036B-Fa for emacs-orgmode@gnu.org; Tue, 15 Aug 2017 23:14:08 -0400 Received: from mail-pg0-x230.google.com ([2607:f8b0:400e:c05::230]:35940) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dhomV-00035G-47 for emacs-orgmode@gnu.org; Tue, 15 Aug 2017 23:14:07 -0400 Received: by mail-pg0-x230.google.com with SMTP id i12so17079466pgr.3 for ; Tue, 15 Aug 2017 20:14:07 -0700 (PDT) In-Reply-To: <874lt9yejl.fsf@biologica.mercovich.net> 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: Eduardo Mercovich Cc: Org Mode On 14 Aug 2017, at 15:23, Eduardo Mercovich wrote: > Thank you for the reference about Semantic linefeeds. > > I didn't knew it, but used it something similar sometimes when > operating on complex sentences/paragraphs. > > I created org list items as in Slf, one semantic nucleus per line, and > rearranged them to develop the idea clearly seeing the order, the cuts > (colon, semicolon, etc.), the lengths. Yes, it makes things very easy to rearrange things, and it works wonderfully with version control, since changes happen line by line, so diffs usually show what actually changed, whereas this information is lost if you reformat with fill-paragraph or keep all paragraphs on a single line. I'll have to try using lists, since this will make sentence and clause rearrangement even quicker. Thanks for the idea! Best, Galen From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Porter Subject: Re: Fill column indicator and org indent mode Date: Tue, 15 Aug 2017 23:24:25 -0500 Message-ID: <87fucs16o6.fsf@alphapapa.net> References: <874lt9yejl.fsf@biologica.mercovich.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46326) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhptQ-0002Cd-2F for emacs-orgmode@gnu.org; Wed, 16 Aug 2017 00:25:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhptM-0006pN-N7 for emacs-orgmode@gnu.org; Wed, 16 Aug 2017 00:25:19 -0400 Received: from [195.159.176.226] (port=54445 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dhptM-0006o9-CM for emacs-orgmode@gnu.org; Wed, 16 Aug 2017 00:25:16 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dhptA-0003ym-TP for emacs-orgmode@gnu.org; Wed, 16 Aug 2017 06:25:04 +0200 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: emacs-orgmode@gnu.org Eduardo Mercovich writes: > I created org list items as in Slf, one semantic nucleus per line, and > rearranged them to develop the idea clearly seeing the order, the cuts > (colon, semicolon, etc.), the lengths. > > When it's done, I joined the items again. > > But, as is usual in the beautiful orgmode world, I don't even have > to. Org exports the paragraph perfectly even keeping the short lines > in the source. :) Hi Eduardo, Sorry, I'm confused: do you mean that the list is exported as a regular paragraph? Or do you mean that, after converting it from a list back to plain lines of text, Org exported the lines as a single paragraph instead of separate lines? Could you give a brief example? Thanks.