From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 1 Apr 2013 02:45:33 +0100 From: trebol To: 9fans <9fans@9fans.net> Message-ID: <20130401014533.GA16592@one.invalid.invalid> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Content-Transfer-Encoding: quoted-printable Subject: [9fans] documentation suggestion Topicbox-Message-UUID: 3b8165de-ead8-11e9-9d60-3106f5b1d025 Hello everyone,=20 I've had problems discovering the feature of dragging button 1 to scroll the tag line. I have used first the p9p's acme, which has a more natural way to manage the tag line, so I thought I was missing something. I have been looking in the 9fans archives and I found the trick. Then in abaco, when a text box was full and a strange picture appeared (again) on the left, I said Why not? and voil=C3=A0! this works here too, and the picture turned out to be a scroll bar. Yes, for you this could be a silly question, but for a newbie like me is not. IMHO, those things must be in the man pages. Regards, trebol. From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <20130401014533.GA16592@one.invalid.invalid> References: <20130401014533.GA16592@one.invalid.invalid> Date: Mon, 1 Apr 2013 08:08:18 +0200 Message-ID: From: "Peter A. Cejchan" To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=e89a8ff1c9ec76287704d94672ed Subject: Re: [9fans] documentation suggestion Topicbox-Message-UUID: 3b8801b4-ead8-11e9-9d60-3106f5b1d025 --e89a8ff1c9ec76287704d94672ed Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable to save my time, could you, please, share that trick? Thanks, ++pac On Mon, Apr 1, 2013 at 3:45 AM, trebol wrote: > Hello everyone, > I've had problems discovering the feature of dragging button 1 to scroll > the tag line. I have used first the p9p's acme, which has a more natural > way to manage the tag line, so I thought I was missing something. > I have been looking in the 9fans archives and I found the trick. > Then in abaco, when a text box was full and a strange picture appeared > (again) on the left, I said Why not? and voil=C3=A0! this works here too, > and the picture turned out to be a scroll bar. > > Yes, for you this could be a silly question, but for a newbie like me is > not. IMHO, those things must be in the man pages. > > Regards, > trebol. > > --e89a8ff1c9ec76287704d94672ed Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
to save my time, could you, please, share that trick?= Thanks,

++pac


On Mon, Apr 1, 2013 at 3:45 AM, trebol <trebol5= 5555@yahoo.es> wrote:
Hello everyone,
I've had problems discovering the feature of dragging button 1 to scrol= l
the tag line. =C2=A0I have used first the p9p's acme, which has a more = natural
way to manage the tag line, so I thought I was missing something.
I have been looking in the 9fans archives and I found the trick.
Then in abaco, when a text box was full and a strange picture appeared
(again) on the left, I said Why not? and voil=C3=A0! this works here too, and the picture turned out to be a scroll bar.

Yes, for you this could be a silly question, but for a newbie like me is not. =C2=A0IMHO, those things must be in the man pages.

Regards,
trebol.


