unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: mark.lillibridge@hp.com
Cc: 9831@debbugs.gnu.org
Subject: bug#9831: cause of bug found!  [PATCH]
Date: Sun, 23 Oct 2011 11:19:43 +0200	[thread overview]
Message-ID: <4EA3DC2F.9040303@gmx.at> (raw)
In-Reply-To: <qmh8vochg5c.fsf@hp.com>

 >     Because this bug doesn't occur in Emacs 22, I compared to that code's
 > version of rmail-summary:

I'm not convinced that the issue you see is related to that reported by
the OP.  But since I'm not familiar with rmail could you please explain
to me what happens and what should happen below.

 > [Rmail 22]
 > (defun rmail-summary ()
 >   "Display a summary of all messages, one line per message."
 >   (interactive)
 >   (rmail-new-summary "All" '(rmail-summary) nil))
 >
 > [Rmail 23.3]
 > (defun rmail-summary ()
 >   "Display a summary of all messages, one line per message."
 >   (interactive)
 >   (rmail-new-summary "All" '(rmail-summary) nil)
 >   (unless (get-buffer-window rmail-buffer)
 >     (rmail-summary-beginning-of-message)))
 >
 >
 >     As you can see, some well-meaning person added the functionality of
 > move-to-start-of-message to the display summary command ('h') and broke
 > rmail-output and associated functions.  I checked and none of the other
 > summary generating functions (e.g., rmail-summary-by-labels) have this
 > functionality (added).

I seem to understand that you show in some window a buffer called
rmail-buffer, presumably containing some messages you read.  Now you
want to produce a summary in a buffer called rmail-summary-buffer and do
this by invoking the command `rmail-summary'.  That command winds up by
calling `rmail-summary-show-message' which does `rmail-pop-to-buffer' on
rmail-buffer (I don't understand why it does do that).  Anyway, since
that buffer already appears on some window, `rmail-summary-show-message'
should in principle reuse that window and IIUC not change that window's
point, i.e., not change what you see in that window.

But if my summary is correct then

   (rmail-new-summary "All" '(rmail-summary) nil)

should always make sure that rmail-buffer appears in some window and the
test coming next

   (unless (get-buffer-window rmail-buffer)
     (rmail-summary-beginning-of-message)))

should always fail (unless rmail-buffer is shown on another frame) so no
such deliberate movement should occur.

However, my summary apparently fails to tell what you see, so could you
please tell me what happens instead and why?

And, as mentioned above, I don't understand how what you describe here
corresponds to the bug reported by John: His seems a problem with the
command invoked by typing `o' yours when typing `h'.

martin





  reply	other threads:[~2011-10-23  9:19 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-22 11:08 bug#9831: 24.0.90; o and c-o in RMAIL change buffer john ffitch
2011-10-22 20:06 ` bug#9831: narrowing the bug down Mark Lillibridge
2011-10-22 20:45   ` Mark Lillibridge
2011-10-22 21:26     ` bug#9831: cause of bug found! [PATCH] Mark Lillibridge
2011-10-23  9:19       ` martin rudalics [this message]
2011-10-23 20:21         ` Mark Lillibridge
2011-10-24  9:31           ` martin rudalics
2011-10-27  2:53             ` Mark Lillibridge
2011-10-27  9:52               ` martin rudalics
2011-10-27  3:09 ` bug#9831: Your bug report re: o and c-o in RMAIL change buffer Mark Lillibridge
2011-11-14  9:32   ` bug#9831: " Glenn Morris

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://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=4EA3DC2F.9040303@gmx.at \
    --to=rudalics@gmx.at \
    --cc=9831@debbugs.gnu.org \
    --cc=mark.lillibridge@hp.com \
    /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://git.savannah.gnu.org/cgit/emacs.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).