From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.help Subject: Re: progn: =?utf-8?Q?Symbol=E2=80=99s?= function definition is void: f-symlink Date: Sat, 18 Dec 2021 15:40:40 +0000 Message-ID: <87bl1dzzt3.fsf@posteo.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7904"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Hongyi Zhao Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 18 16:41:14 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mybpi-0001uT-4i for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 18 Dec 2021 16:41:14 +0100 Original-Received: from localhost ([::1]:40436 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mybpg-0004uD-Fj for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 18 Dec 2021 10:41:12 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49360) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mybpF-0004u4-2k for help-gnu-emacs@gnu.org; Sat, 18 Dec 2021 10:40:45 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:43655) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mybpD-0002Fe-Bb for help-gnu-emacs@gnu.org; Sat, 18 Dec 2021 10:40:44 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 4D23F240028 for ; Sat, 18 Dec 2021 16:40:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1639842041; bh=LSPhyK5gfMn0lGSB9a9dHvoqC35tc8QCRlFx8fpR7TU=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=g8Xv9Vxg//vzPh/OzaE4DM9Zc/OZQDXQZvwMfRWBCuSmPG9B0802kvIHUrGZHaXIn 5Eje0tSjiP0oKdVvfXzD7SEnuYSUCHO3zEPsyfF1Rs2GQDnl0V6qeIyQCj+eNbLkYd 302kHL0Vp2SQlbAQvydRM4v1rX7B/eii/1MCeoCdnew2KOculuekpBgHEYzO4BM9RT l2WcdWYhhxrNT2Kl8MpKcyHlzSs6jmTulubTYvR4bWpvvOmwLo+gvpgdEHjkMcJ1zm IjuUoL4OZWoVeCHkPH7XgY7Mh896LJLMMf38XnRmt91gnEUPRemFUWrc9W8tXloqmv I350Icxg/+RRw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JGVRr5Bxgz9rxF; Sat, 18 Dec 2021 16:40:40 +0100 (CET) Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB In-Reply-To: (Hongyi Zhao's message of "Sat, 18 Dec 2021 22:40:29 +0800") Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:134988 Archived-At: Hongyi Zhao 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.ema= cs")) > > (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.ema= cs > /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=E2=80=99s 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 > > --=20 Philip Kaludercic