From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Filippo A. Salustri" Subject: question about indirect buffers for capture and line-breaks Date: Thu, 24 Feb 2011 07:33:17 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1758898595==" Return-path: Received: from [140.186.70.92] (port=40458 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PsaNn-0001IQ-5N for emacs-orgmode@gnu.org; Thu, 24 Feb 2011 07:33:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PsaNl-0000i5-PY for emacs-orgmode@gnu.org; Thu, 24 Feb 2011 07:33:23 -0500 Received: from mail-ww0-f49.google.com ([74.125.82.49]:38682) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PsaNl-0000hu-JL for emacs-orgmode@gnu.org; Thu, 24 Feb 2011 07:33:21 -0500 Received: by wwb29 with SMTP id 29so520008wwb.30 for ; Thu, 24 Feb 2011 04:33:20 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --===============1758898595== Content-Type: multipart/alternative; boundary=0016e6da985a01b870049d066b12 --0016e6da985a01b870049d066b12 Content-Type: text/plain; charset=ISO-8859-1 Hi, I've turned off hard line breaks for various reasons. I do it like this: > (add-hook 'org-mode-hook > '(lambda () > (auto-fill-mode nil) > (visual-line-mode t))) However, in the indirect buffers used by capture, hard line breaks are still in place. I've looked, but can't find an explanation of how to control this. Can anyone advise me? Cheers. Fil -- Filippo A. Salustri, Ph.D., P.Eng. Mechanical and Industrial Engineering Ryerson University 350 Victoria St, Toronto, ON M5B 2K3, Canada Tel: 416/979-5000 ext 7749 Fax: 416/979-5265 Email: salustri@ryerson.ca http://deseng.ryerson.ca/~fil/ --0016e6da985a01b870049d066b12 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,
I've turned off hard line breaks for various reasons. =A0I do i= t like this:
(add-hook 'org-mode-hook
=A0=A0 =A0 =A0 =A0 =A0'(lambda ()
= =A0=A0 =A0 =A0 =A0 =A0 =A0 (auto-fill-mode nil)
=A0=A0 =A0 =A0 =A0 =A0 = =A0 (visual-line-mode t)))
However, in the indirect = buffers used by capture, hard line breaks are still in place.
I've looked, but can't find an explanation of how to control t= his.

Can anyone advise me?
Cheers.
=
Fil

