all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Philip Kaludercic <philipk@posteo.net>
To: Hongyi Zhao <hongyi.zhao@gmail.com>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: progn: Symbol’s function definition is void: f-symlink
Date: Sat, 18 Dec 2021 15:40:40 +0000	[thread overview]
Message-ID: <87bl1dzzt3.fsf@posteo.net> (raw)
In-Reply-To: <CAGP6POJJQWUx-D2Ct3AMrg5GcEX667Sbv_t+4h+AQAkTnNjXGw@mail.gmail.com> (Hongyi Zhao's message of "Sat, 18 Dec 2021 22:40:29 +0800")

Hongyi Zhao <hongyi.zhao@gmail.com> writes:

> I use the following code in my `.emacs.d/init.el` to install the qe-modes [1]:
>
> ;;;;;;; begin ;;;;;;;
> (let ((qe-modes-source "~/.emacs.d/qe-modes")
>       (qe-modes-symlink "~/Public/hpc/QEF/q-e.git/GUI/QE-modes/qe-modes")
>       (qe-modes-emacs "~/Public/hpc/QEF/q-e.git/GUI/QE-modes/qe-modes.emacs"))
>
>   (when (not (file-directory-p (file-truename qe-modes-source)))
>     (when (file-symlink-p qe-modes-source)
>       (delete-file qe-modes-source))
>     (f-symlink (file-truename qe-modes-symlink) qe-modes-source))
>
>   (load-file qe-modes-emacs))
> ;;;;;;; end ;;;;;;;
>
>
> All the files required for the above code exist on my computer:
>
> werner@X10DAi-00:~$ ls ~/Public/hpc/QEF/q-e.git/GUI/QE-modes/qe-modes
> cp-mode.el    neb-mode.el   pp-mode.el   pwtk-mode.el   qe-mode.el
> cp-mode.elc   neb-mode.elc  pp-mode.elc  pwtk-mode.elc  qe-mode.elc
> ld1-mode.el   ph-mode.el    pw-mode.el   qe-funcs.el    qe-modes.el
> ld1-mode.elc  ph-mode.elc   pw-mode.elc  qe-funcs.elc   qe-modes.elc
> werner@X10DAi-00:~$ ls ~/Public/hpc/QEF/q-e.git/GUI/QE-modes/qe-modes.emacs
> /home/werner/Public/hpc/QEF/q-e.git/GUI/QE-modes/qe-modes.emacs
>
>
> But when I start Emacs, the following error is triggered:
>
> progn: Symbol’s function definition is void: f-symlink

f-symlink is a function defined in the "f" package (a package that wraps
or composes built-in functionality for file system operations, see
https://github.com/rejeep/f.el).  You should be able to fix the issue by
replacing `f-symlink' with `make-symbolic-link' in the code snippet above.

> Any hints for fixing this problem?
>
> [1] http://pwtk.ijs.si/qe-modes.html
>
> Regards
> HZ
>
>

-- 
	Philip Kaludercic



  reply	other threads:[~2021-12-18 15:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-18 14:40 progn: Symbol’s function definition is void: f-symlink Hongyi Zhao
2021-12-18 15:40 ` Philip Kaludercic [this message]
2021-12-19  0:30   ` Hongyi Zhao

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=87bl1dzzt3.fsf@posteo.net \
    --to=philipk@posteo.net \
    --cc=help-gnu-emacs@gnu.org \
    --cc=hongyi.zhao@gmail.com \
    /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.