From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#57969: 29.0.50; `device-class' errors when NAME is nil Date: Wed, 21 Sep 2022 13:47:23 +0200 Message-ID: <87k05x6jas.fsf@gnus.org> References: <87r105tblc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28871"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Po Lu , 57969@debbugs.gnu.org To: Visuwesh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 21 13:52:53 2022 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 1oayHc-0007Ky-UN for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Sep 2022 13:52:52 +0200 Original-Received: from localhost ([::1]:42454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oayHb-0007Hb-Pq for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Sep 2022 07:52:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oayCx-0004mA-En for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2022 07:48:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33651) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oayCw-0001iw-Px for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2022 07:48:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oayCw-0002rD-Fh for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2022 07:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Sep 2022 11:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57969 X-GNU-PR-Package: emacs Original-Received: via spool by 57969-submit@debbugs.gnu.org id=B57969.166376085710841 (code B ref 57969); Wed, 21 Sep 2022 11:48:02 +0000 Original-Received: (at 57969) by debbugs.gnu.org; 21 Sep 2022 11:47:37 +0000 Original-Received: from localhost ([127.0.0.1]:60959 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oayCW-0002on-PV for submit@debbugs.gnu.org; Wed, 21 Sep 2022 07:47:37 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:36866) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oayCR-0002oU-V6 for 57969@debbugs.gnu.org; Wed, 21 Sep 2022 07:47:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=01HVer48hC7XS+add+gz9ug9q1S68dELNhWaAJ3vyZI=; b=nFvAou2jox/rZ/h5FxqRsG7RQ7 iD6wXkrM6p8rXQ9aMr3k/79D2htOtQq+D0+Cezyd2xtXORfQnWBbUzxCEKpCJXG9zpkYTh17ND9xD 0/nGUtT6yV24gU0qG68FhoVRodIeNOZ1LD9QuP8YQS3LoGN4Ar1QgQiHm1UG3V2zuUFI=; Original-Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oayCJ-0004dW-Pu; Wed, 21 Sep 2022 13:47:25 +0200 In-Reply-To: <87r105tblc.fsf@gmail.com> (Visuwesh's message of "Wed, 21 Sep 2022 13:15:19 +0530") X-Now-Playing: Niki Mono's _Contradictions are a Luxury_: "Soldiers On Acid" 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:243310 Archived-At: Visuwesh writes: > According to the docstring of `device-class', nil is a valid value for > the NAME argument however it errors out since `x-device-class' uses > `downcase' without checking if NAME is non-nil. Backtrace is below, > > Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil) > downcase(nil) Yes -- -- Return the class of the device NAME for an event generated on FRAME. NAME is a string that can be the value of last-event-device, or nil. -- But it's not clear what the meaning of nil should be. Perhaps Po Lu knows; added to the CCs. (And if nil really is a meaningful value for NAME, and not just a documentation error, then perhaps that argument should be optional?)