--e89a8ff1c9ec76287704d94672ed-- From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 1 Apr 2013 08:11:20 +0100 From: trebol To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Message-ID: <20130401071119.GA11901@one.invalid.invalid> References: <20130401014533.GA16592@one.invalid.invalid> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Subject: [9fans] documentation suggestion Topicbox-Message-UUID: 3b8f8b96-ead8-11e9-9d60-3106f5b1d025 On Mon, Apr 01, 2013 at 08:08:18AM +0200, Peter A. Cejchan wrote: > to save my time, could you, please, share that trick? Thanks, > > ++pac Hello Peter, I suppose my English is too bad. The trick I was talking about is the dragging feature itself, sorry. From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <20130401071119.GA11901@one.invalid.invalid> References: <20130401014533.GA16592@one.invalid.invalid> <20130401071119.GA11901@one.invalid.invalid> Date: Mon, 1 Apr 2013 10:24:11 +0200 Message-ID: From: "Peter A. Cejchan" To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=e89a8fb1fd74737ab104d94858f0 Subject: Re: [9fans] documentation suggestion Topicbox-Message-UUID: 3b956214-ead8-11e9-9d60-3106f5b1d025 --e89a8fb1fd74737ab104d94858f0 Content-Type: text/plain; charset=UTF-8 however, in native Plan9, scrolling goes too fast for multi-line tagline :-) [yes, I know that I should keep commands short, but, e.g., Edit requires newline between commands :((( ] ++pac On Mon, Apr 1, 2013 at 9:11 AM, trebol wrote: > On Mon, Apr 01, 2013 at 08:08:18AM +0200, Peter A. Cejchan wrote: > > to save my time, could you, please, share that trick? Thanks, > > > > ++pac > > Hello Peter, I suppose my English is too bad. The trick I was talking > about is the dragging feature itself, sorry. > > --e89a8fb1fd74737ab104d94858f0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
however, in native Plan9, scrolling goes too fas= t for multi-line tagline :-)
[yes, I know that I should keep comma= nds short, but, e.g., Edit requires newline between commands :(((=C2=A0=C2= =A0=C2=A0 ]

++pac


On Mon, Apr 1, 2013 at 9:11 AM, trebol <trebol55555@yahoo.e= s> wrote:
On Mon, Apr 01, 2013 at 08= :08:18AM +0200, Peter A. Cejchan wrote:
> to save my time, could you, please, share that trick? Thanks,
>
> ++pac

Hello Peter, I suppose my English is too bad. =C2=A0The trick I was t= alking
about is the dragging feature itself, sorry.


--e89a8fb1fd74737ab104d94858f0-- From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <20130401014533.GA16592@one.invalid.invalid> <20130401071119.GA11901@one.invalid.invalid> Date: Mon, 1 Apr 2013 12:51:00 +0200 Message-ID: From: Rudolf Sykora To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] documentation suggestion Topicbox-Message-UUID: 3ba08342-ead8-11e9-9d60-3106f5b1d025 Hello, On 1 April 2013 10:24, Peter A. Cejchan wrote: > however, in native Plan9, scrolling goes too fast for multi-line tagline :-) > [yes, I know that I should keep commands short, but, e.g., Edit requires > newline between commands :((( ] I found the way how it is in p9p acme better (allowing multiple lines). However, as far as I remember, some people here (for some reason; what?) prefer to have a single tag line with the scrolling mechanism described in this thread. Ruda From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <20130401014533.GA16592@one.invalid.invalid> <20130401071119.GA11901@one.invalid.invalid> Date: Mon, 1 Apr 2013 14:01:51 +0200 Message-ID: From: =?UTF-8?B?QmVuY2UgRsOhYmnDoW4=?= To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=14dae93408ffe3710d04d94b625f Subject: Re: [9fans] documentation suggestion Topicbox-Message-UUID: 3ba8f784-ead8-11e9-9d60-3106f5b1d025 --14dae93408ffe3710d04d94b625f Content-Type: text/plain; charset=UTF-8 Do what i do. I have only "Edit" on the tagline and write the commands in a new window. And just highlight them and 2-1 click on the Edit on the window i want the changes to happen. Easier and reusable. 2013/4/1 Peter A. Cejchan > however, in native Plan9, scrolling goes too fast for multi-line tagline > :-) > [yes, I know that I should keep commands short, but, e.g., Edit requires > newline between commands :((( ] > > ++pac > --14dae93408ffe3710d04d94b625f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Do what i do. I have only "Edit" on the tagline = and write the commands in a
new window. And just highlight them and 2-1= click on the Edit on the
window i want the changes to happen. Ea= sier and reusable.


2013/4/1 Pete= r A. Cejchan <tyapca7@gmail.com>
however, in native Plan9, scrolling goes too fas= t for multi-line tagline :-)
[yes, I know that I should keep comma= nds short, but, e.g., Edit requires newline between commands :(((=C2=A0=C2= =A0=C2=A0 ]

++pa= c
--14dae93408ffe3710d04d94b625f-- From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <20130401014533.GA16592@one.invalid.invalid> <20130401071119.GA11901@one.invalid.invalid> Date: Tue, 2 Apr 2013 08:34:49 +0200 Message-ID: From: "Peter A. Cejchan" To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=20cf306f74cc2ca71604d95aefb8 Subject: Re: [9fans] documentation suggestion Topicbox-Message-UUID: 3c6aa776-ead8-11e9-9d60-3106f5b1d025 --20cf306f74cc2ca71604d95aefb8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Wow! That's it! I always wanted a 'command window', now I see why it is needless. Thanks! On Mon, Apr 1, 2013 at 2:01 PM, Bence F=C3=A1bi=C3=A1n w= rote: > Do what i do. I have only "Edit" on the tagline and write the commands in= a > new window. And just highlight them and 2-1 click on the Edit on the > window i want the changes to happen. Easier and reusable. > > > 2013/4/1 Peter A. Cejchan > > however, in native Plan9, scrolling goes too fast for multi-line tagline >> :-) >> [yes, I know that I should keep commands short, but, e.g., Edit requires >> newline between commands :((( ] >> >> ++pac >> > --20cf306f74cc2ca71604d95aefb8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Wow! That's it! I always wanted a 'command window&= #39;, now I see why it is needless. Thanks!


On Mon, Apr 1, 2013 at 2:01 PM, Ben= ce F=C3=A1bi=C3=A1n <begnoc@gmail.com> wrote:
Do what i do. I have only &= quot;Edit" on the tagline and write the commands in a
new window. = And just highlight them and 2-1 click on the Edit on the
window i want the changes to happen. Easier and reusable.


2013/4/1 Pete= r A. Cejchan <tyapca7@gmail.com>

however, in native Plan9, scrolling goes too fas= t for multi-line tagline :-)
[yes, I know that I should keep comma= nds short, but, e.g., Edit requires newline between commands :(((=C2=A0=C2= =A0=C2=A0 ]

++pac

--20cf306f74cc2ca71604d95aefb8-- From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <20130401014533.GA16592@one.invalid.invalid> <20130401071119.GA11901@one.invalid.invalid> Date: Wed, 3 Apr 2013 14:11:13 +0100 Message-ID: From: aram To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=001a11c29114a82f5404d9749636 Subject: Re: [9fans] documentation suggestion Topicbox-Message-UUID: 3d1a9942-ead8-11e9-9d60-3106f5b1d025 --001a11c29114a82f5404d9749636 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Awesome, Bence. I was so much frustrated with the multi-line tag. Actually when you maximizing with 2 a window, all tags become one-liners in that column, hiding all the additional lines at tags. So you must individually scroll down every multi-line tag. With your approach it seems there is no much need to have mult-line tags anyway, since the additional lines are for Edit commands in the most cases. On Mon, Apr 1, 2013 at 1:01 PM, Bence F=C3=A1bi=C3=A1n w= rote: > Do what i do. I have only "Edit" on the tagline and write the commands in= a > new window. And just highlight them and 2-1 click on the Edit on the > window i want the changes to happen. Easier and reusable. > > > 2013/4/1 Peter A. Cejchan > > however, in native Plan9, scrolling goes too fast for multi-line tagline >> :-) >> [yes, I know that I should keep commands short, but, e.g., Edit requires >> newline between commands :((( ] >> >> ++pac >> > --=20 http://thewayofthecode.posterous.com/ --001a11c29114a82f5404d9749636 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Awesome, Bence.

I was so much fru= strated with the multi-line tag.
Actually when you maximizi= ng with 2 a window, all tags become one-liners =C2=A0in that column, hiding= =C2=A0
all the additional lines at tags. So you must individually scrol= l down every multi-line tag.

With your= approach it seems there is no much need to have mult-line tags anyway, sin= ce the
additional lines are for Edit commands in the most cases.
<= /div>


On Mon, = Apr 1, 2013 at 1:01 PM, Bence F=C3=A1bi=C3=A1n <begnoc@gmail.com> wrote:
Do what i do. I have only &= quot;Edit" on the tagline and write the commands in a
new window. = And just highlight them and 2-1 click on the Edit on the
window i want the changes to happen. Easier and reusable.


2013/4/1 Pete= r A. Cejchan <tyapca7@gmail.com>

however, in native Plan9, scrolling goes too fas= t for multi-line tagline :-)
[yes, I know that I should keep comma= nds short, but, e.g., Edit requires newline between commands :(((=C2=A0=C2= =A0=C2=A0 ]

++pac



--
http://thewayofthec= ode.posterous.com/ --001a11c29114a82f5404d9749636-- From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <20130401014533.GA16592@one.invalid.invalid> <20130401071119.GA11901@one.invalid.invalid> Date: Wed, 3 Apr 2013 15:42:24 +0200 Message-ID: From: =?UTF-8?B?QmVuY2UgRsOhYmnDoW4=?= To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=047d7bd75cee2dba0404d9750622 Subject: Re: [9fans] documentation suggestion Topicbox-Message-UUID: 3d232634-ead8-11e9-9d60-3106f5b1d025 --047d7bd75cee2dba0404d9750622 Content-Type: text/plain; charset=UTF-8 Well it can be anything. I usually have |awk too. Works with a lot of things. The 'Look' in the tag is really good for this also. Say I have a variable in one file and want to look for it in another window. Just highlight it and 2-1 click on the 'Look' on the other window. You don't even have to touch the keyboard. It is really fast. 2013/4/3 aram > Awesome, Bence. > > I was so much frustrated with the multi-line tag. > Actually when you maximizing with 2 a window, all tags become one-liners > in that column, hiding > all the additional lines at tags. So you must individually scroll down > every multi-line tag. > > With your approach it seems there is no much need to have mult-line tags > anyway, since the > additional lines are for Edit commands in the most cases. > --047d7bd75cee2dba0404d9750622 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Well it can be anything. I usually have |awk too. Works wi= th a lot of things.
The 'Look' in the tag is really good for th= is also. Say I have a variable in
one file and want to look for i= t in another window. Just highlight it and 2-1
click on the 'Look' on the other window. You don't even ha= ve to touch the
keyboard. It is really fast.


2013/4/3 aram <gnubuntux@gm= ail.com>
Awesome, Bence.

I was so much frustrated with the multi-line tag.
Actuall= y when you maximizing with 2 a window, all tags become one-liners =C2=A0in = that column, hiding=C2=A0
all the additional lines at tags. So you must individually scroll down= every multi-line tag.

With your approach it seems= there is no much need to have mult-line tags anyway, since the
additional lines are for Edit commands in the most cases.
<= /blockquote>
--047d7bd75cee2dba0404d9750622-- From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@9fans.net Date: Thu, 4 Apr 2013 08:49:13 +0000 From: Mark van Atten Message-ID: <7a28c2a5-6dfa-4016-9ced-7209173284b2@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 References: <20130401014533.GA16592@one.invalid.invalid>, Subject: Re: [9fans] documentation suggestion Topicbox-Message-UUID: 3d4685ac-ead8-11e9-9d60-3106f5b1d025 Would it be possible to add an option to p9p acme so that its tags will always remain one line, i.e., show Plan 9's acme behaviour? Mark. From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <7a28c2a5-6dfa-4016-9ced-7209173284b2@googlegroups.com> References: <20130401014533.GA16592@one.invalid.invalid> <7a28c2a5-6dfa-4016-9ced-7209173284b2@googlegroups.com> Date: Thu, 4 Apr 2013 17:24:47 +0200 Message-ID: From: Rudolf Sykora To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] documentation suggestion Topicbox-Message-UUID: 3dc2ec32-ead8-11e9-9d60-3106f5b1d025 On 4 April 2013 10:49, Mark van Atten wrote: > Would it be possible to add an option to p9p acme so that its tags > will always remain one line, i.e., show Plan 9's acme behaviour? I don't understand this question. In p9p you have an option to use multiline tag, if you press ENTER somewhere on the tag-line, but if you don't do that, the behaviour is the same as in p9, afaik. Ruda From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Thu, 4 Apr 2013 11:46:47 -0400 To: 9fans@9fans.net Message-ID: In-Reply-To: References: <20130401014533.GA16592@one.invalid.invalid> <7a28c2a5-6dfa-4016-9ced-7209173284b2@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] documentation suggestion Topicbox-Message-UUID: 3dd8fd06-ead8-11e9-9d60-3106f5b1d025 On Thu Apr 4 11:25:12 EDT 2013, rudolf.sykora@gmail.com wrote: > On 4 April 2013 10:49, Mark van Atten wrote: > > Would it be possible to add an option to p9p acme so that its tags > > will always remain one line, i.e., show Plan 9's acme behaviour? > > I don't understand this question. > In p9p you have an option to use multiline tag, > if you press ENTER somewhere on the tag-line, > but if you don't do that, the behaviour is the same > as in p9, afaik. that's incorrect. window tags will take up multiple lines if they wrap in the p9p version. this is not true for the plan 9 version. - erik From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <20130401014533.GA16592@one.invalid.invalid> <7a28c2a5-6dfa-4016-9ced-7209173284b2@googlegroups.com> Date: Thu, 4 Apr 2013 18:03:53 +0200 Message-ID: From: Rudolf Sykora To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] documentation suggestion Topicbox-Message-UUID: 3de64dee-ead8-11e9-9d60-3106f5b1d025 On 4 April 2013 17:46, erik quanstrom wrote: > On Thu Apr 4 11:25:12 EDT 2013, rudolf.sykora@gmail.com wrote: >> On 4 April 2013 10:49, Mark van Atten wrote: >> > Would it be possible to add an option to p9p acme so that its tags >> > will always remain one line, i.e., show Plan 9's acme behaviour? >> >> I don't understand this question. >> In p9p you have an option to use multiline tag, >> if you press ENTER somewhere on the tag-line, >> but if you don't do that, the behaviour is the same >> as in p9, afaik. > > that's incorrect. window tags will take up multiple lines > if they wrap in the p9p version. this is not true for the > plan 9 version. Well. Before posting I tried it. And before replying now I again tried it (I use p9p acme). And the behaviour is kind of more complicated. I had two windows, each behaved differently (the two mentioned attempts). One did not wrap, the other did wrap. So I am a bit surprised. :) Anyway, you may toggle between multiline and singleline mode with the mouse-wheel. (Thus only what is a default for a window is now somehow missing knowledge to me.) Ruda From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@9fans.net Date: Thu, 4 Apr 2013 16:05:28 +0000 From: Mark van Atten Message-ID: <777bbb38-26e6-48df-adaa-340b581f963e@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 References: <20130401014533.GA16592@one.invalid.invalid>, Subject: Re: [9fans] documentation suggestion Topicbox-Message-UUID: 3e6e2ed0-ead8-11e9-9d60-3106f5b1d025 If I click 'New' to open a window in a column, go into its tag, and start typing after `Look', the tag becomes multiline and wraps my text when I hit the border. Mark. From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <777bbb38-26e6-48df-adaa-340b581f963e@googlegroups.com> References: <20130401014533.GA16592@one.invalid.invalid> <777bbb38-26e6-48df-adaa-340b581f963e@googlegroups.com> Date: Thu, 4 Apr 2013 18:28:36 +0200 Message-ID: From: Rudolf Sykora To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] documentation suggestion Topicbox-Message-UUID: 3e732d86-ead8-11e9-9d60-3106f5b1d025 On 4 April 2013 18:05, Mark van Atten wrote: > If I click 'New' to open a window in a column, go into its tag, and > start typing after `Look', the tag becomes multiline and wraps my > text when I hit the border. Yes. The wrapping mode seems to be the default. However: If you, even before typing anything, position the cursor in the tag line and use your wheel (of course only if you have one) and try to sroll up (one 'click' is enough), and then you start to type your text, there will be no wrap-up. Scrolling changed the mode to a p9-like one. (Down-scrolling then undoes it.) If you ask to have a p9-like behaviour a default, there definitely will be a way, but I do not have a good (simple) suggestion. Ruda From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@9fans.net Date: Thu, 4 Apr 2013 12:47:12 -0400 From: a@9srv.net Message-ID: <1e93357251243c5e2a2fbd9b29d9439a@9srv.net> In-Reply-To: References: <20130401014533.GA16592@one.invalid.invalid> <777bbb38-26e6-48df-adaa-340b581f963e@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] documentation suggestion Topicbox-Message-UUID: 3e7934e2-ead8-11e9-9d60-3106f5b1d025 I have not tried this, but I suspect that if you change w->tagexpand to FALSE in /src/cmd/acme/wind.c:/^wininit and recompile, you'll get the Plan 9 behavior. The code paths are still a bit different, but on cursory examination it looks like that'll give you what you want. Anthony From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@9fans.net Date: Fri, 5 Apr 2013 09:05:47 +0000 From: Mark van Atten Message-ID: Content-Type: text/plain; charset=ISO-8859-1 References: <20130401014533.GA16592@one.invalid.invalid>, Subject: Re: [9fans] documentation suggestion Topicbox-Message-UUID: 3eaa2b60-ead8-11e9-9d60-3106f5b1d025 On Thursday, 4 April 2013 18:47:12 UTC+2, a...@9srv.net wrote: > I have not tried this, but I suspect that if you change > > w->tagexpand to FALSE in /src/cmd/acme/wind.c:/^wininit > > and recompile, you'll get the Plan 9 behavior. The code > > paths are still a bit different, but on cursory examination it > > looks like that'll give you what you want. Thanks for the suggestion! I just tried it. Indeed, it puts the tag of a new window in Plan 9 mode. But it does not yet suffice for a full restore, because hitting return makes the tag multiline again. I'll look further into it when I have some time. Mark. From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@9fans.net Date: Fri, 5 Apr 2013 09:05:56 +0000 From: Mark van Atten Message-ID: <8635f647-4ee1-4ef6-8e1d-2fa151eedb99@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 References: <20130401014533.GA16592@one.invalid.invalid>, Subject: Re: [9fans] documentation suggestion Topicbox-Message-UUID: 3ea5a8e2-ead8-11e9-9d60-3106f5b1d025 On Thursday, 4 April 2013 18:47:12 UTC+2, a...@9srv.net wrote: > I have not tried this, but I suspect that if you change > > w->tagexpand to FALSE in /src/cmd/acme/wind.c:/^wininit > > and recompile, you'll get the Plan 9 behavior. The code > > paths are still a bit different, but on cursory examination it > > looks like that'll give you what you want. > > > > Anthony I've now set w->tagexpand or t->w->tagepand to FALSE, and commented out subsequent statements, in three files: rows.c, text.c, and wind.c, and now it works as desired. I should add an option to acme and submit a patch: the multiline tag is clearly something that pleases some and annoys others. Mark. From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@9fans.net Date: Fri, 5 Apr 2013 09:32:29 +0000 From: Mark van Atten Message-ID: <3500edaf-2095-456a-a05f-91fc3606030c@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 References: <20130401014533.GA16592@one.invalid.invalid>, Subject: Re: [9fans] documentation suggestion Topicbox-Message-UUID: 3eb9bdfa-ead8-11e9-9d60-3106f5b1d025 Subject: Re: [9fans] documentation suggestion On Friday, 5 April 2013 11:05:56 UTC+2, Mark van Atten wrote: > I've now set w->tagexpand or t->w->tagepand to FALSE, and commented > > out subsequent statements, in three files: rows.c, text.c, and > > wind.c, and now it works as desired. Not quite; but I should try to come up with something more robust before addressing this in further messages. Mark. From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@9fans.net Date: Fri, 5 Apr 2013 12:47:36 +0000 From: Mark van Atten Message-ID: <323a6ec7-f0f1-48fd-9cd0-4fafb1b9b452@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 References: <20130401014533.GA16592@one.invalid.invalid>, Subject: Re: [9fans] documentation suggestion Topicbox-Message-UUID: 3eccc2ba-ead8-11e9-9d60-3106f5b1d025 The only further thing needed is to replace in the function texttype, at text.c:665, if(t->what!=Body && t->what!=Tag && r=='\n') by if(t->what!=Body && r=='\n') Sorry for the noise. Mark. From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@9fans.net Date: Mon, 8 Apr 2013 08:56:18 +0000 From: Mark van Atten Message-ID: <48159f25-cdab-41b8-9399-43772cd1bd4e@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 References: <20130401014533.GA16592@one.invalid.invalid>, Subject: Re: [9fans] documentation suggestion Topicbox-Message-UUID: 3f30c1e8-ead8-11e9-9d60-3106f5b1d025 Here is the patch, which I have submitted to codereview. It adds an option -t to p9p acme, which restores the Plan 9 tag style. Mark. diff -r ff3404f79037 src/cmd/acme/acme.c --- a/src/cmd/acme/acme.c Sat Jan 19 10:05:12 2013 +0100 +++ b/src/cmd/acme/acme.c Fri Apr 05 22:52:55 2013 +0200 @@ -113,6 +113,9 @@ case 'r': swapscrollbuttons = TRUE; break; + case 't': + neverexpandtag = TRUE; + break; case 'W': winsize = ARGF(); if(winsize == nil) diff -r ff3404f79037 src/cmd/acme/dat.h --- a/src/cmd/acme/dat.h Sat Jan 19 10:05:12 2013 +0100 +++ b/src/cmd/acme/dat.h Fri Apr 05 22:52:55 2013 +0200 @@ -548,6 +548,7 @@ int globalautoindent; int dodollarsigns; char* mtpt; +int neverexpandtag; enum { diff -r ff3404f79037 src/cmd/acme/rows.c --- a/src/cmd/acme/rows.c Sat Jan 19 10:05:12 2013 +0100 +++ b/src/cmd/acme/rows.c Fri Apr 05 22:52:55 2013 +0200 @@ -289,9 +289,9 @@ /* Expand tag if necessary */ if(t->what == Tag){ t->w->tagsafe = FALSE; - if(r == '\n') - t->w->tagexpand = TRUE; - winresize(w, w->r, TRUE, TRUE); + if(r == '\n' && neverexpandtag == FALSE) + t->w->tagexpand = TRUE; + winresize(w, w->r, TRUE, TRUE); } winunlock(w); } diff -r ff3404f79037 src/cmd/acme/text.c --- a/src/cmd/acme/text.c Sat Jan 19 10:05:12 2013 +0100 +++ b/src/cmd/acme/text.c Fri Apr 05 22:52:55 2013 +0200 @@ -662,8 +662,12 @@ Rune *rp; Text *u; - if(t->what!=Body && t->what!=Tag && r=='\n') - return; + if(t->what!=Body && r=='\n'){ + if(t->what!=Tag) + return; + if(neverexpandtag == TRUE) + return; + } if(t->what == Tag) t->w->tagsafe = FALSE; @@ -756,9 +760,9 @@ Tagdown: /* expand tag to show all text */ - if(!t->w->tagexpand){ + if(neverexpandtag == FALSE){ t->w->tagexpand = TRUE; - winresize(t->w, t->w->r, FALSE, TRUE); + winresize(t->w, t->w->r, FALSE, TRUE); } return; diff -r ff3404f79037 src/cmd/acme/wind.c --- a/src/cmd/acme/wind.c Sat Jan 19 10:05:12 2013 +0100 +++ b/src/cmd/acme/wind.c Fri Apr 05 22:52:55 2013 +0200 @@ -24,7 +24,8 @@ w->tag.w = w; w->taglines = 1; - w->tagexpand = TRUE; + if(neverexpandtag == FALSE) + w->tagexpand = TRUE; w->body.w = w; w->id = ++winid; incref(&w->ref);