Gnus development mailing list
 help / color / mirror / Atom feed
* Bind 'w' to a more useful function
@ 2007-07-02 17:28 Leo
  2007-07-02 19:00 ` Reiner Steib
  0 siblings, 1 reply; 16+ messages in thread
From: Leo @ 2007-07-02 17:28 UTC (permalink / raw)
  To: ding

Dear all,

In summary buffer, 'w' is bound to a function that is barely used. I
wonder would it make more sense to bind it to
`gnus-article-fill-cited-article'.

HTH,
-- 
Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Bind 'w' to a more useful function
  2007-07-02 17:28 Bind 'w' to a more useful function Leo
@ 2007-07-02 19:00 ` Reiner Steib
  2007-07-02 19:55   ` Leo
  2010-08-30 23:01   ` Lars Magne Ingebrigtsen
  0 siblings, 2 replies; 16+ messages in thread
From: Reiner Steib @ 2007-07-02 19:00 UTC (permalink / raw)
  To: ding

On Mon, Jul 02 2007, Leo wrote:

> In summary buffer, 'w' is bound to a function that is barely used. I
> wonder would it make more sense to bind it to
> `gnus-article-fill-cited-article'.

Whether `gnus-summary-stop-page-breaking' deserves a single lowercase
key binding is discussable[1].  But `W w' is simple enough to type as
well.  If we'd remove `gnus-summary-stop-page-breaking' from `w', we
should reserve it for a more important function.

In the thread [1], Lars suggested:

,----[ http://article.gmane.org/gmane.emacs.gnus.general/62839 ]
| Here's an idea: How about if we unbind a couple of the blatantly silly
| single-letter bindings in the summary buffer now (`i' and `w' being
| excellent candidates) so that we can bind them at a later point (say,
| a few years) to more exciting commands?
`----

I won't object if someone would go ahead and [submit a patch to]
remove(s) the `i' and `w' from the code an the documentation in No
Gnus.

Bye, Reiner.

[1] In face I suggested `w' as a candidate for removing it's single
    letter binding:
    http://thread.gmane.org/gmane.emacs.gnus.general/61766/focus=62838
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Bind 'w' to a more useful function
  2007-07-02 19:00 ` Reiner Steib
@ 2007-07-02 19:55   ` Leo
  2007-07-02 20:13     ` Reiner Steib
  2010-08-30 23:01   ` Lars Magne Ingebrigtsen
  1 sibling, 1 reply; 16+ messages in thread
From: Leo @ 2007-07-02 19:55 UTC (permalink / raw)
  To: ding

On 02/07/2007, Reiner Steib wrote:
> On Mon, Jul 02 2007, Leo wrote:
>
>> In summary buffer, 'w' is bound to a function that is barely used. I
>> wonder would it make more sense to bind it to
>> `gnus-article-fill-cited-article'.
>
> Whether `gnus-summary-stop-page-breaking' deserves a single lowercase
> key binding is discussable[1].  But `W w' is simple enough to type as
> well.  If we'd remove `gnus-summary-stop-page-breaking' from `w', we
> should reserve it for a more important function.

Do you have any candidate on your mind? altho W w is easy enough to
type, it is still painful in a group that most of the articles are
ugly. Those groups usually have users using outlook.

-- 
Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Bind 'w' to a more useful function
  2007-07-02 19:55   ` Leo
@ 2007-07-02 20:13     ` Reiner Steib
  0 siblings, 0 replies; 16+ messages in thread
From: Reiner Steib @ 2007-07-02 20:13 UTC (permalink / raw)
  To: ding

On Mon, Jul 02 2007, Leo wrote:

> On 02/07/2007, Reiner Steib wrote:
>> If we'd remove `gnus-summary-stop-page-breaking' from `w', we
>> should reserve it for a more important function.
>
> Do you have any candidate on your mind? 

