unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Nelson Elhage <nelhage@MIT.EDU>
To: Carl Worth <cworth@cworth.org>, notmuch@notmuchmail.org
Subject: Re: [PATCH 2/2] emacs: notmuch-search-mode: wrap the documentation string
Date: Mon, 08 Nov 2010 12:59:18 -0500	[thread overview]
Message-ID: <87k4knbssp.fsf@mit.edu> (raw)
In-Reply-To: <87pqufbt5v.fsf@mit.edu>

Oh, I see the problem. I wasn't paying attention -- the problem is that
C-h f substitutes "M-x <command-name>" for those keybindings, instead of
a keystroke, which is why it looks weird. That's annoying, but I'm not
sure what we can do, so I guess let's drop this patch in favor of it
looking good in the builtin help.

- Nelson

On Mon, 08 Nov 2010 12:51:24 -0500, Nelson Elhage <nelhage@MIT.EDU> wrote:
> Hm. I was looking at the result of C-h f notmuch-search-mode RET, which
> is how I'm used to looking at emacs documentation inside emacs. Having
> just checked with an 'emacs -q', it looks like the notmuch "?" buffer
> does wrap the docstring, but C-h f does not.
> 
> I feel like the right answer here is probably to make notmuch-help do
> the right thing with manually-wrapped text, since that's the standard
> thing for emacs documentation, and what emacs' built-in documentation
> expects. I can try to come up with a patch that does that if you agree.
> 
> - Nelson
> 
> On Mon, 08 Nov 2010 09:35:47 -0800, Carl Worth <cworth@cworth.org> wrote:
> > On Fri, 14 May 2010 16:42:07 -0400, Nelson Elhage <nelhage@MIT.EDU> wrote:
> > > This makes for easier reading in the *help* window.
> > 
> > How are you getting unpleasant results here?
> > 
> > I intentionally implemented manual, "incorrect" wrapping in the
> > source. The idea is that once the text is actually displayed (whether
> > view `notmuch-help' or `describe-mode') those long command names should
> > be substituted by shorter keybindings and the final result should be
> > wrapped nicely.
> > 
> > For example, what I currently get after pressing "?" in a notmuch-search
> > buffer is as follows:
> > 
> > ---
> > Pressing RET on any line displays that thread. The '+' and '-'
> > keys can be used to add or remove tags from a thread. The 'a' key
> > is a convenience for archiving a thread (removing the "inbox"
> > tag). The '*' key can be used to add or remove a tag from all
> > threads in the current buffer.
> > 
> > Other useful commands are 'f' for filtering the current search
> > based on an additional query string, 't' for filtering to include
> > only messages with a given tag, and 's' to execute a new, global
> > search.
> > ---
> > 
> > And I think your wrapping change would make that displayed result
> > incorrect.
> > 
> > Is there something different about your environment that's making this
> > not work as desired?
> > 
> > -Carl
> > 
> > -- 
> > carl.d.worth@intel.com
> Non-text part: application/pgp-signature
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch
> 

  reply	other threads:[~2010-11-08 17:59 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-14 20:42 [PATCH 0/2]: emacs: Improve notmuch-help Nelson Elhage
2010-05-14 20:42 ` [PATCH 1/2] emacs: notmuch-help: Integrate into the emacs help system Nelson Elhage
2010-05-14 22:29   ` Sebastian Spaeth
2010-05-14 22:47     ` Sebastian Spaeth
2010-05-15 21:07       ` Nelson Elhage
2010-11-08 17:29         ` Carl Worth
2010-11-08 17:53           ` Nelson Elhage
2010-05-14 20:42 ` [PATCH 2/2] emacs: notmuch-search-mode: wrap the documentation string Nelson Elhage
2010-11-08 17:35   ` Carl Worth
2010-11-08 17:51     ` Nelson Elhage
2010-11-08 17:59       ` Nelson Elhage [this message]
2010-05-14 20:46 ` [PATCH 0/2]: emacs: Improve notmuch-help Nelson Elhage
2010-11-08 17:39   ` Carl Worth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k4knbssp.fsf@mit.edu \
    --to=nelhage@mit.edu \
    --cc=cworth@cworth.org \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

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 read-only IMAP folder(s) and NNTP newsgroup(s).