From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Colin Baxter Newsgroups: gmane.emacs.bugs Subject: bug#38495: Emacs ignores ~/.Xdefaults and ~/.Xdefaults-hostname Date: Thu, 05 Dec 2019 12:11:23 +0000 Message-ID: <87fthz0y6s.fsf@yandex.com> References: <87d0d3ky5j.fsf@yandex.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="59969"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: , 38495@debbugs.gnu.org To: Andrea Cardaci Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 05 14:59:33 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1icrfJ-000FU0-6y for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Dec 2019 14:59:33 +0100 Original-Received: from localhost ([::1]:54608 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icrfI-0002uJ-0l for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Dec 2019 08:59:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56831) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icrSR-00075H-P5 for bug-gnu-emacs@gnu.org; Thu, 05 Dec 2019 08:46:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1icrSQ-0008Eo-KA for bug-gnu-emacs@gnu.org; Thu, 05 Dec 2019 08:46:15 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37343) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1icrSP-0007wY-Gq for bug-gnu-emacs@gnu.org; Thu, 05 Dec 2019 08:46:14 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1icpzF-0002LD-Jv for bug-gnu-emacs@gnu.org; Thu, 05 Dec 2019 07:12:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Colin Baxter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Dec 2019 12:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38495 X-GNU-PR-Package: emacs Original-Received: via spool by 38495-submit@debbugs.gnu.org id=B38495.15755478998966 (code B ref 38495); Thu, 05 Dec 2019 12:12:01 +0000 Original-Received: (at 38495) by debbugs.gnu.org; 5 Dec 2019 12:11:39 +0000 Original-Received: from localhost ([127.0.0.1]:43201 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1icpys-0002KX-Ev for submit@debbugs.gnu.org; Thu, 05 Dec 2019 07:11:38 -0500 Original-Received: from forward103p.mail.yandex.net ([77.88.28.106]:41861) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1icpyn-0002KD-3g for 38495@debbugs.gnu.org; Thu, 05 Dec 2019 07:11:37 -0500 Original-Received: from mxback9o.mail.yandex.net (mxback9o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::23]) by forward103p.mail.yandex.net (Yandex) with ESMTP id B383218C1594; Thu, 5 Dec 2019 15:11:25 +0300 (MSK) Original-Received: from myt5-e8d19f59bd21.qloud-c.yandex.net (myt5-e8d19f59bd21.qloud-c.yandex.net [2a02:6b8:c12:3e24:0:640:e8d1:9f59]) by mxback9o.mail.yandex.net (mxback/Yandex) with ESMTP id EMG7lRZDdq-BP7mcSxl; Thu, 05 Dec 2019 15:11:25 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1575547885; bh=ct3ljH0dh1059d3cR4GcFqibLMZr0rOnGGY25CjZoVM=; h=In-Reply-To:Subject:To:From:Cc:Cc:Date:References:Message-ID; b=YTeciQ0ZuEdHR+Do1gzX7U/h7tCvvmb2bjMiTvzovSk9FGjY27SMd86/hPLyNC7zS V91GWSUwIIazQt0EHtAToRqynZ+YqK2wHk9CP0CGFkVXRVCcLHut61mRMoml+Zbklj BOg21TK9RWllDHJ5xismz5F8oCVhiiRg3/VMe2Sg= Authentication-Results: mxback9o.mail.yandex.net; dkim=pass header.i=@yandex.com Original-Received: by myt5-e8d19f59bd21.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id NDiONRvdJq-BOWqpHJi; Thu, 05 Dec 2019 15:11:24 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) X-Face: -P+89ASh_wrs;AUGm`!l[}/o-lyK}5W.gq\fkJ{#d6Gu,hWrZNz::iMm5PJb} __A96]-LUrl)X=uF=V|\3-\9/sXvBs/H In-Reply-To: (Andrea Cardaci's message of "Thu, 5 Dec 2019 12:39:34 +0100") Face: iVBORw0KGgoAAAANSUhEUgAAACwAAAAMCAIAAACWSshgAAAABmJLR0QA/wD/AP+gvaeTAAAA 4ElEQVQ4je2TO07DUBBFz9gvz4QOpWEJNOlZTHbAcqLsgMXQp2EJNBFlhPI+FFaq3OsiBRVTztEZ X9nXsYdAzMfz+v3lSRHejqft6Uei42Y6bDcS7T6/X7/Ot/sOaYKknBzBIK8xRmRNGL2VIx7VviyE WAWM+l4OJhMie2tlrBEX+28nFegK1A5NEmrnYs7dYVVI1RSz0WnmSThCxbJGl6TOfdDJO4QmVpnH Wd1avphDLBTzwZxbKuYQ0ir/xbzu52LqENiKFSgmRPFWNVaDdDGfpPryhfmh8Pv5oHwTDX4BTj9W 1MOan54AAAAASUVORK5CYII= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:172905 Archived-At: Dear Andrea, >>>>> Andrea Cardaci writes: > On Thu, 5 Dec 2019 at 08:51, Colin Baxter wrote: >> Today's pull from master reads my ~/.Xdefaults satisfactorily. > Hi Colin, > The only way here is to put my file in ~/.Xdefaults/hostname. > According to strace, the .Xdefault file (no -hostname suffix) is > never read. Could you try with strace too? > I suspect that you have loaded that file with xrdb -load so Emacs > uses the database and not the actual file. I've done Ctl-Alt to log in on a new tty, with a different window manager (stumpwm). The output of strace is what I'd expect - I've redacted my user and host names: [pid 7771] open("/home/username/.Xdefaults", O_RDONLY) = 10 [pid 7771] open("/home/username/.Xdefaults-host", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 7771] open("/home/username/.Xdefaults", O_RDONLY) = 10 [pid 7771] open("/home/username/.Xdefaults/host", O_RDONLY) = -1 ENOTDIR (Not a directory) I only have ~/.Xdefaults and no ~/.Xdefaults/host or ~/.Xdefaults/host files. Hope this helps. Best wishes,