unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [ELPA] New package proposal: buffer-expose
@ 2019-02-23  0:09 Clemens Radermacher
  2019-02-23  9:22 ` Uwe Brauer
                   ` (3 more replies)
  0 siblings, 4 replies; 19+ messages in thread
From: Clemens Radermacher @ 2019-02-23  0:09 UTC (permalink / raw)
  To: emacs-devel

Hi all,

this package provides visual buffer switching using a window grid (see the screenshot in the README).
Code can be found at https://github.com/clemera/buffer-expose. 

-- 
Clemens



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [ELPA] New package proposal: buffer-expose
  2019-02-23  0:09 [ELPA] New package proposal: buffer-expose Clemens Radermacher
@ 2019-02-23  9:22 ` Uwe Brauer
  2019-02-23  9:28 ` Uwe Brauer
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 19+ messages in thread
From: Uwe Brauer @ 2019-02-23  9:22 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 368 bytes --]

>>> "CR" == Clemens Radermacher <clemens.radermacher@posteo.de> writes:

   > Hi all,

   > this package provides visual buffer switching using a window grid
   > (see the screenshot in the README). Code can be found at
   > https://github.com/clemera/buffer-expose.

Looks very interesting.  Couldn't you put it to MELPA, for easier
testing?

Uwe Brauer 

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5025 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [ELPA] New package proposal: buffer-expose
  2019-02-23  0:09 [ELPA] New package proposal: buffer-expose Clemens Radermacher
  2019-02-23  9:22 ` Uwe Brauer
@ 2019-02-23  9:28 ` Uwe Brauer
  2019-02-23 10:24   ` Clemens Radermacher
  2019-02-23 15:40 ` Stefan Monnier
  2019-02-23 17:18 ` Tadeus Prastowo
  3 siblings, 1 reply; 19+ messages in thread
From: Uwe Brauer @ 2019-02-23  9:28 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 633 bytes --]

>>> "CR" == Clemens Radermacher <clemens.radermacher@posteo.de> writes:

   > Hi all,

   > this package provides visual buffer switching using a window grid
   > (see the screenshot in the README). Code can be found at
   > https://github.com/clemera/buffer-expose.

I couldn't wait, so I cloned and installed it. Works nicely. However
when byte compiling I obtain 

buffer-expose.el:962:1:Warning: the following functions are not known to be defined:
    aw-switch-to-window, avy-handler-default, aw--lead-overlay,
    aw-update, aw-select


I am using GNU emacs, master from a couple of weeks ago.

Uwe Brauer 

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5025 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [ELPA] New package proposal: buffer-expose
  2019-02-23  9:28 ` Uwe Brauer
@ 2019-02-23 10:24   ` Clemens Radermacher
  2019-02-23 13:08     ` Uwe Brauer
  0 siblings, 1 reply; 19+ messages in thread
From: Clemens Radermacher @ 2019-02-23 10:24 UTC (permalink / raw)
  To: Uwe Brauer; +Cc: emacs-devel



> I couldn't wait, so I cloned and installed it. Works nicely. However
> when byte compiling I obtain 
> 
> buffer-expose.el:962:1:Warning: the following functions are not known to be defined:
>     aw-switch-to-window, avy-handler-default, aw--lead-overlay,
>     aw-update, aw-select

Thanks, fixed. Note ace-window is not a dependency it's just optional if you want
to use the command buffer-expose-ace-window. 



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [ELPA] New package proposal: buffer-expose
  2019-02-23 10:24   ` Clemens Radermacher
@ 2019-02-23 13:08     ` Uwe Brauer
  0 siblings, 0 replies; 19+ messages in thread
From: Uwe Brauer @ 2019-02-23 13:08 UTC (permalink / raw)
  To: Clemens Radermacher; +Cc: Uwe Brauer, emacs-devel

