[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: include new package wconf.el in GNU ELPA

From: martin rudalics
Subject: Re: include new package wconf.el in GNU ELPA
Date: Fri, 31 Jul 2015 11:56:13 +0200

> They use `goto-char' in the window which is selected after setting the
> window configuration, so I guess it's the buffer's point.

I still don't get what you want instead.

>    (let ((bufpoints (mapcar
>                (lambda (buf)
>                  (cons buf (with-selected-window (get-buffer-window buf)
>                              (point))))
>                (cl-remove-if-not #'get-buffer-window
>                                  (buffer-list (selected-frame)))))

All you can possibly want here are window-points, the positions of the
cursor in any window shown before or after setting the configuration.
Calling `buffer-list' makes no sense.

> But that's also really bad.  For example, `edebug' uses
> `set-window-configuration' internally, so point always jumps back after
> each edebug step.

`set-window-configuration' should be used only "internally".  It's main
design goal is that the user should _not_ be aware of its existence.

Maybe you could use `window-state-get' and `window-state-put' instead.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]