unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Robert Irelan <rirelan@gmail.com>
To: 46958@debbugs.gnu.org
Subject: bug#46958: 28.0.50; invalid-function error for macros that have function bindings
Date: Fri, 5 Mar 2021 18:00:49 -0800	[thread overview]
Message-ID: <CAJUyYjoqYf5NM_UcEZetJLYUcUfDPsU=KZaS3sbhTLbU8VfSUQ@mail.gmail.com> (raw)

Lately I have been getting errors where occasionally `invalid-function`
errors will be raised when calling some macros, even when those macros
have function bindings (checked with `fboundp`). Here is an example of a
stack trace I got when using the `org-fc` package:

```
Debugger entered--Lisp error: (invalid-function
org-fc-with-point-at-back-heading)
  signal(invalid-function (org-fc-with-point-at-back-heading))
  (condition-case err (if org-fc--session (let* ((card (and t
(eieio-oref org-fc--session 'current-item)))) (if card (if (string=
(plist-get card :id) (org-id-get)) (progn (let ((type (plist-get card
:type))) (funcall (org-fc-type-flip-fn type))
(org-fc-review-rate-mode))) (message "Flashcard ID mismatch"))
(message "No flashcard review is in progress")))) (error
(org-fc-review-quit) (signal (car err) (cdr err))))
  org-fc-review-flip()
  funcall-interactively(org-fc-review-flip)
  call-interactively(org-fc-review-flip nil nil)
  command-execute(org-fc-review-flip)
 ```

I am using the nativecomp variant of Emacs 28.0.50 at Git commit
80e26472206cc44837521ba594cd50e724d9af5c, compiled using the following
Macports Port (the "emacs-app-devel" Port):

https://github.com/macports/macports-ports/blob/0c3c5e770185f4c3577b94a49170a961b88d1b98/editors/emacs/Portfile#L100-L141

Configured using:
 'configure --prefix=/opt/local --disable-silent-rules --without-dbus
 --without-gconf --without-libotf --without-m17n-flt --with-gmp
 --with-gnutls --with-json --with-xml2 --with-modules --infodir
 /opt/local/share/info/emacs --with-ns --with-lcms2 --without-harfbuzz
 --without-xaw3d --with-nativecomp --with-imagemagick --with-rsvg
 'CFLAGS=-pipe -Os
 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk
 -arch x86_64' 'CPPFLAGS=-I/opt/local/include
 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk'
 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-no_pie
 -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk
 -arch x86_64''

Configured features:
JPEG TIFF GIF PNG RSVG IMAGEMAGICK GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2
ZLIB TOOLKIT_SCROLL_BARS XIM NS MODULES NATIVE_COMP THREADS JSON PDUMPER
LCMS2

Important settings:
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8

Major mode: Org

Minor modes in effect:
  diff-hl-margin-mode: t
  global-anzu-mode: t
  anzu-mode: t
  straight-use-package-mode: t
  evil-traces-mode: t
  which-key-mode: t
  better-jumper-mode: t
  better-jumper-local-mode: t
  global-company-mode: t
  company-mode: t
  ivy-rich-project-root-cache-mode: t
  ivy-rich-mode: t
  ivy-mode: t
  evil-goggles-mode: t
  evil-escape-mode: t
  evil-snipe-override-mode: t
  evil-snipe-mode: t
  evil-snipe-override-local-mode: t
  evil-snipe-local-mode: t
  whitespace-mode: t
  git-auto-commit-mode: t
  evil-org-mode: t
  savehist-mode: t
  git-gutter-mode: t
  projectile-mode: t
  flycheck-popup-tip-mode: t
  eros-mode: t
  gcmh-mode: t
  winner-mode: t
  smartparens-global-mode: t
  smartparens-mode: t
  global-flycheck-mode: t
  flycheck-mode: t
  ws-butler-global-mode: t
  ws-butler-mode: t
  editorconfig-mode: t
  recentf-mode: t
  save-place-mode: t
  global-so-long-mode: t
  envrc-mode: t
  solaire-global-mode: t
  solaire-mode: t
  doom-modeline-mode: t
  display-fill-column-indicator-mode: t
  vi-tilde-fringe-mode: t
  display-line-numbers-mode: t
  yas-minor-mode: t
  org-super-agenda-mode: t
  override-global-mode: t
  global-git-commit-mode: t
  org-roam-mode: t
  adaptive-wrap-prefix-mode: t
  auto-compile-on-load-mode: t
  auto-compile-on-save-mode: t
  persp-mode: t
  ns-auto-titlebar-mode: t
  shell-dirtrack-mode: t
  evil-mode: t
  evil-local-mode: t
  +popup-mode: t
  general-override-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  window-divider-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  size-indication-mode: t
  column-number-mode: t
  line-number-mode: t
  global-visual-line-mode: t
  visual-line-mode: t
  transient-mark-mode: t

