From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Madhu Newsgroups: gmane.emacs.bugs Subject: bug#47327: 28.0.50; (cl-generic) eql specializer not evaluated Date: Tue, 10 Aug 2021 18:09:46 +0530 Message-ID: References: <87k0pz5d6u.fsf@gmail.com> <87h7g634cz.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11275"; mail-complaints-to="usenet@ciao.gmane.io" To: 47327@debbugs.gnu.org Cancel-Lock: sha1:4yp7OiZRP55k2aE05oHmDZmUx/8= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 10 14:40:14 2021 Return-path: Envelope-to: geb-bug-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 1mDR3G-0002mY-Fs for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 Aug 2021 14:40:14 +0200 Original-Received: from localhost ([::1]:37228 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDR3F-0007aJ-3k for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 Aug 2021 08:40:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58440) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDR34-0007Ze-Fr for bug-gnu-emacs@gnu.org; Tue, 10 Aug 2021 08:40:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47115) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDR34-0003Ig-8C for bug-gnu-emacs@gnu.org; Tue, 10 Aug 2021 08:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDR33-0005G2-Vw for bug-gnu-emacs@gnu.org; Tue, 10 Aug 2021 08:40:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87k0pz5d6u.fsf@gmail.com> Resent-From: Madhu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Aug 2021 12:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47327 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.162859919720195 (code B ref -1); Tue, 10 Aug 2021 12:40:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Aug 2021 12:39:57 +0000 Original-Received: from localhost ([127.0.0.1]:58661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDR2z-0005Ff-09 for submit@debbugs.gnu.org; Tue, 10 Aug 2021 08:39:57 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:52950) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDR2x-0005FY-Ma for submit@debbugs.gnu.org; Tue, 10 Aug 2021 08:39:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58404) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDR2x-0007Z7-BT for bug-gnu-emacs@gnu.org; Tue, 10 Aug 2021 08:39:55 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:46792) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDR2w-0003DO-2X for bug-gnu-emacs@gnu.org; Tue, 10 Aug 2021 08:39:55 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mDR2q-00029n-Uj for bug-gnu-emacs@gnu.org; Tue, 10 Aug 2021 14:39:48 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:211482 Archived-At: --=-=-= Content-Type: text/plain `emacs --daemon' `emacsclient -t' fails to start with a no matching method error *ERROR*: No applicable method: frame-creation-function, ((vertical-scroll-bars) (height . 32) (width . 80) (client . #>) [...] (window-system) (tty . "/dev/pts/3") (tty-type . "xterm-256color")) The following patch might fix it, but it behaves strangely. After the fix (without recompiling the emacs binary) if I stick in a (load-library "frame") in my .emacs, the method does not appear to be patched. - I have to use a graphical `emacsclient -n -c' and then compile/load frame.el again. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=lisp-frame.el-frame-creation-function-fix-window-system.patch diff --git a/lisp/frame.el b/lisp/frame.el --- a/lisp/frame.el +++ b/lisp/frame.el @@ -38,7 +38,7 @@ window-system ;; so just use it, and anyway `eql' isn't very useful on cons cells. `(window-system ,(if (consp value) value `(eql ',value)))) -(cl-defmethod frame-creation-function (params &context (window-system nil)) +(cl-defmethod frame-creation-function (params &context (window-system (eql 'nil))) ;; It's tempting to get rid of tty-create-frame-with-faces and turn it into ;; this method (i.e. move this method to faces.el), but faces.el is loaded ;; much earlier from loadup.el (before cl-generic and even before --=-=-=--