[-- Attachment #1: Type: text/plain, Size: 611 bytes --]

>>> "CR" == Clemens Radermacher <clemens.radermacher@posteo.de> writes:

   >> I couldn't wait, so I cloned and installed it. Works nicely. However
   >> when byte compiling I obtain 
   >> 
   >> buffer-expose.el:962:1:Warning: the following functions are not known to be defined:
   >> aw-switch-to-window, avy-handler-default, aw--lead-overlay,
   >> aw-update, aw-select

   > Thanks, fixed. Note ace-window is not a dependency it's just optional if you want
   > to use the command buffer-expose-ace-window. 

Confirmed: latest commit does not cause any problems when byte
compiling. Thanks.

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5025 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [ELPA] New package proposal: buffer-expose
  2019-02-23  0:09 [ELPA] New package proposal: buffer-expose Clemens Radermacher
  2019-02-23  9:22 ` Uwe Brauer
  2019-02-23  9:28 ` Uwe Brauer
@ 2019-02-23 15:40 ` Stefan Monnier
  2019-02-23 17:06   ` Clemens Radermacher
  2019-02-23 17:18 ` Tadeus Prastowo
  3 siblings, 1 reply; 19+ messages in thread
From: Stefan Monnier @ 2019-02-23 15:40 UTC (permalink / raw)
  To: emacs-devel

> this package provides visual buffer switching using a window grid (see the
> screenshot in the README).
> Code can be found at https://github.com/clemera/buffer-expose. 

Cool!  Looking forward to see it in GNU ELPA (and trying it out on my
currently 218-long buffer-list ;-)


        Stefan




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [ELPA] New package proposal: buffer-expose
  2019-02-23 15:40 ` Stefan Monnier
@ 2019-02-23 17:06   ` Clemens Radermacher
  0 siblings, 0 replies; 19+ messages in thread
From: Clemens Radermacher @ 2019-02-23 17:06 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel


> Cool!  Looking forward to see it in GNU ELPA (and trying it out on my
> currently 218-long buffer-list ;-)
> 
> 
>         Stefan

I don't keep as many buffers around usually but the view is loaded page by page. 
I just tested it with 351 buffers and it worked without problems :)


-- 
Clemens



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [ELPA] New package proposal: buffer-expose
  2019-02-23  0:09 [ELPA] New package proposal: buffer-expose Clemens Radermacher
                   ` (2 preceding siblings ...)
  2019-02-23 15:40 ` Stefan Monnier
@ 2019-02-23 17:18 ` Tadeus Prastowo
  2019-02-23 18:09   ` Clément Pit-Claudel
  3 siblings, 1 reply; 19+ messages in thread
From: Tadeus Prastowo @ 2019-02-23 17:18 UTC (permalink / raw)
  To: Clemens Radermacher; +Cc: emacs-devel

Hi Clemens,

On Sat, Feb 23, 2019 at 1:10 AM Clemens Radermacher
<clemens.radermacher@posteo.de> wrote:
>
> Hi all,
>
> this package provides visual buffer switching using a window grid (see the screenshot in the README).
> Code can be found at https://github.com/clemera/buffer-expose.

Looking at the screenshot, I have a question: does buffer-expose
automatically zoom out the content of each buffer?  If so, why the
top-right corner is not zoomed out like the rest?

Thank you.

> --
> Clemens

--
Best regards,
Tadeus



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [ELPA] New package proposal: buffer-expose
  2019-02-23 17:18 ` Tadeus Prastowo
@ 2019-02-23 18:09   ` Clément Pit-Claudel
  2019-02-23 18:43     ` Tadeus Prastowo
  2019-02-23 18:50     ` Eli Zaretskii
  0 siblings, 2 replies; 19+ messages in thread
From: Clément Pit-Claudel @ 2019-02-23 18:09 UTC (permalink / raw)
  To: emacs-devel

On 23/02/2019 12.18, Tadeus Prastowo wrote:
> If so, why the
> top-right corner is not zoomed out like the rest?

The top-right corner seems to be a PNG. IIUC, buffer-expose uses face remapping to scale all faces, but that doesn't affect images.



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [ELPA] New package proposal: buffer-expose
  2019-02-23 18:09   ` Clément Pit-Claudel
@ 2019-02-23 18:43     ` Tadeus Prastowo
  2019-02-23 18:48       ` Clemens Radermacher
  2019-02-23 18:50     ` Eli Zaretskii
  1 sibling, 1 reply; 19+ messages in thread
From: Tadeus Prastowo @ 2019-02-23 18:43 UTC (permalink / raw)
  To: Clément Pit-Claudel; +Cc: emacs-devel

On Sat, Feb 23, 2019 at 7:10 PM Clément Pit-Claudel
<cpitclaudel@gmail.com> wrote:
>
> On 23/02/2019 12.18, Tadeus Prastowo wrote:
> > If so, why the
> > top-right corner is not zoomed out like the rest?
>
> The top-right corner seems to be a PNG. IIUC, buffer-expose uses face remapping to scale all faces, but that doesn't affect images.

Ah, okay, I see that now.  But, is it hard to also re-scale images
automatically?

--
Best regards,
Tadeus



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [ELPA] New package proposal: buffer-expose
  2019-02-23 18:43     ` Tadeus Prastowo
@ 2019-02-23 18:48       ` Clemens Radermacher
  2019-02-23 18:59         ` Tadeus Prastowo
  0 siblings, 1 reply; 19+ messages in thread
From: Clemens Radermacher @ 2019-02-23 18:48 UTC (permalink / raw)
  To: Tadeus Prastowo; +Cc: Clément Pit-Claudel, emacs-devel


> Ah, okay, I see that now.  But, is it hard to also re-scale images
> automatically?

It could be done, but I'm not sure if it's worth the effort. I would rather use
an image viewer for something like that.

-- 
Clemens



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [ELPA] New package proposal: buffer-expose
  2019-02-23 18:09   ` Clément Pit-Claudel
  2019-02-23 18:43     ` Tadeus Prastowo
@ 2019-02-23 18:50     ` Eli Zaretskii
  2019-02-23 19:00       ` Tadeus Prastowo
  1 sibling, 1 reply; 19+ messages in thread
From: Eli Zaretskii @ 2019-02-23 18:50 UTC (permalink / raw)
  To: Clément Pit-Claudel; +Cc: emacs-devel

> From: Clément Pit-Claudel <cpitclaudel@gmail.com>
> Date: Sat, 23 Feb 2019 13:09:41 -0500
> 
> On 23/02/2019 12.18, Tadeus Prastowo wrote:
> > If so, why the
> > top-right corner is not zoomed out like the rest?
> 
> The top-right corner seems to be a PNG. IIUC, buffer-expose uses face remapping to scale all faces, but that doesn't affect images.

Emacs on master branch can now scale images natively on all platforms,
so this could be improved, I think.



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [ELPA] New package proposal: buffer-expose
  2019-02-23 18:48       ` Clemens Radermacher
@ 2019-02-23 18:59         ` Tadeus Prastowo
  2019-02-23 19:07           ` Clemens Radermacher
  2019-02-23 21:24           ` Clément Pit-Claudel
  0 siblings, 2 replies; 19+ messages in thread
From: Tadeus Prastowo @ 2019-02-23 18:59 UTC (permalink / raw)
  To: Clemens Radermacher; +Cc: Clément Pit-Claudel, emacs-devel

On Sat, Feb 23, 2019 at 7:48 PM Clemens Radermacher
<clemens.radermacher@posteo.de> wrote:
>
>
> > Ah, okay, I see that now.  But, is it hard to also re-scale images
> > automatically?
>
> It could be done, but I'm not sure if it's worth the effort. I would rather use
> an image viewer for something like that.

I see.  I ask the question because the screenshot brings up the usual
use-case of seeing iconified GUI windows (in Ubuntu, for example, by
pressing Alt+Tab).  In that use-case, it helps to see iconified images
being zoomed out as well, for example, when using GIMP.

Thank you for responding.

> --
> Clemens

--
Best regards,
Tadeus



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [ELPA] New package proposal: buffer-expose
  2019-02-23 18:50     ` Eli Zaretskii
@ 2019-02-23 19:00       ` Tadeus Prastowo
  2019-02-23 19:45         ` Eli Zaretskii
  0 siblings, 1 reply; 19+ messages in thread
From: Tadeus Prastowo @ 2019-02-23 19:00 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Clément Pit-Claudel, emacs-devel

On Sat, Feb 23, 2019 at 7:51 PM Eli Zaretskii <eliz@gnu.org> wrote:
>
> > From: Clément Pit-Claudel <cpitclaudel@gmail.com>
> > Date: Sat, 23 Feb 2019 13:09:41 -0500
> >
> > On 23/02/2019 12.18, Tadeus Prastowo wrote:
> > > If so, why the
> > > top-right corner is not zoomed out like the rest?
> >
> > The top-right corner seems to be a PNG. IIUC, buffer-expose uses face remapping to scale all faces, but that doesn't affect images.
>
> Emacs on master branch can now scale images natively on all platforms,
> so this could be improved, I think.

What is the name of the Elisp function to do that?

--
Best regards,
Tadeus



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [ELPA] New package proposal: buffer-expose
  2019-02-23 18:59         ` Tadeus Prastowo
@ 2019-02-23 19:07           ` Clemens Radermacher
  2019-02-23 21:24           ` Clément Pit-Claudel
  1 sibling, 0 replies; 19+ messages in thread
From: Clemens Radermacher @ 2019-02-23 19:07 UTC (permalink / raw)
  To: Tadeus Prastowo; +Cc: Clément Pit-Claudel, emacs-devel

> I see.  I ask the question because the screenshot brings up the usual
> use-case of seeing iconified GUI windows (in Ubuntu, for example, by
> pressing Alt+Tab).  In that use-case, it helps to see iconified images
> being zoomed out as well, for example, when using GIMP.

I didn't knew it could be done natively with recent Emacs. Maybe I should give
this a try, patches welcome, of course :)

