all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Artur Malabarba <bruce.connor.am@gmail.com>
To: Drew Adams <drew.adams@oracle.com>
Cc: 20921-done@debbugs.gnu.org
Subject: bug#20921: 25.0.50; `tabulated-list-print' bad logic
Date: Mon, 29 Jun 2015 10:12:16 +0100	[thread overview]
Message-ID: <CAAdUY-J4qqR8kWhQoAGV7JDSmm3bBMkyHNKVj-x=HZB3G-yc7w@mail.gmail.com> (raw)
In-Reply-To: <CAAdUY-+zS5Ac4VAQN+w6E0f1dmjKe5kJ1-Q6jo2AcEFxoquHjg@mail.gmail.com>

Should be fixed now.

2015-06-29 1:18 GMT+01:00 Artur Malabarba <bruce.connor.am@gmail.com>:
>
> On Jun 28, 2015 9:46 PM, "Drew Adams" <drew.adams@oracle.com> wrote:
>>
>> This new code seems quite wrong to me:
>>
>> (and remember-pos
>>      (when (eq (window-buffer) (current-buffer))
>>        (setq window-line (count-screen-lines (window-start) (point))))
>>      (setq entry-id (tabulated-list-get-id))
>>      (setq saved-col (current-column)))
>> So that test fails, and none of the variables get assigned
>> values.  This makes no sense to me.
>
> Yes, that's wrong. The window logic should come last, so as to not prevent
> the other variables.
>
>> When code calls `tabulated-list-print', the current buffer must pretty
>> much always be the buffer that will get the tabulated list.  Why the
>> comparison with `window-buffer', which could be anything and which in
>> most cases will *not* be the tabulated-list buffer?
>>
>> This new code looks like it might be a misguided hack to try to deal
>> with the new parameter UPDATE.  Not ready for prime time, I think.
>
> No.
> IIRC, it was necessary because of async refreshing in package.el. It makes
> no sense to store the screen line if current window is not displaying that
> buffer.
> As I said above, blocking the other two variables was unintentional.
>
> I can do that tomorrow if nobody beats me to it.





      reply	other threads:[~2015-06-29  9:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-28 20:46 bug#20921: 25.0.50; `tabulated-list-print' bad logic Drew Adams
2015-06-29  0:18 ` Artur Malabarba
2015-06-29  9:12   ` Artur Malabarba [this message]

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

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

  git send-email \
    --in-reply-to='CAAdUY-J4qqR8kWhQoAGV7JDSmm3bBMkyHNKVj-x=HZB3G-yc7w@mail.gmail.com' \
    --to=bruce.connor.am@gmail.com \
    --cc=20921-done@debbugs.gnu.org \
    --cc=drew.adams@oracle.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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.