unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* static-if problem when using corfu
@ 2024-12-06 21:12 Heime via Users list for the GNU Emacs text editor
  2024-12-07  8:43 ` Tassilo Horn
  0 siblings, 1 reply; 6+ messages in thread
From: Heime via Users list for the GNU Emacs text editor @ 2024-12-06 21:12 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor


Am having a go at corfu, but am getting  

   Lisp error: (void-function static-if)

 (static-if (< emacs-major-version 29) #'(lambda (x y) (and (equal x y) (equal (text-properties-at 0 x) (text-properties-at 0 y)))) #'equal-including-properties)
  (defalias 'corfu--equal-including-properties (static-if (< emacs-major-version 29) #'(lambda (x y) (and (equal x y) (equal (text-properties-at 0 x) (text-properties-at 0 y)))) #'equal-including-properties))
  eval-buffer(#<buffer  *load*-16011> nil "/home/hagbard/Opstk/bin/gungadin-1.0/typex/orellana/bazarsouk/paharganj/corfu/corfu-1.5/corfu.el" nil t)  ; Reading at buffer position 24858
  load-with-code-conversion("/home/hagbard/Opstk/typex/..." "/home/hagbard/Opstk/typex/..." nil t)
  require(corfu)


Sent with Proton Mail secure email.



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

* Re: static-if problem when using corfu
  2024-12-06 21:12 static-if problem when using corfu Heime via Users list for the GNU Emacs text editor
@ 2024-12-07  8:43 ` Tassilo Horn
  2024-12-07 10:47   ` Heime via Users list for the GNU Emacs text editor
  0 siblings, 1 reply; 6+ messages in thread
From: Tassilo Horn @ 2024-12-07  8:43 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor; +Cc: Heime

Heime via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> writes:

> Am having a go at corfu, but am getting  
>
>    Lisp error: (void-function static-if)

It looks like you use an emacs < 30 and the compat-30 library is not
installed although that's a declared dependency of corfu.

--8<---------------cut here---------------start------------->8---
;;; corfu.el --- COmpletion in Region FUnction -*- lexical-binding: t -*-

;; Copyright (C) 2021-2024 Free Software Foundation, Inc.

;; Author: Daniel Mendler <mail@daniel-mendler.de>
;; Maintainer: Daniel Mendler <mail@daniel-mendler.de>
;; Created: 2021
;; Version: 1.5
;; Package-Requires: ((emacs "28.1") (compat "30"))
;; URL: https://github.com/minad/corfu
;; Keywords: abbrev, convenience, matching, completion, text
--8<---------------cut here---------------end--------------->8---

How did you install it?

Bye,
  Tassilo



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

* Re: static-if problem when using corfu
  2024-12-07  8:43 ` Tassilo Horn
@ 2024-12-07 10:47   ` Heime via Users list for the GNU Emacs text editor
  2024-12-07 11:57     ` Tassilo Horn
  2024-12-07 13:15     ` Stefan Monnier via Users list for the GNU Emacs text editor
  0 siblings, 2 replies; 6+ messages in thread
From: Heime via Users list for the GNU Emacs text editor @ 2024-12-07 10:47 UTC (permalink / raw)
  To: Tassilo Horn; +Cc: Heime via Users list for the GNU Emacs text editor






Sent with Proton Mail secure email.

On Saturday, December 7th, 2024 at 8:43 PM, Tassilo Horn <tsdh@gnu.org> wrote:

> Heime via Users list for the GNU Emacs text editor help-gnu-emacs@gnu.org writes:
> 
> > Am having a go at corfu, but am getting
> > 
> > Lisp error: (void-function static-if)
> 
> 
> It looks like you use an emacs < 30 and the compat-30 library is not
> installed although that's a declared dependency of corfu.

I am using 

GNU Emacs 30.0.50 of 2023-07-20

(build 1, x86_64-pc-linux-gnu, GTK+ Version 2.24.32, cairo version 1.15.10)
 
> --8<---------------cut here---------------start------------->8---
> 
> ;;; corfu.el --- COmpletion in Region FUnction -- lexical-binding: t --
> 
> ;; Copyright (C) 2021-2024 Free Software Foundation, Inc.
> 
> ;; Author: Daniel Mendler mail@daniel-mendler.de
> 
> ;; Maintainer: Daniel Mendler mail@daniel-mendler.de
> 
> ;; Created: 2021
> ;; Version: 1.5
> ;; Package-Requires: ((emacs "28.1") (compat "30"))
> ;; URL: https://github.com/minad/corfu
> ;; Keywords: abbrev, convenience, matching, completion, text
> --8<---------------cut here---------------end--------------->8---
> 
> 
> How did you install it? - Tassilo

From source code, requiring the library and 

(defun corfu-launch ()
  "Place 'corfu feature in a ready operational state."

  (setq corfu-auto t)
  (setq corfu-quit-no-match 'separator)

  (add-hook 'prog-mode-hook 'corfu-mode)

  (global-corfu-mode))




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

* Re: static-if problem when using corfu
  2024-12-07 10:47   ` Heime via Users list for the GNU Emacs text editor
