unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* ELPA: add mct.el
@ 2021-11-09 17:45 Protesilaos Stavrou
  2021-11-11 10:25 ` Theodor Thornhill
  0 siblings, 1 reply; 5+ messages in thread
From: Protesilaos Stavrou @ 2021-11-09 17:45 UTC (permalink / raw)
  To: emacs-devel; +Cc: Philip Kaludercic, James Norman Vladimir Cash

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

Hello everyone,

I have a package called "Minibuffer and Completions in Tandem" (MCT,
mct, mct.el, ...) that I want to submit to GNU ELPA.  Patch attached.

It is meant to be a thin layer of interactivity on top of the default
minibuffer and the Completions' buffer.

At its core, mct adds commands that treat the minibuffer and the
Completions as a unified space.  So you can cycle between the two with
C-n, C-p, etc. when mct-mode is enabled.

It also implements a "live completions" paradigm, where the Completions'
buffer (optionally) pops up and gets updated to match the user's input.

There are several user options on offer to control the layout of the
Completions, when/if to do live updates, what the delay should be, as
well as a passlist and blocklist that can target specific commands for
the purposes of live updating.

The project's manual describes those in further detail.


Notes
-----

+ I have made mct depend on Emacs 28, as that has the 'one-column' style
  for the 'completions-format'.  However the cyclic motions have been
  designed to work with the grid layouts as well.  Can I keep it that
  way or must I make it depend on Emacs 27?

+ I have received patches from James Norman Vladimir Cash and Philip
  Kaludercic (both in Cc).  Philip is covered in terms of copyright
  assignment to the FSF.  James has signed the CLA for Emacs.  Is that
  sufficient?

+ Some code is adapted from GPL'd code by Omar Antolín Camarena (the
  author of Embark on GNU ELPA).

+ A tiny helper function is taken from Daniel Mendler's Vertico
  documentation (also on GNU ELPA).

+ One function, mct--add-stripes, is adapted from code that Štěpán Němec
  maintains in stripes.el:
  <https://gitlab.com/stepnem/stripes-el/-/blob/master/stripes.el>.  The
  file says it belongs to the public domain.

What do you think?

All the best,
Protesilaos (or simply "Prot")

-- 
Protesilaos Stavrou
https://protesilaos.com

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-elpa-packages-mct-Add-package.patch --]
[-- Type: text/x-patch, Size: 846 bytes --]

From 9549b5c908ad53f14f31735bdaed06bb421b9514 Mon Sep 17 00:00:00 2001
Message-Id: <9549b5c908ad53f14f31735bdaed06bb421b9514.1636477772.git.info@protesilaos.com>
From: Protesilaos Stavrou <info@protesilaos.com>
Date: Tue, 9 Nov 2021 19:09:25 +0200
Subject: [PATCH] * elpa-packages (mct): Add package

---
 elpa-packages | 1 +
 1 file changed, 1 insertion(+)

diff --git a/elpa-packages b/elpa-packages
index e26a428c25..ba45381cf9 100644
--- a/elpa-packages
+++ b/elpa-packages
@@ -307,6 +307,7 @@
  ("math-symbol-lists" 	:url "https://github.com/vspinu/math-symbol-lists.git")
  ("memory-usage"	:url nil)
  ("metar"		:url nil)
+ ("mct" :url "https://gitlab.com/protesilaos/mct" :main-file "mct.el" :doc "README.org")
  ("midi-kbd"		:url nil)
  ("mines"		:url "https://github.com/calancha/Minesweeper")
  ("minibuffer-line"	:url nil)
-- 
2.33.1


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

* Re: ELPA: add mct.el
  2021-11-09 17:45 ELPA: add mct.el Protesilaos Stavrou
@ 2021-11-11 10:25 ` Theodor Thornhill
  2021-11-11 15:34   ` Philip Kaludercic
  0 siblings, 1 reply; 5+ messages in thread
From: Theodor Thornhill @ 2021-11-11 10:25 UTC (permalink / raw)
  To: Protesilaos Stavrou, emacs-devel
  Cc: Philip Kaludercic, James Norman Vladimir Cash


Hi!

> Hello everyone,
> I have a package called "Minibuffer and Completions in Tandem" (MCT,
> mct, mct.el, ...) that I want to submit to GNU ELPA.  Patch attached.
>


I'm not really the target for this mail, but I'll just chime in that
I've been using this package for a little while, and I enjoy it.  I've
always liked the idea of having the completions in a buffer rather than
using the layouts offered by ido/fido/vertico etc etc.  However, I never
took the time to hack together something like this.  So thanks, Prot :)

I'd love to see this in elpa too!

Theodor Thornhill



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

* Re: ELPA: add mct.el
  2021-11-11 10:25 ` Theodor Thornhill
