unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Jacob Faibussowitsch <jacob.fai@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>, 49877@debbugs.gnu.org
Subject: bug#49877: [Emacs 28.0.50 Trunk] *ERROR*: No applicable method: frame-creation-function
Date: Fri, 6 Aug 2021 08:55:42 -0400	[thread overview]
Message-ID: <715D80C2-F959-404A-AE41-9737E62CDCCD@gmail.com> (raw)
In-Reply-To: <87pmuqc3fl.fsf@gnus.org>

[-- Attachment #1: Type: text/plain, Size: 3874 bytes --]

> I'm still not able to reproduce the problem, but a different user
> reported exactly the same problem...  which then went away.  So
> something's definitely going on here.


Ok so on a whim I went and started bisecting my init file, and lo and behold it turns out there is some sort of subtle interaction with doom mode-line. Specifically, I configure it via:

(use-package-select doom-modeline
  :after all-the-icons
  :hook (after-init . doom-modeline-mode)
  :config
  (column-number-mode 1)
  :custom
  (doom-modeline-icon t)
  (doom-modeline-project-detection ‘project) <——— commenting out this line fixes the problem
  (doom-modeline-major-mode-icon t)
  (doom-modeline-major-mode-color-icon t)
  (doom-modeline-buffer-state-icon t)
  (doom-modeline-buffer-modification-icon t)
  (doom-modeline-unicode-fallback nil)
  (doom-modeline-modal-icon t)
  (doom-modeline-minor-modes nil)
  (doom-modeline-indent-info nil)
  (doom-modeline-lsp t))

So somehow this new eql change is related to the project root detection? I tried byte-compiling doom modeling again to see if perhaps there is an additional warning triggered, but the only warning emitted was

In doom-modeline--project-root:
doom-modeline-core.el:1193:26: Warning: ‘project-roots’ is an obsolete function (as of 0.3.0); use ‘project-root’ instead.

From this function:

(defun doom-modeline--project-root ()
  "Get the path to the root of your project.
Return nil if no project was found."
  (or doom-modeline--project-root
      (setq doom-modeline--project-root
            (pcase doom-modeline-project-detection
              ('ffip
               (when (fboundp 'ffip-get-project-root-directory)
                 (let ((inhibit-message t))
                   (ffip-get-project-root-directory))))
              ('projectile
               (when (fboundp 'projectile-project-root)
                 (projectile-project-root)))
              ('project
               (when (fboundp 'project-current)
                 (when-let ((project (project-current)))
                   (car (project-roots project))))))))) <——————— here

Best regards,

Jacob Faibussowitsch
(Jacob Fai - booss - oh - vitch)

> On Aug 6, 2021, at 05:45, Lars Ingebrigtsen <larsi@gnus.org> wrote:
> 
> Jacob Faibussowitsch <jacob.fai@gmail.com> writes:
> 
>> Is this with a fresh
>> checkout (or "make bootstrap")?
>> 
>> I’m not sure I follow, what is the difference?
> 
> Sorry, that was unclear.  I meant that as an inclusive or, and as
> opposed to doing an incremental build.
> 
>> I am able to reproduce/build emacs via:
>> 
>> 1. git checkout master
>> 2. make clean
>> 3. ./reconfigure.sh (attached)
>> 3. make all
> 
> I'm still not able to reproduce the problem, but a different user
> reported exactly the same problem...  which then went away.  So
> something's definitely going on here.
> 
> So I've added Stefan to the CCs -- could you take a look at this?  It
> looks like a possible problem with the recent eql changes, but is
> weirdly difficult to reproduce.  
> 
> diff --git a/lisp/frame.el b/lisp/frame.el
> index 9b3d120598..8c05ad2fe5 100644
> --- a/lisp/frame.el
> +++ b/lisp/frame.el
> @@ -36,7 +36,11 @@ as its argument.")
> (cl-generic-define-context-rewriter window-system (value)
> ;; If `value' is a `consp', it's probably an old-style specializer,
> ;; so just use it, and anyway `eql' isn't very useful on cons cells.
> - `(window-system ,(if (consp value) value `(eql ,value))))
> + `(window-system ,(if (consp value) value
> + ;; WARNING: unsure whether this eql expression
> + ;; is actually an eql specializer.
> + ;; Bug #47327
> + `(eql ',value))))
> 
> 
> -- 
> (domestic pets only, the antidote for overdose, milk.)
>   bloggy blog: http://lars.ingebrigtsen.no


[-- Attachment #2: Type: text/html, Size: 7099 bytes --]

  reply	other threads:[~2021-08-06 12:55 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-04 16:03 bug#49877: [Emacs 28.0.50 Trunk] *ERROR*: No applicable method: frame-creation-function Jacob Faibussowitsch
2021-08-05 11:12 ` Lars Ingebrigtsen
2021-08-05 12:39   ` Jacob Faibussowitsch
2021-08-06  9:45     ` Lars Ingebrigtsen
2021-08-06 12:55       ` Jacob Faibussowitsch [this message]
2021-08-09 23:07       ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-10  5:53         ` Christian Albrecht via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-10  6:00           ` Christian Albrecht via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-10  6:14             ` Christian Albrecht via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-10 13:43               ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-10 14:25                 ` Christian Albrecht via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-09 15:44 ` Christian Albrecht via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-09 15:57   ` Christian Albrecht via Bug reports for GNU Emacs, the Swiss army knife of text editors

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=715D80C2-F959-404A-AE41-9737E62CDCCD@gmail.com \
    --to=jacob.fai@gmail.com \
    --cc=49877@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=monnier@iro.umontreal.ca \
    /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).