-- 
Clemens



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [ELPA] New package proposal: buffer-expose
  2019-02-23 19:00       ` Tadeus Prastowo
@ 2019-02-23 19:45         ` Eli Zaretskii
  2019-02-24 13:35           ` Tadeus Prastowo
  0 siblings, 1 reply; 19+ messages in thread
From: Eli Zaretskii @ 2019-02-23 19:45 UTC (permalink / raw)
  To: Tadeus Prastowo; +Cc: cpitclaudel, emacs-devel

> From: Tadeus Prastowo <tadeus.prastowo@unitn.it>
> Date: Sat, 23 Feb 2019 20:00:31 +0100
> Cc: Clément Pit-Claudel <cpitclaudel@gmail.com>, 
> 	emacs-devel@gnu.org
> 
> What is the name of the Elisp function to do that?

It's not a function, it's the :scale parameter of the image spec.
Take a look at how image--change-size uses that.



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [ELPA] New package proposal: buffer-expose
  2019-02-23 18:59         ` Tadeus Prastowo
  2019-02-23 19:07           ` Clemens Radermacher
@ 2019-02-23 21:24           ` Clément Pit-Claudel
  2019-02-24 13:41             ` Tadeus Prastowo
  1 sibling, 1 reply; 19+ messages in thread
From: Clément Pit-Claudel @ 2019-02-23 21:24 UTC (permalink / raw)
  To: Tadeus Prastowo, Clemens Radermacher; +Cc: emacs-devel

On 23/02/2019 13.59, Tadeus Prastowo wrote:
> On Sat, Feb 23, 2019 at 7:48 PM Clemens Radermacher
> <clemens.radermacher@posteo.de> wrote:
>>
>>
>>> Ah, okay, I see that now.  But, is it hard to also re-scale images
>>> automatically?
>>
>> It could be done, but I'm not sure if it's worth the effort. I would rather use
>> an image viewer for something like that.
> 
> I see.  I ask the question because the screenshot brings up the usual
> use-case of seeing iconified GUI windows (in Ubuntu, for example, by
> pressing Alt+Tab).  In that use-case, it helps to see iconified images
> being zoomed out as well, for example, when using GIMP.

Indeed (relatedly, it would be great to get this feature working smoothly with https://github.com/ch11ng/exwm).
Also, in a copy of emacs built with cairo, it should be possible to render each buffer to be displayed into a cairo surface, and scale that surface losslessly to generate previews.  I wonder how hard this would be to do in practice.

Clément. 



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [ELPA] New package proposal: buffer-expose
  2019-02-23 19:45         ` Eli Zaretskii
