all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Protesilaos Stavrou <info@protesilaos.com>
To: Philip Kaludercic <philipk@posteo.net>
Cc: emacs-devel@gnu.org
Subject: Re: [ELPA] New consult-denote package
Date: Thu, 09 May 2024 07:00:12 +0300	[thread overview]
Message-ID: <87ttj7skhf.fsf@protesilaos.com> (raw)
In-Reply-To: <87h6f8xlu0.fsf@posteo.net>

Thank you Philip!

> From: Philip Kaludercic <philipk@posteo.net>
> Date: Wed,  8 May 2024 17:19:51 +0000

> [... 74 lines elided]

> -           ;; FIXME 2024-05-08: Is there some elegant way to do this?
> +           ;; FIXME 2024-05-08: Is there some elegant way to do this? what is "this"
>             (filename (with-temp-buffer
>                         (insert input)
>                         (completion-in-region (point-min) (point-max) new-collection)

> [... 22 lines elided]

The FIXME there is about the following use of the temp buffer to do a
completion-in-region in. Basically, I was looking for a function that
would complete a string against the list of candidates. What I have
there works, of course, but feels I am missing something.

-- 
Protesilaos Stavrou
https://protesilaos.com



  reply	other threads:[~2024-05-09  4:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-08 11:33 [ELPA] New consult-denote package Protesilaos Stavrou
2024-05-08 17:19 ` Philip Kaludercic
2024-05-09  4:00   ` Protesilaos Stavrou [this message]
2024-05-09  8:20     ` Philip Kaludercic
2024-05-09  9:38       ` Protesilaos Stavrou
2024-05-09 10:30         ` Visuwesh

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=87ttj7skhf.fsf@protesilaos.com \
    --to=info@protesilaos.com \
    --cc=emacs-devel@gnu.org \
    --cc=philipk@posteo.net \
    /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.