--
Filippo A. Salustri, Ph.D., P.Eng.
Mechanical and Industrial Engineering
Ryerson University
350 Victoria= St, Toronto, ON
M5B 2K3, Canada
Tel: 416/979-5000 ext 7749
Fax: 4= 16/979-5265
Email: salustri@ryers= on.ca
http://deseng.ryerson.ca/~fil/
--0016e6da985a01b870049d066b12-- --===============1758898595== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1758898595==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Horn Subject: Re: question about indirect buffers for capture and line-breaks Date: Thu, 24 Feb 2011 11:07:39 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=36418 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PsdkR-0001FW-Mr for emacs-orgmode@gnu.org; Thu, 24 Feb 2011 11:09:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PsdkQ-0007ET-Bj for emacs-orgmode@gnu.org; Thu, 24 Feb 2011 11:08:59 -0500 Received: from mail-ey0-f169.google.com ([209.85.215.169]:40404) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PsdkQ-0007EP-0J for emacs-orgmode@gnu.org; Thu, 24 Feb 2011 11:08:58 -0500 Received: by eyh6 with SMTP id 6so265485eyh.0 for ; Thu, 24 Feb 2011 08:08:57 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Filippo A. Salustri" Cc: emacs-orgmode@gnu.org What happens if you use (auto-fill-mode -1) intead? ,----[ C-h f auto-fill-mode RET ] | auto-fill-mode is an interactive compiled Lisp function in | `simple.el'. | | (auto-fill-mode &optional ARG) | | Toggle Auto Fill mode. | With ARG, turn Auto Fill mode on if and only if ARG is positive. | In Auto Fill mode, inserting a space at a column beyond `current-fill-col= umn' | automatically breaks the line at a previous space. | | The value of `normal-auto-fill-function' specifies the function to use | for `auto-fill-function' when turning Auto Fill mode on. `---- I think "nil" counts as a positive number. Maybe that's a bug? I dunno. On Thu, Feb 24, 2011 at 7:33 AM, Filippo A. Salustri wrote: > Hi, > I've turned off hard line breaks for various reasons. =A0I do it like thi= s: >> >> (add-hook 'org-mode-hook >> =A0=A0 =A0 =A0 =A0 =A0'(lambda () >> =A0=A0 =A0 =A0 =A0 =A0 =A0 (auto-fill-mode nil) >> =A0=A0 =A0 =A0 =A0 =A0 =A0 (visual-line-mode t))) > > However, in the indirect buffers used by capture, hard line breaks are st= ill > in place. > I've looked, but can't find an explanation of how to control this. > Can anyone advise me? > Cheers. > Fil > > -- > Filippo A. Salustri, Ph.D., P.Eng. > Mechanical and Industrial Engineering > Ryerson University > 350 Victoria St, Toronto, ON > M5B 2K3, Canada > Tel: 416/979-5000 ext 7749 > Fax: 416/979-5265 > Email: salustri@ryerson.ca > http://deseng.ryerson.ca/~fil/ > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > --=20 Jeffrey Horn http://www.failuretorefrain.com/jeff/ From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Horn Subject: Re: question about indirect buffers for capture and line-breaks Date: Thu, 24 Feb 2011 11:09:12 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=59847 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PsdrA-0003Xp-6w for emacs-orgmode@gnu.org; Thu, 24 Feb 2011 11:15:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Psdp8-00086l-Ge for emacs-orgmode@gnu.org; Thu, 24 Feb 2011 11:13:51 -0500 Received: from mail-fx0-f41.google.com ([209.85.161.41]:52951) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Psdp8-00086e-9Q for emacs-orgmode@gnu.org; Thu, 24 Feb 2011 11:13:50 -0500 Received: by fxm5 with SMTP id 5so897720fxm.0 for ; Thu, 24 Feb 2011 08:13:49 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Filippo A. Salustri" Cc: emacs-orgmode@gnu.org Yep. Evaluate the following two lines in the scratch buffer: (auto-fill-mode -1) (auto-fill-mode nil) The first returns nil every time. The second returns true every time. Funky= . On Thu, Feb 24, 2011 at 11:07 AM, Jeff Horn wrote: > What happens if you use (auto-fill-mode -1) intead? > > ,----[ C-h f auto-fill-mode RET ] > | auto-fill-mode is an interactive compiled Lisp function in > | `simple.el'. > | > | (auto-fill-mode &optional ARG) > | > | Toggle Auto Fill mode. > | With ARG, turn Auto Fill mode on if and only if ARG is positive. > | In Auto Fill mode, inserting a space at a column beyond `current-fill-c= olumn' > | automatically breaks the line at a previous space. > | > | The value of `normal-auto-fill-function' specifies the function to use > | for `auto-fill-function' when turning Auto Fill mode on. > `---- > > I think "nil" counts as a positive number. Maybe that's a bug? I dunno. > > On Thu, Feb 24, 2011 at 7:33 AM, Filippo A. Salustri > wrote: >> Hi, >> I've turned off hard line breaks for various reasons. =A0I do it like th= is: >>> >>> (add-hook 'org-mode-hook >>> =A0=A0 =A0 =A0 =A0 =A0'(lambda () >>> =A0=A0 =A0 =A0 =A0 =A0 =A0 (auto-fill-mode nil) >>> =A0=A0 =A0 =A0 =A0 =A0 =A0 (visual-line-mode t))) >> >> However, in the indirect buffers used by capture, hard line breaks are s= till >> in place. >> I've looked, but can't find an explanation of how to control this. >> Can anyone advise me? >> Cheers. >> Fil >> >> -- >> Filippo A. Salustri, Ph.D., P.Eng. >> Mechanical and Industrial Engineering >> Ryerson University >> 350 Victoria St, Toronto, ON >> M5B 2K3, Canada >> Tel: 416/979-5000 ext 7749 >> Fax: 416/979-5265 >> Email: salustri@ryerson.ca >> http://deseng.ryerson.ca/~fil/ >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Please use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >> >> > > > > -- > Jeffrey Horn > http://www.failuretorefrain.com/jeff/ > --=20 Jeffrey Horn http://www.failuretorefrain.com/jeff/ From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Filippo A. Salustri" Subject: Re: question about indirect buffers for capture and line-breaks Date: Thu, 24 Feb 2011 11:41:00 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0730041827==" Return-path: Received: from [140.186.70.92] (port=34813 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PseFV-0005Lf-LO for emacs-orgmode@gnu.org; Thu, 24 Feb 2011 11:41:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PseFT-0006Ah-Hb for emacs-orgmode@gnu.org; Thu, 24 Feb 2011 11:41:04 -0500 Received: from mail-wy0-f169.google.com ([74.125.82.169]:40456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PseFT-0006AG-7U for emacs-orgmode@gnu.org; Thu, 24 Feb 2011 11:41:03 -0500 Received: by wyi11 with SMTP id 11so856810wyi.0 for ; Thu, 24 Feb 2011 08:41:01 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jeff Horn Cc: emacs-orgmode@gnu.org --===============0730041827== Content-Type: multipart/alternative; boundary=0016e6dbe6acef2af2049d09e015 --0016e6dbe6acef2af2049d09e015 Content-Type: text/plain; charset=ISO-8859-1 On my aquamacs, (auto-fill-mode nil) seems to toggle the mode, whereas (auto-fill-mode -1) seems to always disable it. In any case, that seems to have fixed it. Thanks! Cheers. Fil On 24 February 2011 11:09, Jeff Horn wrote: > Yep. > > Evaluate the following two lines in the scratch buffer: > > (auto-fill-mode -1) > (auto-fill-mode nil) > > The first returns nil every time. The second returns true every time. > Funky. > > On Thu, Feb 24, 2011 at 11:07 AM, Jeff Horn wrote: > > What happens if you use (auto-fill-mode -1) intead? > > > > ,----[ C-h f auto-fill-mode RET ] > > | auto-fill-mode is an interactive compiled Lisp function in > > | `simple.el'. > > | > > | (auto-fill-mode &optional ARG) > > | > > | Toggle Auto Fill mode. > > | With ARG, turn Auto Fill mode on if and only if ARG is positive. > > | In Auto Fill mode, inserting a space at a column beyond > `current-fill-column' > > | automatically breaks the line at a previous space. > > | > > | The value of `normal-auto-fill-function' specifies the function to use > > | for `auto-fill-function' when turning Auto Fill mode on. > > `---- > > > > I think "nil" counts as a positive number. Maybe that's a bug? I dunno. > > > > On Thu, Feb 24, 2011 at 7:33 AM, Filippo A. Salustri > > wrote: > >> Hi, > >> I've turned off hard line breaks for various reasons. I do it like > this: > >>> > >>> (add-hook 'org-mode-hook > >>> '(lambda () > >>> (auto-fill-mode nil) > >>> (visual-line-mode t))) > >> > >> However, in the indirect buffers used by capture, hard line breaks are > still > >> in place. > >> I've looked, but can't find an explanation of how to control this. > >> Can anyone advise me? > >> Cheers. > >> Fil > >> > >> -- > >> Filippo A. Salustri, Ph.D., P.Eng. > >> Mechanical and Industrial Engineering > >> Ryerson University > >> 350 Victoria St, Toronto, ON > >> M5B 2K3, Canada > >> Tel: 416/979-5000 ext 7749 > >> Fax: 416/979-5265 > >> Email: salustri@ryerson.ca > >> http://deseng.ryerson.ca/~fil/ > >> > >> _______________________________________________ > >> Emacs-orgmode mailing list > >> Please use `Reply All' to send replies to the list. > >> Emacs-orgmode@gnu.org > >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode > >> > >> > > > > > > > > -- > > Jeffrey Horn > > http://www.failuretorefrain.com/jeff/ > > > > > > -- > Jeffrey Horn > http://www.failuretorefrain.com/jeff/ > -- Filippo A. Salustri, Ph.D., P.Eng. Mechanical and Industrial Engineering Ryerson University 350 Victoria St, Toronto, ON M5B 2K3, Canada Tel: 416/979-5000 ext 7749 Fax: 416/979-5265 Email: salustri@ryerson.ca http://deseng.ryerson.ca/~fil/ --0016e6dbe6acef2af2049d09e015 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On my aquamacs, (auto-fill-mode nil) seems to toggle the mode, whereas (aut= o-fill-mode -1) seems to always disable it.
In any case, that seems to = have fixed it.
Thanks!
Cheers.
Fil