No, we'd just reserve it for some future spiffy new feature as
discussed in the cited thread.  (Changing it's meaning at once might
be too abrupt, so a transition phase is a good idea so that previous
users off `w' aren't surprised to much.)

> altho W w is easy enough to type, it is still painful in a group
> that most of the articles are ugly. Those groups usually have users
> using outlook.

Maybe setting the corresponding treat variable
(`gnus-treat-fill-article'?) for this group is an option for you.  Or
just steal `w' if this function is important for you.  Or use `v' or
`v v' (`v ...' is reserved for the user).

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Bind 'w' to a more useful function
  2007-07-02 19:00 ` Reiner Steib
  2007-07-02 19:55   ` Leo
@ 2010-08-30 23:01   ` Lars Magne Ingebrigtsen
  2010-08-31  3:25     ` Leo
  1 sibling, 1 reply; 16+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-08-30 23:01 UTC (permalink / raw)
  To: ding

Reiner Steib <reinersteib+gmane@imap.cc> writes:

> In the thread [1], Lars suggested:
>
> ,----[ http://article.gmane.org/gmane.emacs.gnus.general/62839 ]
> | Here's an idea: How about if we unbind a couple of the blatantly silly
> | single-letter bindings in the summary buffer now (`i' and `w' being
> | excellent candidates) so that we can bind them at a later point (say,
> | a few years) to more exciting commands?
> `----
>
> I won't object if someone would go ahead and [submit a patch to]
> remove(s) the `i' and `w' from the code an the documentation in No
> Gnus.

It was still in the code, so I removed it now.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Bind 'w' to a more useful function
  2010-08-30 23:01   ` Lars Magne Ingebrigtsen
@ 2010-08-31  3:25     ` Leo
  2010-08-31 13:00       ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 16+ messages in thread
From: Leo @ 2010-08-31  3:25 UTC (permalink / raw)
  To: ding

On 2010-08-31 00:01 +0100, Lars Magne Ingebrigtsen wrote:
> It was still in the code, so I removed it now.

I bound w to gnus-article-fill-cited-article since these days more and
more people write one line per paragraph.

Leo




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Bind 'w' to a more useful function
  2010-08-31  3:25     ` Leo
@ 2010-08-31 13:00       ` Lars Magne Ingebrigtsen
  2010-08-31 13:08         ` Leo
  0 siblings, 1 reply; 16+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-08-31 13:00 UTC (permalink / raw)
  To: ding

Leo <sdl.web@gmail.com> writes:

> I bound w to gnus-article-fill-cited-article since these days more and
> more people write one line per paragraph.

Yes...  on the other hand, isn't it time that Gnus did this
automatically by default?  I mean, not
`gnus-article-fill-cited-article', but something that guesses whether
you're reading an unfilled article, and then run
`gnus-article-fill-cited-article' automatically if that seems to be the
case.

Although it's not altogether clear what the heuristics of that should
be...

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Bind 'w' to a more useful function
  2010-08-31 13:00       ` Lars Magne Ingebrigtsen
@ 2010-08-31 13:08         ` Leo
  2010-08-31 13:15           ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 16+ messages in thread
From: Leo @ 2010-08-31 13:08 UTC (permalink / raw)
  To: ding

On 2010-08-31 14:00 +0100, Lars Magne Ingebrigtsen wrote:
>> I bound w to gnus-article-fill-cited-article since these days more and
>> more people write one line per paragraph.
>
> Yes...  on the other hand, isn't it time that Gnus did this
> automatically by default?  I mean, not
> `gnus-article-fill-cited-article', but something that guesses whether
> you're reading an unfilled article, and then run
> `gnus-article-fill-cited-article' automatically if that seems to be the
> case.
>
> Although it's not altogether clear what the heuristics of that should
> be...

I guess it is hard to do it right all the time. For example, I have read
emails with long lines mixed with code snippets. I like the long lines
to be filled but that usually screws up the code.

Leo




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Bind 'w' to a more useful function
  2010-08-31 13:08         ` Leo
@ 2010-08-31 13:15           ` Lars Magne Ingebrigtsen
  2010-08-31 16:34             ` Leo
  2010-08-31 18:29             ` Ted Zlatanov
  0 siblings, 2 replies; 16+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-08-31 13:15 UTC (permalink / raw)
  To: ding

Leo <sdl.web@gmail.com> writes:

> I guess it is hard to do it right all the time. For example, I have read
> emails with long lines mixed with code snippets. I like the long lines
> to be filled but that usually screws up the code.

Yes.  So we need a code snippet that's able to look at a (long) line and guess whether it's natural text or something else.

One heuristic would be if there's a lot of short word-constituent elements, and not too much space.

I mean, the following paragraph has a different signature in that dept than

                                                      (process (start-process
                                                                "images" nil "curl"
                                                                "-s" "--create-dirs"

to take a random example from a buffer.  (This message isn't filled so that I can use it as a test case.)

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Bind 'w' to a more useful function
  2010-08-31 13:15           ` Lars Magne Ingebrigtsen
@ 2010-08-31 16:34             ` Leo
  2010-08-31 18:29             ` Ted Zlatanov
  1 sibling, 0 replies; 16+ messages in thread
From: Leo @ 2010-08-31 16:34 UTC (permalink / raw)
  To: ding

On 2010-08-31 14:15 +0100, Lars Magne Ingebrigtsen wrote:
> I mean, the following paragraph has a different signature in that dept than
>
>                                                       (process (start-process
>                                                                 "images" nil "curl"
>                                                                 "-s" "--create-dirs"
>
> to take a random example from a buffer.  (This message isn't filled so that I can use it as a test case.)

That sounds nice.

Leo




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Bind 'w' to a more useful function
  2010-08-31 13:15           ` Lars Magne Ingebrigtsen
  2010-08-31 16:34             ` Leo
@ 2010-08-31 18:29             ` Ted Zlatanov
  2010-08-31 18:33               ` Lars Magne Ingebrigtsen
  2010-09-01  8:46               ` Steinar Bang
  1 sibling, 2 replies; 16+ messages in thread
From: Ted Zlatanov @ 2010-08-31 18:29 UTC (permalink / raw)
  To: ding

On Tue, 31 Aug 2010 15:15:00 +0200 Lars Magne Ingebrigtsen <larsi@gnus.org> wrote: 

LMI> Leo <sdl.web@gmail.com> writes:
>> I guess it is hard to do it right all the time. For example, I have read
>> emails with long lines mixed with code snippets. I like the long lines
>> to be filled but that usually screws up the code.

LMI> Yes.  So we need a code snippet that's able to look at a (long) line and guess whether it's natural text or something else.

LMI> One heuristic would be if there's a lot of short word-constituent elements, and not too much space.

LMI> I mean, the following paragraph has a different signature in that dept than

LMI>                                                       (process (start-process
LMI>                                                                 "images" nil "curl"
LMI>                                                                 "-s" "--create-dirs"

LMI> to take a random example from a buffer.  (This message isn't filled so that I can use it as a test case.)

I'm not optimistic.  Maybe Lisp+English will work, but natural text is
really hard to parse and source code too.

Ted




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Bind 'w' to a more useful function
  2010-08-31 18:29             ` Ted Zlatanov
@ 2010-08-31 18:33               ` Lars Magne Ingebrigtsen
  2010-08-31 19:00                 ` Ted Zlatanov
  2010-09-01  8:46               ` Steinar Bang
  1 sibling, 1 reply; 16+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-08-31 18:33 UTC (permalink / raw)
  To: ding

Ted Zlatanov <tzz@lifelogs.com> writes:

> I'm not optimistic.  Maybe Lisp+English will work, but natural text is
> really hard to parse and source code too.

It is.  I've been googling around to try to see whether anybody has
established a "best effort" consensus anywhere on this point, and I
haven't found anything.

And I haven't been able to come up with anything really useful on my
own. 

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Bind 'w' to a more useful function
  2010-08-31 18:33               ` Lars Magne Ingebrigtsen
@ 2010-08-31 19:00                 ` Ted Zlatanov
  2010-08-31 19:03                   ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 16+ messages in thread
From: Ted Zlatanov @ 2010-08-31 19:00 UTC (permalink / raw)
  To: ding

On Tue, 31 Aug 2010 20:33:09 +0200 Lars Magne Ingebrigtsen <larsi@gnus.org> wrote: 

LMI> Ted Zlatanov <tzz@lifelogs.com> writes:
>> I'm not optimistic.  Maybe Lisp+English will work, but natural text is
>> really hard to parse and source code too.

LMI> It is.  I've been googling around to try to see whether anybody has
LMI> established a "best effort" consensus anywhere on this point, and I
LMI> haven't found anything.

LMI> And I haven't been able to come up with anything really useful on my
LMI> own. 

You could try Markdown's logic:
http://daringfireball.net/projects/markdown/syntax#precode

"To produce a code block in Markdown, simply indent every line of the
block by at least 4 spaces or 1 tab"

So the only exception would be the leading line of a paragraph.

Ted




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Bind 'w' to a more useful function
  2010-08-31 19:00                 ` Ted Zlatanov
@ 2010-08-31 19:03                   ` Lars Magne Ingebrigtsen
  2010-08-31 19:12                     ` Ted Zlatanov
  0 siblings, 1 reply; 16+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-08-31 19:03 UTC (permalink / raw)
  To: ding

Ted Zlatanov <tzz@lifelogs.com> writes:

> You could try Markdown's logic:
> http://daringfireball.net/projects/markdown/syntax#precode
>
> "To produce a code block in Markdown, simply indent every line of the
> block by at least 4 spaces or 1 tab"
>
> So the only exception would be the leading line of a paragraph.

    But people write stuff like this.  And it's not code...

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Bind 'w' to a more useful function
  2010-08-31 19:03                   ` Lars Magne Ingebrigtsen
@ 2010-08-31 19:12                     ` Ted Zlatanov
  0 siblings, 0 replies; 16+ messages in thread
From: Ted Zlatanov @ 2010-08-31 19:12 UTC (permalink / raw)
  To: ding

On Tue, 31 Aug 2010 21:03:57 +0200 Lars Magne Ingebrigtsen <larsi@gnus.org> wrote: 

LMI> Ted Zlatanov <tzz@lifelogs.com> writes:
>> You could try Markdown's logic:
>> http://daringfireball.net/projects/markdown/syntax#precode
>> 
>> "To produce a code block in Markdown, simply indent every line of the
>> block by at least 4 spaces or 1 tab"
>> 
>> So the only exception would be the leading line of a paragraph.

LMI>     But people write stuff like this.  And it's not code...

Generally (in English usage) a fixed indent denotes a quotation, so I
don't think it's a bad heuristic (assuming we're only talking about long
lines, not detecting code in general).

Ted




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Bind 'w' to a more useful function
  2010-08-31 18:29             ` Ted Zlatanov
  2010-08-31 18:33               ` Lars Magne Ingebrigtsen
@ 2010-09-01  8:46               ` Steinar Bang
  1 sibling, 0 replies; 16+ messages in thread
From: Steinar Bang @ 2010-09-01  8:46 UTC (permalink / raw)
  To: ding

>>>>> Ted Zlatanov <tzz@lifelogs.com>:

> I'm not optimistic.  Maybe Lisp+English will work, but natural text is
> really hard to parse and source code too.

For source code just add a dependency to the semantic bovinator.

(For the record: that was a joke!)




^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2010-09-01  8:46 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-02 17:28 Bind 'w' to a more useful function Leo
2007-07-02 19:00 ` Reiner Steib
2007-07-02 19:55   ` Leo
2007-07-02 20:13     ` Reiner Steib
2010-08-30 23:01   ` Lars Magne Ingebrigtsen
2010-08-31  3:25     ` Leo
2010-08-31 13:00       ` Lars Magne Ingebrigtsen
2010-08-31 13:08         ` Leo
2010-08-31 13:15           ` Lars Magne Ingebrigtsen
2010-08-31 16:34             ` Leo
2010-08-31 18:29             ` Ted Zlatanov
2010-08-31 18:33               ` Lars Magne Ingebrigtsen
2010-08-31 19:00                 ` Ted Zlatanov
2010-08-31 19:03                   ` Lars Magne Ingebrigtsen
2010-08-31 19:12                     ` Ted Zlatanov
2010-09-01  8:46               ` Steinar Bang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).