@ 2019-02-24 13:35           ` Tadeus Prastowo
  0 siblings, 0 replies; 19+ messages in thread
From: Tadeus Prastowo @ 2019-02-24 13:35 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Clément Pit-Claudel, emacs-devel

On Sat, Feb 23, 2019 at 8:45 PM Eli Zaretskii <eliz@gnu.org> wrote:
>
> > From: Tadeus Prastowo <tadeus.prastowo@unitn.it>
> > Date: Sat, 23 Feb 2019 20:00:31 +0100
> > Cc: Clément Pit-Claudel <cpitclaudel@gmail.com>,
> >       emacs-devel@gnu.org
> >
> > What is the name of the Elisp function to do that?
>
> It's not a function, it's the :scale parameter of the image spec.
> Take a look at how image--change-size uses that.

I see.  That's cool!  Thanks, Eli.

--
Best regards,
Tadeus



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [ELPA] New package proposal: buffer-expose
  2019-02-23 21:24           ` Clément Pit-Claudel
@ 2019-02-24 13:41             ` Tadeus Prastowo
  0 siblings, 0 replies; 19+ messages in thread
From: Tadeus Prastowo @ 2019-02-24 13:41 UTC (permalink / raw)
  To: Clément Pit-Claudel; +Cc: Clemens Radermacher, emacs-devel

On Sat, Feb 23, 2019 at 10:24 PM Clément Pit-Claudel
<cpitclaudel@gmail.com> wrote:
> (relatedly, it would be great to get this feature working smoothly with https://github.com/ch11ng/exwm).

Exwm is something I didn't know before.  Thanks for your information.

> Clément.

--
Best regards,
Tadeus



^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2019-02-24 13:41 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-23  0:09 [ELPA] New package proposal: buffer-expose Clemens Radermacher
2019-02-23  9:22 ` Uwe Brauer
2019-02-23  9:28 ` Uwe Brauer
2019-02-23 10:24   ` Clemens Radermacher
2019-02-23 13:08     ` Uwe Brauer
2019-02-23 15:40 ` Stefan Monnier
2019-02-23 17:06   ` Clemens Radermacher
2019-02-23 17:18 ` Tadeus Prastowo
2019-02-23 18:09   ` Clément Pit-Claudel
2019-02-23 18:43     ` Tadeus Prastowo
2019-02-23 18:48       ` Clemens Radermacher
2019-02-23 18:59         ` Tadeus Prastowo
2019-02-23 19:07           ` Clemens Radermacher
2019-02-23 21:24           ` Clément Pit-Claudel
2019-02-24 13:41             ` Tadeus Prastowo
2019-02-23 18:50     ` Eli Zaretskii
2019-02-23 19:00       ` Tadeus Prastowo
2019-02-23 19:45         ` Eli Zaretskii
2019-02-24 13:35           ` Tadeus Prastowo

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).