@ 2024-12-07 11:57     ` Tassilo Horn
  2024-12-07 12:20       ` Heime via Users list for the GNU Emacs text editor
  2024-12-07 13:15     ` Stefan Monnier via Users list for the GNU Emacs text editor
  1 sibling, 1 reply; 6+ messages in thread
From: Tassilo Horn @ 2024-12-07 11:57 UTC (permalink / raw)
  To: Heime; +Cc: Emanuel Berg via Users list for the GNU Emacs text editor

Am Sa, 7. Dez 2024, um 11:47, schrieb Heime via Users list for the GNU Emacs text editor:

>> It looks like you use an emacs < 30 and the compat-30 library is not
>> installed although that's a declared dependency of corfu.
>
> I am using 
>
> GNU Emacs 30.0.50 of 2023-07-20

That's a pretty old build, probably from the time before static-if was introduced into emacs-30.

Bye, 
Tassilo



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

* Re: static-if problem when using corfu
  2024-12-07 11:57     ` Tassilo Horn
@ 2024-12-07 12:20       ` Heime via Users list for the GNU Emacs text editor
  0 siblings, 0 replies; 6+ messages in thread
From: Heime via Users list for the GNU Emacs text editor @ 2024-12-07 12:20 UTC (permalink / raw)
  To: Tassilo Horn; +Cc: Emanuel Berg via Users list for the GNU Emacs text editor






Sent with Proton Mail secure email.

On Saturday, December 7th, 2024 at 11:57 PM, Tassilo Horn <tsdh@gnu.org> wrote:

> Am Sa, 7. Dez 2024, um 11:47, schrieb Heime via Users list for the GNU Emacs text editor:
> 
> > > It looks like you use an emacs < 30 and the compat-30 library is not
> > > installed although that's a declared dependency of corfu.
> > 
> > I am using
> > 
> > GNU Emacs 30.0.50 of 2023-07-20
> 
> 
> That's a pretty old build, probably from the time before static-if was introduced into emacs-30.
 
Looking at the releases, the latest is Emacs 29.4.



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

* Re: static-if problem when using corfu
  2024-12-07 10:47   ` Heime via Users list for the GNU Emacs text editor
  2024-12-07 11:57     ` Tassilo Horn
@ 2024-12-07 13:15     ` Stefan Monnier via Users list for the GNU Emacs text editor
  1 sibling, 0 replies; 6+ messages in thread
From: Stefan Monnier via Users list for the GNU Emacs text editor @ 2024-12-07 13:15 UTC (permalink / raw)
  To: help-gnu-emacs

> GNU Emacs 30.0.50 of 2023-07-20

We generally discourage the use of old development versions of Emacs
like this one.
If you want to use an old version of Emacs, then you'll be better off
using one of the released ones.


        Stefan




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

end of thread, other threads:[~2024-12-07 13:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-06 21:12 static-if problem when using corfu Heime via Users list for the GNU Emacs text editor
2024-12-07  8:43 ` Tassilo Horn
2024-12-07 10:47   ` Heime via Users list for the GNU Emacs text editor
2024-12-07 11:57     ` Tassilo Horn
2024-12-07 12:20       ` Heime via Users list for the GNU Emacs text editor
2024-12-07 13:15     ` Stefan Monnier via Users list for the GNU Emacs text editor

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