From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 16 10:24:32 2023 Received: (at submit) by debbugs.gnu.org; 16 Jun 2023 14:24:32 +0000 Received: from localhost ([127.0.0.1]:50114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qAANM-0002W2-5N for submit@debbugs.gnu.org; Fri, 16 Jun 2023 10:24:32 -0400 Received: from lists.gnu.org ([209.51.188.17]:35640) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qAANK-0002Vu-5n for submit@debbugs.gnu.org; Fri, 16 Jun 2023 10:24:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qAANJ-0001kN-Vp for bug-gnu-emacs@gnu.org; Fri, 16 Jun 2023 10:24:29 -0400 Received: from mail-oa1-x30.google.com ([2001:4860:4864:20::30]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qAANI-0003cY-8w for bug-gnu-emacs@gnu.org; Fri, 16 Jun 2023 10:24:29 -0400 Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-1a2c85ef3c2so923600fac.0 for ; Fri, 16 Jun 2023 07:24:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686925466; x=1689517466; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=3fRc4jYfmlhVqsPYEnSDJXhRxvWz1Owa2xDoqoSZPcY=; b=sAAj/rn3JXroHkhS1XXW90O6O/FKHqtfNXAIM1Wu4f5SP4mXfrBs7o5xetoqBSF/UW iP3eXkAENYUHp0wk4DdtbxV5YVTyIBfpTr1N7DyN116mk65dYqkwNoes67M5X6CcLwTU tbad4O5o7+75DzHBcG5wsP9gv0kBXOLzF8TWhjijV7ZjFVDIzcPzxwLWbQ77fpz1hTCX 7CSHw0jEpTvW+qzo9ALczqHKtqT8jH+t3ZsxuSfr+N1/SifHbcu/oW2EPUlB56kTtXYW QeI9yxBBnTINqx3nH0iZx5xiRqmZwHWVgEQ6dU/pYEy+eOvtrQmJ4QlpsQSOg3L7FyDr FvJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686925466; x=1689517466; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=3fRc4jYfmlhVqsPYEnSDJXhRxvWz1Owa2xDoqoSZPcY=; b=KfU2ROZwTeppPuTHrCGlTNvN0JuM0Gb7jzzfZjriHCTsP9eAvDBCB0HygbDEWx/ueX w9tRl82k+Dy3o95m9ZzGn0GawRscimPpe/BK1Bp8IYWuNclh6yWfXcR/v5WXewd7AmTz D9tGhPstvyRDzX0OMmq1MAOqt5HgBsjLL6cDTbQkUrsNbJgWXnn2dg9ydZBvrCgbAzA+ xSp6+3dTJFTYzKkjbIYbP1lqBvUiirVbw9rEc57Mcom08+hMJ0xxSsIKt6IDcEwCxdYJ hPmTh8ywCN/z2dJeIL0gOI91l1UtQ583t2L91RDx+6aICV967Apeec8mgWpPYVbYKJ3x oiVw== X-Gm-Message-State: AC+VfDxEq5TPKDD3FEJgz4NmgfRDmY5lvhfP0UY+Aj8BSzywJifXLATb srEWbL5rCCb39UperF6IffYfCTUH87EgC+dZlFUZkHSWAL4= X-Google-Smtp-Source: ACHHUZ4Cnj7GZy7XH+/laB8j3MDkIf1HIOj/K5VfgrOnX+4Q2+X090w87CMGESG476xnNeY38YpezI1C5V//y2qrlv8= X-Received: by 2002:a05:6871:603:b0:1a3:2447:7f4a with SMTP id w3-20020a056871060300b001a324477f4amr2276173oan.32.1686925466549; Fri, 16 Jun 2023 07:24:26 -0700 (PDT) MIME-Version: 1.0 From: Yilkal Argaw Date: Fri, 16 Jun 2023 17:24:15 +0300 Message-ID: Subject: hippie-expand's try-expand-all-abbrevs nil has trouble expanding abbrevs given as list(aka. expand.el snipets) To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="00000000000032400f05fe3ff145" Received-SPF: pass client-ip=2001:4860:4864:20::30; envelope-from=yilkalargawworkneh@gmail.com; helo=mail-oa1-x30.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --00000000000032400f05fe3ff145 Content-Type: text/plain; charset="UTF-8" Hello, When trying to use hippie-expand to expand a simple expand.el snippet causes a bug about lists not being acceptable. To recreate the bug use the following init.el and try to expand def using hippie expand ;;init.el (defconst elisp-expand-list '(("def" "(defun ()\n ) " (8 9 11 12))) "Expansions for elisp mode") (add-hook 'emacs-lisp-mode-hook (lambda () (expand-add-abbrevs emacs-lisp-mode-abbrev-table elisp-expand-list))) (add-hook 'lisp-interaction-mode-hook (lambda () (expand-add-abbrevs emacs-lisp-mode-abbrev-table elisp-expand-list))) (global-set-key [remap dabbrev-expand] 'hippie-expand) This error persists even when calling the (try-expand-all-abbrevs nil) using eval expression the debug log is as follows. Debugger entered--Lisp error: (wrong-type-argument stringp ["(defun ()\n ) " 6 (13 8 9 11 12)]) he-transfer-case("def" ["(defun ()\n ) " 6 (13 8 9 11 12) nil]) he-string-member(["(defun ()\n ) " 6 (13 8 9 11 12) nil] ("def") t) try-expand-all-abbrevs(nil) eval-expression((try-expand-all-abbrevs nil) nil nil 127) funcall-interactively(eval-expression (try-expand-all-abbrevs nil) nil nil 127) command-execute(eval-expression) With Regards Yilkal Argaw --00000000000032400f05fe3ff145 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,
When trying to use hippie-expand to expand = a simple expand.el snippet causes a bug about lists not being acceptable.

To recreate the bug use the following init.el and try to expand d= ef using hippie expand
;;init.el
(defconst elisp-expand-li= st
=C2=A0 '(("def" "(defun ()\n ) " (8 9 11 12))= )
=C2=A0 "Expansions for elisp mode")
(add-hook 'emacs-= lisp-mode-hook
=C2=A0(lambda () (expand-add-abbrevs emacs-lisp-mode-ab= brev-table elisp-expand-list)))
(add-hook 'lisp-interaction-mode-hoo= k
=C2=A0(lambda () (expand-add-abbrevs emacs-lisp-mode-abbrev-table el= isp-expand-list)))
(global-set-key [remap dabbrev-expand] 'hippie-ex= pand)

This error persists even when calling the (try-expa= nd-all-abbrevs nil) using eval expression the debug log is as follows.
<= /div>

Debugger entered--Lisp error: (wrong-type-argument= stringp ["(defun ()\n ) " 6 (13 8 9 11 12)])
=C2=A0 he-transf= er-case("def" ["(defun ()\n ) " 6 (13 8 9 11 12) nil])<= br>=C2=A0 he-string-member(["(defun ()\n ) " 6 (13 8 9 11 12) nil= ] ("def") t)
=C2=A0 try-expand-all-abbrevs(nil)
=C2=A0 eval= -expression((try-expand-all-abbrevs nil) nil nil 127)
=C2=A0 funcall-int= eractively(eval-expression (try-expand-all-abbrevs nil) nil nil 127)
=C2= =A0 command-execute(eval-expression)

With Regards
Yilkal Argaw
--00000000000032400f05fe3ff145-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 16 12:26:09 2023 Received: (at 64108) by debbugs.gnu.org; 16 Jun 2023 16:26:09 +0000 Received: from localhost ([127.0.0.1]:50249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qACH3-0005rS-50 for submit@debbugs.gnu.org; Fri, 16 Jun 2023 12:26:09 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45072) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qACGy-0005qu-62 for 64108@debbugs.gnu.org; Fri, 16 Jun 2023 12:26:08 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qACGs-0004Hu-8n; Fri, 16 Jun 2023 12:25:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=KXyt4MJi/cebFb9DGmKsKn57w8K6aSowvNXXtdP0o30=; b=ZIuqMWJI98nw kIo0VcAWSkVS3nUQFH3bmY3VvGkIc1nwEkm1X8dtKzxZ7kAfbActZBMMdHzCYMJJWKep2/tXcK8D4 FGhDq6T0jhSGVQadggQX//fhCIvOSNa6OT7euH7yC21NZHZ6j0vK9mlZYQKseR6i/k9B3U1JwPHh7 sbJSqyIgNva9GUk69MAI9dsgcQhJzdoceAy9c8qLfE/0Za4D4wgh+EtqBvyjt6Gn/bxpxHjbrxyDR Ak5u1atDb0pqFfqkzirrd8Ai9ZeIwzqnPMheJ9udvACyvtHUDDg/JalBXfymD+R6ltZKd3sa3va0p TeuBnJAltloSlxJ1L3FvLA==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qACGq-00014k-Tm; Fri, 16 Jun 2023 12:25:58 -0400 Date: Fri, 16 Jun 2023 19:25:54 +0300 Message-Id: <83legjs7al.fsf@gnu.org> From: Eli Zaretskii To: Yilkal Argaw In-Reply-To: (message from Yilkal Argaw on Fri, 16 Jun 2023 17:24:15 +0300) Subject: Re: bug#64108: hippie-expand's try-expand-all-abbrevs nil has trouble expanding abbrevs given as list(aka. expand.el snipets) References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64108 Cc: 64108@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Yilkal Argaw > Date: Fri, 16 Jun 2023 17:24:15 +0300 > > When trying to use hippie-expand to expand a simple expand.el snippet causes a bug about lists not > being acceptable. > > To recreate the bug use the following init.el and try to expand def using hippie expand > ;;init.el > (defconst elisp-expand-list > '(("def" "(defun ()\n ) " (8 9 11 12))) > "Expansions for elisp mode") > (add-hook 'emacs-lisp-mode-hook > (lambda () (expand-add-abbrevs emacs-lisp-mode-abbrev-table elisp-expand-list))) > (add-hook 'lisp-interaction-mode-hook > (lambda () (expand-add-abbrevs emacs-lisp-mode-abbrev-table elisp-expand-list))) > (global-set-key [remap dabbrev-expand] 'hippie-expand) > > This error persists even when calling the (try-expand-all-abbrevs nil) using eval expression the debug > log is as follows. It looks like hippie-expand doesn't support "special" abbrevs, those whose expansion is obtained by running a hook function (as opposed to just using the string that is the abbrev's expansion). IOW, hippie-expand expects that abbrev-expansion returns a string, which is not what happens with "special" abbrevs. And expand.el, where expand-add-abbrevs is defined, defines such "special" abbrevs. Patches to adapt hippie-expand to abbrevs created by expand.el are welcome. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 15 22:39:07 2025 Received: (at 64108) by debbugs.gnu.org; 16 Apr 2025 02:39:07 +0000 Received: from localhost ([127.0.0.1]:59584 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u4sg7-0006Ta-4M for submit@debbugs.gnu.org; Tue, 15 Apr 2025 22:39:07 -0400 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]:48130) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1u4sg1-0006S6-7y for 64108@debbugs.gnu.org; Tue, 15 Apr 2025 22:39:04 -0400 Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-5e5cded3e2eso9973823a12.0 for <64108@debbugs.gnu.org>; Tue, 15 Apr 2025 19:39:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744771135; x=1745375935; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=zYaO+zzSgIGu4kHXD//y11d8WpYyeu9ORveRvXtb9ro=; b=hEiO5vNMUlLNdNXgH372TVCAgJCt7Er7Z4V8wX7jbYa2yhpt5t2BsVvtZxisBhYCGj mJvBXS8elN0TCAnQykLx12xIuQrjdyvjgYBxnddg6oXZi/nN2fLa9twXI+26XeHDEAhG 6w6nf12gbizHwkWww7zR06cEaXLiwLggV1viQCZIvQ+Nak2Y6401G9GP0kgi9N79vbzd TBhCPRa6BbSW/TpIGoCdZBki9SPaA1uEAfaru2LosEh7sMF85TI/I0+lAqYMiv8i8dpC pn59df39v1ZmKyhb+L6Jy33GsCcL9tLQFFs5tqSAFnvh/Dgu0W4JCdGYMUgu0tUlZICX Z7dA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744771135; x=1745375935; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zYaO+zzSgIGu4kHXD//y11d8WpYyeu9ORveRvXtb9ro=; b=LJijoaLS6CtZxzuC2qUNiyhprT/RbM8+E4RQOLwvt1xxhkNYgu6Um5R7DYSEhZyelr J59S6U22QBKWngDKMuOeSXPXdg6yat7l9ywJL+A4Kwmb73aoKxgfT5agJL7zfa4LkHSB OWYk/X+kNMFqGa39mXdDbq/x4RTp9LonmgoWR0YjcnJ3bpHhbVqdpwLqdXlIs5KEzNem uK6tYV1X7qr5MvUI68UrxDlsyH0rA+VTXNRUXIH7Im7eWEACNGwBZAE9ueRupzXJPZi8 N3n8xnZ/BhGRkRX+2vwPdj+8PnMP21478uDvLPMboNHnEobjKxNIgyP0HtmkbqVAUoSY dg4Q== X-Gm-Message-State: AOJu0YzqAyQQiGPqbq9bEYHYPUDRODP+hZVamTOkiq4y45AA5HKfEaZs oGTZB/hoiCWJyDnphi5U5EUaPAmniwi+OWGEX+XGePPBuau9CzvA X-Gm-Gg: ASbGncvmjcJF0B3YeVcrClGIPzJ0KRbFAY4QsR3kizy8gJZyLLM9T5IcrYSMm3ybJuh NYcNvR1ACur1paDOVp2Qj+1SGdVuajsenjhGy/Jhe5+i7EAFrXzhtmgmTzVITrZc/HX2h7b6k2v UIu0CsV7yHjlJOW98KJYQoRBoPtNtnegwSpI3rl0tpUZg4Uc5rZiW88DU+KB6Opr9mJb8monSaK 72AGxe45cX/vaV3fweE38XDRBU4HefLTS+9NISP0g+0M0P3ifOnPd0Sx160q/75HGx5WebWi+20 kwcmC8uJ9KvwzSFdQzflyVjID8rLJcrt8V2/+EdTN6jbX8gixi6I55ROnJLE X-Google-Smtp-Source: AGHT+IEkEJJ1oQUwqjDcLKxMQ5zP2gxfU2eQwBxOeI4rmlmNdmAaxolJLg1mgKgskIxXVqORAQITSw== X-Received: by 2002:a05:6402:3595:b0:5eb:ca97:7c60 with SMTP id 4fb4d7f45d1cf-5f4b71e76eemr98113a12.6.1744771134596; Tue, 15 Apr 2025 19:38:54 -0700 (PDT) Received: from [192.168.167.149] ([196.190.62.118]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5f36f506425sm7700289a12.53.2025.04.15.19.38.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Apr 2025 19:38:54 -0700 (PDT) Message-ID: <55c424bd-4246-4f11-909c-1a1ee11b6d33@gmail.com> Date: Wed, 16 Apr 2025 02:38:52 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#64108: hippie-expand's try-expand-all-abbrevs nil has trouble expanding abbrevs given as list(aka. expand.el snipets) To: Eli Zaretskii References: <83legjs7al.fsf@gnu.org> Content-Language: en-US From: Yilkal Argaw Workneh In-Reply-To: <83legjs7al.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 3.6 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 6/16/23 4:25 PM, Eli Zaretskii wrote: >> From: Yilkal Argaw >> Date: Fri, 16 Jun 2023 17:24:15 +0300 >> >> When trying to use hippie-expand to expand a simple expand.el snippet causes a bug about [...] Content analysis details: (3.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [196.190.62.118 listed in zen.spamhaus.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (yilkalargawworkneh[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:531 listed in] [list.dnswl.org] X-Debbugs-Envelope-To: 64108 Cc: 64108@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.6 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 6/16/23 4:25 PM, Eli Zaretskii wrote: >> From: Yilkal Argaw >> Date: Fri, 16 Jun 2023 17:24:15 +0300 >> >> When trying to use hippie-expand to expand a simple expand.el snippet causes a bug about [...] Content analysis details: (2.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [196.190.62.118 listed in zen.spamhaus.org] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:531 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (yilkalargawworkneh[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager On 6/16/23 4:25 PM, Eli Zaretskii wrote: >> From: Yilkal Argaw >> Date: Fri, 16 Jun 2023 17:24:15 +0300 >> >> When trying to use hippie-expand to expand a simple expand.el snippet causes a bug about lists not >> being acceptable. >> >> To recreate the bug use the following init.el and try to expand def using hippie expand >> ;;init.el >> (defconst elisp-expand-list >> '(("def" "(defun ()\n ) " (8 9 11 12))) >> "Expansions for elisp mode") >> (add-hook 'emacs-lisp-mode-hook >> (lambda () (expand-add-abbrevs emacs-lisp-mode-abbrev-table elisp-expand-list))) >> (add-hook 'lisp-interaction-mode-hook >> (lambda () (expand-add-abbrevs emacs-lisp-mode-abbrev-table elisp-expand-list))) >> (global-set-key [remap dabbrev-expand] 'hippie-expand) >> >> This error persists even when calling the (try-expand-all-abbrevs nil) using eval expression the debug >> log is as follows. > It looks like hippie-expand doesn't support "special" abbrevs, those > whose expansion is obtained by running a hook function (as opposed to > just using the string that is the abbrev's expansion). IOW, > hippie-expand expects that abbrev-expansion returns a string, which is > not what happens with "special" abbrevs. And expand.el, where > expand-add-abbrevs is defined, defines such "special" abbrevs. > > Patches to adapt hippie-expand to abbrevs created by expand.el are > welcome.  I got this working  in my config by defining a simple function to try abbrev if it exists and adding that to the hippie expand-try-functions (defun try-expand-abbrev (old)   "Try to expand abbrev if one exists at point."   (unless old     (expand-abbrev))) (setq hippie-expand-try-functions-list       (cons 'try-expand-abbrev             (remove 'try-expand-abbrev hippie-expand-try-functions-list)))