From: martin rudalics <rudalics@gmx.at>
To: Lukasz Pawelczyk <havner@gmail.com>
Cc: "16909@debbugs.gnu.org" <16909@debbugs.gnu.org>
Subject: bug#16909: 24.3; scrolling *Completions* window with tab sometimes chooses a wrong window
Date: Wed, 05 Mar 2014 15:03:34 +0100 [thread overview]
Message-ID: <53172EB6.4010902@gmx.at> (raw)
In-Reply-To: <CACL4Mm8_EeAurDP1zCtg+WJoWiaHAv5-OBXmJ3m6_Ns4HT26Vw@mail.gmail.com>
> If the 'other-window-scroll-buffer' is pointing to a dead buffer
> 'scroll-other-window'
> does not fallback to its normal behaviour. You get an 'invalid buffer'
> message.
Hopefully not any more. Did you try the latest trunk?
> So we don't have to kill the *Completions* buffer. We need to set the
> variable back
> to nil to resume normal user operations after using auto complete scrolling.
We can now kill the *Completions* buffer as well. We only have to be
sure what's easier - keeping track of `other-window-scroll-buffer' and
resetting it or killing the buffer. Somewhere there should be a
`quit-restore-window' call around, responsible for accomplishing part of
that task already.
> My investigation was to figure out what is going on, not precisely where to
> fix it and was
> based on semantic's autocomplete which behaves exactly the same. I just
> thought
> that reporting this in base emacs functionality might get a higher chance
> to get
> attention. And the mechanism and a cause seems to be exactly the same.
> I didn't manage to pinpoint where it happens in case of elisp auto complete.
> Only for semantic displayor one (which needs fixing as well).
Then try fixing that. At the time of displaying the *Completions*
buffer set `other-window-scroll-buffer' to the *Completions* buffer. At
the time of removing that window (I hope it gets removed) reset
`other-window-scroll-buffer' to nil or kill the *Completions* buffer.
Writing this should be simple once you know where to apply the changes.
The more important task is to give it some testing.
martin
next prev parent reply other threads:[~2014-03-05 14:03 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-28 16:41 bug#16909: 24.3; scrolling *Completions* window with tab sometimes chooses a wrong window Lukasz Pawelczyk
2014-02-28 18:24 ` martin rudalics
2014-02-28 18:28 ` Lukasz Pawelczyk
2014-03-01 11:54 ` martin rudalics
2014-03-01 12:11 ` Lukasz Pawelczyk
2014-03-01 19:18 ` martin rudalics
2014-03-04 23:22 ` Lukasz Pawelczyk
2014-03-05 7:26 ` martin rudalics
2014-03-05 9:48 ` Lukasz Pawelczyk
2014-03-05 14:03 ` martin rudalics [this message]
2014-03-06 10:43 ` Lukasz Pawelczyk
2014-03-06 17:27 ` martin rudalics
2022-02-13 9:16 ` Lars Ingebrigtsen
2022-03-13 20:35 ` Lars Ingebrigtsen
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=53172EB6.4010902@gmx.at \
--to=rudalics@gmx.at \
--cc=16909@debbugs.gnu.org \
--cc=havner@gmail.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.