unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: martin rudalics <rudalics@gmx.at>
Cc: emacs-devel@gnu.org
Subject: Re: window.el modify current emacs23 behavior of anything.
Date: Sat, 17 Sep 2011 19:06:56 +0200	[thread overview]
Message-ID: <87pqiz3xov.fsf@gmail.com> (raw)
In-Reply-To: <4E745D84.8050301@gmx.at> (martin rudalics's message of "Sat, 17 Sep 2011 10:42:44 +0200")

martin rudalics <rudalics@gmx.at> writes:

>>> What does that mean "fails when called with no arg".  What did you
>>> expect it to do and what does it do instead?
>>
>> When `bury-buffer' is called, normally the anything-buffer is removed
>> from window and the action function move the position to the desired
>> position in the `anything-current-buffer' (generaly, it can be another
>> buffer), in this case the action is ibuffer.
>
> What is an "action function" and what is the "desired position" in the
> `anything-current-buffer'?  I suppose `bury-buffer' does restore the old
> position the buffer shown instead of the buried buffer had in that
> window before the buried buffer was shown.  So the sequence is
> apparently
>
> (1) Window W shows buffer B with window-start S and window-point P.
>
> (2) In W you show buffer BB instead.
>
> (3) You bury buffer BB.  `bury-buffer' now shows buffer B again with
>     window-point P and, if possible, window-start S.
>
> But for some reason after (3) you want to show B with another
> `window-point' position.  Is that analysis correct?

Yes that is correct.

The action function is the function that jump to another position than
the initial one in buffer B.
Where buffer B is `anything-current-buffer' and BB is `anything-buffer'

To reproduce with anything from any .el file:

M-: (setq anything-samewindow t)
M-x anything-imenu
Jump to any position far of your initial one in this buffer.

-- 
A+ Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997 



  reply	other threads:[~2011-09-17 17:06 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-12  6:04 window.el modify current emacs23 behavior of anything Thierry Volpiatto
2011-09-12  6:38 ` Thierry Volpiatto
2011-09-12  7:22   ` Thierry Volpiatto
2011-09-12  7:24   ` Eli Zaretskii
2011-09-12  8:52     ` Thierry Volpiatto
2011-09-12  9:03 ` martin rudalics
2011-09-12 23:26   ` Thierry Volpiatto
2011-09-13 18:28 ` martin rudalics
2011-09-13 19:12   ` Thierry Volpiatto
2011-09-16 16:36   ` Thierry Volpiatto
2011-09-16 17:10     ` martin rudalics
2011-09-16 19:34       ` Thierry Volpiatto
2011-09-17  8:42         ` martin rudalics
2011-09-17 17:06           ` Thierry Volpiatto [this message]
2011-09-17 17:28             ` martin rudalics
2011-09-18  9:08               ` Thierry Volpiatto
2011-09-19 19:35                 ` Stefan Monnier
2011-09-20 16:07                   ` martin rudalics
2011-09-20 22:08                     ` Stefan Monnier
2011-09-21  6:34                       ` Thierry Volpiatto
2011-09-21  8:35                         ` martin rudalics
2011-09-21  8:34                       ` martin rudalics
2011-09-21 12:59                         ` Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2011-09-16 14:23 Dmitry Gutov

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=87pqiz3xov.fsf@gmail.com \
    --to=thierry.volpiatto@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=rudalics@gmx.at \
    /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).