Load-path shadows:
/Users/rmirelan/doom.emacs.d/.local/straight/build-28.0.50/cmake-mode/cmake-mode
hides /opt/local/share/emacs/site-lisp/cmake-mode
/Users/rmirelan/doom.emacs.d/.local/straight/build-28.0.50/map/map
hides /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/emacs-lisp/map
/Users/rmirelan/doom.emacs.d/.local/straight/build-28.0.50/dash-functional/dash-functional
hides /Users/rmirelan/.doom.d/emacs-google-config/third_party/elisp/dash/dash-functional
/Users/rmirelan/doom.emacs.d/.local/straight/build-28.0.50/dash/dash
hides /Users/rmirelan/.doom.d/emacs-google-config/third_party/elisp/dash/dash
/Users/rmirelan/doom.emacs.d/.local/straight/build-28.0.50/s/s hides
/Users/rmirelan/.doom.d/emacs-google-config/third_party/elisp/s/s

Features:
(shadow sort mail-extr emacsbug sendmail elisp-def ert
evil-collection-debug debug org-duration org-crypt dabbrev magit-extras
evil-markdown smartparens-markdown markdown-mode edit-indirect tabify
company-ispell company-yasnippet company-dabbrev vc-hg vc-svn
bug-reference diff-hl-margin diff-hl-dired diff-hl
evil-collection-log-view log-view evil-collection-vc-dir vc-dir ewoc
goto-addr magit-gitflow elisp-demos evil-collection-indent
hide-mode-line evil-collection-helpful helpful trace
evil-collection-edebug edebug info-look dash-functional
evil-collection-elisp-refs elisp-refs evil-anzu anzu overseer pkg-info
lisp-mnt epl tramp tramp-loaddefs trampver tramp-integration files-x
tramp-compat ls-lisp amx evil-visual-mark-mode-autoloads
hl-line+-autoloads pocket-reader-autoloads org-super-agenda-autoloads
org-randomnote-autoloads org-ql-autoloads org-journal-autoloads
org-drill-table-autoloads org-gcal-autoloads alert-autoloads
org-fc-autoloads org-clock-csv-autoloads git-auto-commit-mode-autoloads
rainbow-identifiers-autoloads vimrc-mode-autoloads rg-autoloads
auto-compile-autoloads call-log-autoloads link-hint-autoloads
drag-stuff-autoloads yaml-mode-autoloads counsel-css-autoloads
rainbow-mode-autoloads sws-mode-autoloads stylus-mode-autoloads
sass-mode-autoloads company-web-autoloads web-mode-autoloads
slim-mode-autoloads pug-mode-autoloads haml-mode-autoloads
emmet-mode-autoloads company-shell-autoloads racer-autoloads
rustic-autoloads raku-mode-autoloads py-isort-autoloads
pyimport-autoloads python-pytest-autoloads pyvenv-autoloads
pipenv-autoloads company-anaconda-autoloads anaconda-mode-autoloads
pip-requirements-autoloads ox-hugo-autoloads ox-pandoc-autoloads
ob-async-autoloads org-roam-autoloads org-re-reveal-autoloads
org-tree-slide-autoloads centered-window-autoloads
org-pomodoro-autoloads jupyter-autoloads org-download-autoloads
orgit-autoloads org-pdftools-autoloads evil-org-autoloads
org-cliplink-autoloads toc-org-autoloads ox-clip-autoloads
htmlize-autoloads avy-autoloads org-mode-autoloads
company-nixos-options-autoloads nix-mode-autoloads
evil-markdown-autoloads edit-indirect-autoloads markdown-toc-autoloads
markdown-mode-autoloads company-math-autoloads company-reftex-autoloads
company-auctex-autoloads evil-tex-autoloads latex-preview-pane-autoloads
adaptive-wrap-autoloads auctex-autoloads xref-js2-autoloads
tide-autoloads skewer-mode-autoloads nodejs-repl-autoloads
add-node-modules-path-autoloads npm-mode-autoloads
js2-refactor-autoloads typescript-mode-autoloads rjsx-mode-autoloads
js2-mode-autoloads coffee-mode-autoloads meghanada-autoloads
groovy-mode-autoloads android-mode-autoloads
flycheck-golangci-lint-autoloads company-go-autoloads
go-gen-test-autoloads go-tag-autoloads gorepl-mode-autoloads
go-mode-autoloads go-guru-autoloads go-eldoc-autoloads
buttercup-autoloads flycheck-cask-autoloads elisp-demos-autoloads
elisp-def-autoloads overseer-autoloads macrostep-autoloads
highlight-quoted-autoloads csv-mode-autoloads rtags-autoloads
company-irony-c-headers-autoloads company-irony-autoloads
flycheck-irony-autoloads irony-eldoc-autoloads irony-autoloads
glsl-mode-autoloads opencl-mode-autoloads modern-cpp-font-lock-autoloads
disaster-autoloads demangle-mode-autoloads cuda-mode-autoloads
cmake-mode-autoloads pdf-tools-autoloads makefile-executor-autoloads
github-review-autoloads magit-todos-autoloads magit-gitflow-autoloads
lsp-ivy-autoloads lsp-ui-autoloads lsp-mode-autoloads ivy-xref-autoloads
dumb-jump-autoloads eros-autoloads quickrun-autoloads
editorconfig-autoloads envrc-autoloads ns-auto-titlebar-autoloads
osx-trash-autoloads flycheck-popup-tip-autoloads flycheck-autoloads
gitignore-mode-autoloads gitconfig-mode-autoloads
git-timemachine-autoloads browse-at-remote-autoloads fd-dired-autoloads
dired-rsync-autoloads diff-hl-autoloads dired-git-info-autoloads
diredfl-autoloads doom-snippets-autoloads auto-yasnippet-autoloads
parinfer-autoloads evil-vimish-fold-autoloads vimish-fold-autoloads
yasnippet-autoloads evil-collection-autoloads evil-quick-diff-autoloads
evil-visualstar-autoloads evil-traces-autoloads
evil-textobj-anyblock-autoloads evil-surround-autoloads
evil-snipe-autoloads evil-numbers-autoloads
evil-nerd-commenter-autoloads evil-lion-autoloads
evil-indent-plus-autoloads evil-exchange-autoloads evil-escape-autoloads
evil-embrace-autoloads evil-easymotion-autoloads evil-args-autoloads
evil-autoloads persp-mode-autoloads ace-window-autoloads
vi-tilde-fringe-autoloads evil-goggles-autoloads nav-flash-autoloads
hl-todo-autoloads solaire-mode-autoloads doom-themes-autoloads
anzu-autoloads doom-modeline-autoloads wgrep-autoloads
ivy-rich-autoloads counsel-projectile-autoloads amx-autoloads
counsel-autoloads ivy-autoloads swiper-autoloads company-dict-autoloads
company-autoloads which-key-autoloads general-autoloads
projectile-autoloads ws-butler-autoloads pcre2el-autoloads
helpful-autoloads dtrt-indent-autoloads better-jumper-autoloads
restart-emacs-autoloads rainbow-delimiters-autoloads
highlight-numbers-autoloads hide-mode-line-autoloads
all-the-icons-autoloads explain-pause-mode-autoloads gcmh-autoloads
auto-minor-mode-autoloads finder-inf use-package-autoloads
bind-key-autoloads straight-autoloads evil-collection-info info straight
char-fold help-fns radix-tree cl-print backtrace evil-collection-help
help mc-hide-unmatched-lines-mode mc-mark-more mc-cycle-cursors
multiple-cursors-core cursor-sensor evil-collection-minibuffer
evil-traces evil-ex evil-collection-which-key which-key better-jumper
company-capf company evil-collection-ivy ivy-avy avy ivy-rich counsel
xdg ivy-xref evil-collection-xref xref project swiper ivy delsel
ivy-faces ivy-overlay colir evil-goggles evil-easymotion evil-escape
evil-snipe auto-minor-mode whitespace git-auto-commit-mode org-eldoc
embrace expand-region text-mode-expansions the-org-mode-expansions
er-basic-expansions expand-region-core expand-region-custom toc-org
evil-org image-file image-converter lv savehist git-gutter-fringe
fringe-helper git-gutter evil-collection-vc-git vc-git projectile
flycheck-popup-tip evil-collection-popup popup flycheck-cask
parinfer-ext parinfer evil-collection-ediff ediff mode-local parinferlib
eros highlight-quoted rainbow-delimiters highlight-numbers parent-mode
rainbow-identifiers color raku-detect face-remap editorconfig-core
editorconfig-core-handle editorconfig-fnmatch gcmh winner paren
smartparens-config smartparens-text smartparens evil-collection-flycheck
flycheck ws-butler editorconfig recentf tree-widget saveplace so-long
envrc inheritenv nav-flash pulse jka-compr doom-themes-ext-org
solaire-mode doom-one-light-theme doom-themes doom-themes-base
doom-modeline doom-modeline-segments doom-modeline-env
doom-modeline-core shrink-path all-the-icons all-the-icons-faces
data-material data-weathericons data-octicons data-fileicons
data-faicons data-alltheicons display-fill-column-indicator
vi-tilde-fringe display-line-numbers doom-snippets doom-snippets-lib
yasnippet evil-collection-elisp-mode elisp-mode dtrt-indent ol-bibtex
bibtex .emacs org-buganizer google-bugged org-p4 p4-files google-process
aio google-paths google-platform sql evil-collection-view view
google-emacs-utilities ediff-merg ediff-mult ediff-wind ediff-diff
ediff-help ediff-util ediff-init org-super-agenda ts ht inline org-habit
org-inlinetask org-roam-protocol org-protocol use-package-bind-key
bind-key org-fc org-fc-cache org-fc-dashboard org-fc-algo-sm2 cl
org-fc-type-cloze org-fc-type-text-input org-fc-type-double
org-fc-type-normal org-fc-awk org-fc-compat svg dom parse-time iso8601
org-indent org-drill persist org-agenda orgit
evil-collection-magit-todos magit-todos pcre2el rxt re-builder hl-todo
async github-review ghub-graphql treepy gsexp ghub url-http url-gw nsm
url-auth gnutls deferred a magit-autoloads magit-submodule
magit-obsolete magit-popup magit-blame magit-stash magit-reflog
magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote
magit-commit magit-sequence magit-notes magit-worktree magit-tag
magit-merge magit-branch magit-reset magit-files magit-refs magit-status
magit core-packages package browse-url url url-proxy url-privacy
url-expand url-methods url-history url-cookie url-domsuf url-util
mailcap url-handlers magit-repos magit-apply magit-wip magit-log
which-func evil-collection-imenu imenu magit-diff smerge-mode diff
evil-collection-diff-mode diff-mode git-commit evil-collection-log-edit
log-edit message rmc puny rfc822 mml mml-sec evil-collection-epa epa epg
epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode
mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr
mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log magit-core
magit-autorevert autorevert filenotify magit-margin magit-transient
magit-process with-editor evil-collection-term term disp-table ehelp
evil-collection-eshell em-prompt esh-mode eshell esh-cmd esh-ext esh-opt
esh-proc esh-io esh-arg esh-module esh-groups esh-util
evil-collection-dired dired dired-loaddefs server magit-mode help-mode
magit-git magit-section magit-utils crm org-roam org-roam-link
org-roam-graph xml org-roam-doctor org-roam-dailies org-roam-capture
org-roam-db emacsql-sqlite3 emacsql emacsql-compiler org-capture
org-roam-completion org-roam-buffer org-roam-faces org-roam-macs
org-roam-compat f s dash org-id org-refile smartparens-org org-yt
org-element avl-tree generator org ob ob-tangle ob-ref ob-lob ob-table
ob-exp org-macro org-footnote org-src ob-comint org-pcomplete org-list
org-faces org-entities time-date noutline outline org-version
ob-emacs-lisp ob-core ob-eval org-table ol org-keys org-compat org-macs
org-loaddefs find-func evil-collection-calendar cal-menu calendar
cal-loaddefs adaptive-wrap evil-collection-explain-pause-mode
explain-pause-mode explain-pause-top explain-pause-log-to-socket
evil-collection-profiler profiler hl-line+ hl-line evil-collection-rg rg
vc vc-dispatcher rg-info-hack rg-menu transient format-spec rg-ibuffer
rg-result wgrep-rg evil-collection-wgrep wgrep rg-history rg-header
ibuf-ext evil-collection-ibuffer ibuffer ibuffer-loaddefs
evil-collection-grep grep evil-collection-compile compile
text-property-search auto-compile packed evil-collection-custom cus-edit
cus-start cus-load wid-edit evil-collection-comint evil-collection
annalist persp-mode let-alist ns-auto-titlebar evil evil-integration
evil-maps evil-commands ffap url-parse auth-source eieio eieio-core
eieio-loaddefs password-cache json map url-vars reveal flyspell ispell
evil-jumps evil-command-window evil-types evil-search shell pcomplete
comint ansi-color evil-macros evil-repeat evil-states evil-core advice
evil-common windmove thingatpt rect evil-digraphs evil-vars ring
easy-mmode derived core-editor core-projects core-ui edmacro kmacro comp
comp-cstr warnings rx core-keybinds pp general cl-extra easymenu seq
byte-opt cl-seq use-package-core bytecomp byte-compile cconv
core-modules tex-site core core-lib cl-macs gv cl-loaddefs cl-lib subr-x
iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util
term/common-win tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode lisp-mode prog-mode register
page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse
jit-lock font-lock syntax facemenu font-core term/tty-colors frame
minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite charscript charprop case-table epa-hook jka-cmpr-hook simple
abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face pcase
macroexp files window text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget hashtable-print-readable backquote threads
kqueue cocoa ns lcms2 multi-tty make-network-process nativecomp emacs)