@ 2021-11-11 15:34   ` Philip Kaludercic
  2021-11-14  0:00     ` Philip Kaludercic
  0 siblings, 1 reply; 5+ messages in thread
From: Philip Kaludercic @ 2021-11-11 15:34 UTC (permalink / raw)
  To: Theodor Thornhill
  Cc: Protesilaos Stavrou, James Norman Vladimir Cash, emacs-devel

Theodor Thornhill <theo@thornhill.no> writes:

> Hi!
>
>> Hello everyone,
>> I have a package called "Minibuffer and Completions in Tandem" (MCT,
>> mct, mct.el, ...) that I want to submit to GNU ELPA.  Patch attached.
>>
>
>
> I'm not really the target for this mail, but I'll just chime in that
> I've been using this package for a little while, and I enjoy it.  I've
> always liked the idea of having the completions in a buffer rather than
> using the layouts offered by ido/fido/vertico etc etc.  However, I never
> took the time to hack together something like this.  So thanks, Prot :)
>
> I'd love to see this in elpa too!

You don't have to wait, it has already been added:
http://elpa.gnu.org/packages/mct.html.

The reason you might not have noticed is that it depends on Emacs 28.1,
that hasn't been released yet (you'd at best have version 28.0.60).

> Theodor Thornhill

-- 
	Philip Kaludercic



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

* Re: ELPA: add mct.el
  2021-11-11 15:34   ` Philip Kaludercic
@ 2021-11-14  0:00     ` Philip Kaludercic
  2021-11-14  4:57       ` Protesilaos Stavrou
  0 siblings, 1 reply; 5+ messages in thread
From: Philip Kaludercic @ 2021-11-14  0:00 UTC (permalink / raw)
  To: Protesilaos Stavrou; +Cc: emacs-devel

Philip Kaludercic <philipk@posteo.net> writes:

> The reason you might not have noticed is that it depends on Emacs 28.1,
> that hasn't been released yet (you'd at best have version 28.0.60).

Prot, do you indent to "fix" this issue or do you want to wait until
Emacs 28.1 is released?

-- 
	Philip Kaludercic



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

* Re: ELPA: add mct.el
  2021-11-14  0:00     ` Philip Kaludercic
@ 2021-11-14  4:57       ` Protesilaos Stavrou
  0 siblings, 0 replies; 5+ messages in thread
From: Protesilaos Stavrou @ 2021-11-14  4:57 UTC (permalink / raw)
  To: Philip Kaludercic; +Cc: emacs-devel

On 2021-11-14, 00:00 +0000, Philip Kaludercic <philipk@posteo.net> wrote:

> Philip Kaludercic <philipk@posteo.net> writes:
>
>> The reason you might not have noticed is that it depends on Emacs 28.1,
>> that hasn't been released yet (you'd at best have version 28.0.60).
>
> Prot, do you indent to "fix" this issue or do you want to wait until
> Emacs 28.1 is released?

In principle, yes.  Though I still have not found the time to compile
Emacs 27 and have it run parallel to Emacs 29.

I think the only part of the code that depends on a feature of Emacs 28
is the 'one-column' layout of 'completions-format'.  Though I must
check.

I will try to do it this week.

-- 
Protesilaos Stavrou
https://protesilaos.com



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

end of thread, other threads:[~2021-11-14  4:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-09 17:45 ELPA: add mct.el Protesilaos Stavrou
2021-11-11 10:25 ` Theodor Thornhill
2021-11-11 15:34   ` Philip Kaludercic
2021-11-14  0:00     ` Philip Kaludercic
2021-11-14  4:57       ` Protesilaos Stavrou

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