On 24 February 2011 11:09, Jeff Horn <jrhorn424@gmail.com= > wrote:
Yep.

Evaluate the following two lines in the scratch buffer:

=A0 =A0(auto-fill-mode -1)
=A0 =A0(auto-fill-mode nil)

The first returns nil every time. The second returns true every time. Funky= .

On Thu, Feb 24, 2011 at 11:07 AM, Jeff Horn <jrhorn424@gmail.com> wrote:
> What happens if you use (auto-fill-mode -1) intead?
>
> ,----[ C-h f auto-fill-mode RET ]
> | auto-fill-mode is an interactive compiled Lisp function in
> | `simple.el'.
> |
> | (auto-fill-mode &optional ARG)
> |
> | Toggle Auto Fill mode.
> | With ARG, turn Auto Fill mode on if and only if ARG is positive.
> | In Auto Fill mode, inserting a space at a column beyond `current-fil= l-column'
> | automatically breaks the line at a previous space.
> |
> | The value of `normal-auto-fill-function' specifies the function = to use
> | for `auto-fill-function' when turning Auto Fill mode on.
> `----
>
> I think "nil" counts as a positive number. Maybe that's = a bug? I dunno.
>
> On Thu, Feb 24, 2011 at 7:33 AM, Filippo A. Salustri
> <salustri@ryerson.ca>= wrote:
>> Hi,
>> I've turned off hard line breaks for various reasons. =A0I do = it like this:
>>>
>>> (add-hook 'org-mode-hook
>>> =A0=A0 =A0 =A0 =A0 =A0'(lambda ()
>>> =A0=A0 =A0 =A0 =A0 =A0 =A0 (auto-fill-mode nil)
>>> =A0=A0 =A0 =A0 =A0 =A0 =A0 (visual-line-mode t)))
>>
>> However, in the indirect buffers used by capture, hard line breaks= are still
>> in place.
>> I've looked, but can't find an explanation of how to contr= ol this.
>> Can anyone advise me?
>> Cheers.
>> Fil
>>
>> --
>> Filippo A. Salustri, Ph.D., P.Eng.
>> Mechanical and Industrial Engineering
>> Ryerson University
>> 350 Victoria St, Toronto, ON
>> M5B 2K3, Canada
>> Tel: 416/979-5000 ext 7749
>> Fax: 416/979-5265
>> Email: salustri@ryerson.ca<= /a>
>>
http:= //deseng.ryerson.ca/~fil/
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org=
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>>
>
>
>
> --
> Jeffrey Horn
> ht= tp://www.failuretorefrain.com/jeff/
>



--
Jeffrey Horn
http://= www.failuretorefrain.com/jeff/



--
Filippo A. = Salustri, Ph.D., P.Eng.
Mechanical and Industrial Engineering
Ryerson= University
350 Victoria St, Toronto, ON
M5B 2K3, Canada
Tel: 416/= 979-5000 ext 7749
Fax: 416/979-5265
Email: salustri= @ryerson.ca
http://deseng= .ryerson.ca/~fil/
--0016e6dbe6acef2af2049d09e015-- --===============0730041827== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0730041827==--