Memory information:
((conses 16 1524294 1845224)
 (symbols 48 62411 7)
 (strings 32 243889 240300)
 (string-bytes 1 9782634)
 (vectors 16 98776)
 (vector-slots 8 2645548 1462575)
 (floats 8 1295 10854)
 (intervals 56 39395 14863)
 (buffers 984 39))


-- 
Robert Irelan
rirelan@gmail.com





             reply	other threads:[~2021-03-06  2:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-06  2:00 Robert Irelan [this message]
2021-03-06 12:55 ` bug#46958: 28.0.50; invalid-function error for macros that have function bindings Lars Ingebrigtsen
2021-03-06 14:24   ` Basil L. Contovounesios
2021-03-06 18:28     ` Robert Irelan
2021-03-06 22:39       ` Phil Sainty
2021-03-07 14:27         ` Basil L. Contovounesios
2021-03-07 21:38         ` Robert Irelan
2021-03-08  6:30           ` Phil Sainty
2021-03-08  7:18             ` Robert Irelan
2021-03-08  9:06               ` Phil Sainty
2022-06-20  1:10               ` Lars Ingebrigtsen
2021-03-07 14:33   ` Pip Cet
2021-03-07 15:58     ` Lars Ingebrigtsen
2021-03-07 18:06       ` Pip Cet

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJUyYjoqYf5NM_UcEZetJLYUcUfDPsU=KZaS3sbhTLbU8VfSUQ@mail.gmail.com' \
    --to=rirelan@gmail.com \
    --cc=46958@debbugs.gnu.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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