GNU bug report logs - #38495
Emacs ignores ~/.Xdefaults and ~/.Xdefaults-hostname

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Andrea Cardaci <cyrus.and@HIDDEN>; dated Wed, 4 Dec 2019 22:32:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 38495 <at> debbugs.gnu.org:


Received: (at 38495) by debbugs.gnu.org; 5 Dec 2019 12:28:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 05 07:28:58 2019
Received: from localhost ([127.0.0.1]:43245 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1icqFe-0002qN-Ak
	for submit <at> debbugs.gnu.org; Thu, 05 Dec 2019 07:28:58 -0500
Received: from mail-io1-f51.google.com ([209.85.166.51]:34373)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <cyrus.and@HIDDEN>) id 1icqFd-0002q9-LA
 for 38495 <at> debbugs.gnu.org; Thu, 05 Dec 2019 07:28:58 -0500
Received: by mail-io1-f51.google.com with SMTP id z193so3423464iof.1
 for <38495 <at> debbugs.gnu.org>; Thu, 05 Dec 2019 04:28:57 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=lrfGd1rwM1dw+ityuftByNwbfs73hoxJgM4McyIO4EE=;
 b=OG46WvIKPkM/vyjwfJnLHQz/5hoWLL4e1ewSfj5dt6YDYwyWlX0e6ghzF3jpu8eW/Q
 GQTFVY3sBe/OAD6y1GTtIbQGfsuzSIEzJSSD8Cc/+2NhM5kK9Q2IyPRTTCBRaU0Lz+pX
 cIelb839atlEi+q185UEqjKN3A9aUJwsw6iT4Y7VGE93WCidDPTBGNtuftqtMt5dARh9
 RN7/+qSn3R2wAWOfQHQizdiDPEE6N0+A3qElPB1cGx2gDvsvaxYQwfQDmcMbg5is/pps
 3Z1xfRXGuswruBJ48lJyPE1/ebZ79t0vtCbSYPw90Y/KhN7H601zfZh0GN7Btcav4eyK
 yvRQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=lrfGd1rwM1dw+ityuftByNwbfs73hoxJgM4McyIO4EE=;
 b=URXP5qzpss3akAJqBYNjQr2Zojs0IjJVHKdtXKzhWRrwH7dnFL9BEutZzIx+SDV5yY
 KAmUfkz8nt5pPUleX7L8NjAuv7j/NiKQZ5kCyXS8eu+SjmtMzoZFZPb7YUwDq+KBcnBt
 4KPpYYU8RgMhpQCul8+s2TAZL+xu4aVBSWacXvEjGqN6cdcX+s3g6oKGaPCu0FvFdwZs
 xl9FGSsHmO7HWDEOTo6jjbIZLaGHWCvOF7RR4/U4k0yOQyBIZ9cyNPnXfFEl8li3ACGn
 /+N4gTKKTT2fMDOBKAfix/T793dsebAXwSKdaz/q7o7RHVIt3FOOYiczPrycF9zA0QHa
 1o/w==
X-Gm-Message-State: APjAAAUAqTTI/Jf/sSoRrSuxD2PBOL9Brdt0uAQatBCkLgzAA/P9qSXS
 vkTibCiopRd56e3hMVzqwxpIA8EF4U3NTx8pMSk=
X-Google-Smtp-Source: APXvYqx8OQf3H9kKns2FWF+Pv0CryRvywG0o8YCI/AEr322uW1lm7s6at3bvzVthiLnjiC0fxGMfUCS5G7PP+nySVsI=
X-Received: by 2002:a05:6638:a2c:: with SMTP id
 12mr8096993jao.60.1575548931849; 
 Thu, 05 Dec 2019 04:28:51 -0800 (PST)
MIME-Version: 1.0
References: <CACMsj9PXkLaV+bvQwSq__TgW3FnzQ=t16Trj5LMMo5hPSYQ7+Q@HIDDEN>
 <87d0d3ky5j.fsf@HIDDEN>
 <CACMsj9Okb=Gia4f2eHdvEhJd_obk5YaJ5CHT9sBs+11kV9xSuw@HIDDEN>
 <87fthz0y6s.fsf@HIDDEN>
In-Reply-To: <87fthz0y6s.fsf@HIDDEN>
From: Andrea Cardaci <cyrus.and@HIDDEN>
Date: Thu, 5 Dec 2019 13:28:34 +0100
Message-ID: <CACMsj9ObVsHr1pn+tAp8XvVJioZ9vSOmVm_40Sw1JTwTcftdLw@HIDDEN>
Subject: Re: bug#38495: Emacs ignores ~/.Xdefaults and ~/.Xdefaults-hostname
To: Colin Baxter <m43cap@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 38495
Cc: 38495 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi Colin,

Thanks for trying it out.

On Thu, 5 Dec 2019 at 13:11, Colin Baxter <m43cap@HIDDEN> wrote:
> [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)

Well, this is super weird, if I only place a .Xdefault file in my home
and run Emacs via strace I see:

> $ strace -f emacs |& grep Xdefaults
> [pid 31920] openat(AT_FDCWD, "/home/cyrus/.Xdefaults-hostname", O_RDONLY) = -1 ENOENT (No such file or directory)
> [pid 31920] openat(AT_FDCWD, "/home/cyrus/.Xdefaults/hostname", O_RDONLY) = -1 ENOTDIR (Not a directory)

Also marginally weird that we're seeing different syscalls (open vs openat).




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38495; Package emacs. Full text available.

Message received at 38495 <at> debbugs.gnu.org:


Received: (at 38495) by debbugs.gnu.org; 5 Dec 2019 12:11:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 05 07:11:39 2019
Received: from localhost ([127.0.0.1]:43201 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1icpys-0002KX-Ev
	for submit <at> debbugs.gnu.org; Thu, 05 Dec 2019 07:11:38 -0500
Received: from forward103p.mail.yandex.net ([77.88.28.106]:41861)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m43cap@HIDDEN>) id 1icpyn-0002KD-3g
 for 38495 <at> debbugs.gnu.org; Thu, 05 Dec 2019 07:11:37 -0500
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)
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
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)
From: Colin Baxter <m43cap@HIDDEN>
To: Andrea Cardaci <cyrus.and@HIDDEN>
Subject: Re: bug#38495: Emacs ignores ~/.Xdefaults and ~/.Xdefaults-hostname
References: <CACMsj9PXkLaV+bvQwSq__TgW3FnzQ=t16Trj5LMMo5hPSYQ7+Q@HIDDEN>
 <87d0d3ky5j.fsf@HIDDEN>
 <CACMsj9Okb=Gia4f2eHdvEhJd_obk5YaJ5CHT9sBs+11kV9xSuw@HIDDEN>
X-Face: -P+89ASh_wrs;AUGm`!l[}/o-lyK}5W.gq\fkJ{#d6Gu,hWrZNz::iMm5PJb}
 __A96]-LUrl)X=uF=V|\3-\9/sXvBs/H
Date: Thu, 05 Dec 2019 12:11:23 +0000
In-Reply-To: <CACMsj9Okb=Gia4f2eHdvEhJd_obk5YaJ5CHT9sBs+11kV9xSuw@HIDDEN>
 (Andrea Cardaci's message of "Thu, 5 Dec 2019 12:39:34 +0100")
Message-ID: <87fthz0y6s.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
Face: iVBORw0KGgoAAAANSUhEUgAAACwAAAAMCAIAAACWSshgAAAABmJLR0QA/wD/AP+gvaeTAAAA
 4ElEQVQ4je2TO07DUBBFz9gvz4QOpWEJNOlZTHbAcqLsgMXQp2EJNBFlhPI+FFaq3OsiBRVTztEZ
 X9nXsYdAzMfz+v3lSRHejqft6Uei42Y6bDcS7T6/X7/Ot/sOaYKknBzBIK8xRmRNGL2VIx7VviyE
 WAWM+l4OJhMie2tlrBEX+28nFegK1A5NEmrnYs7dYVVI1RSz0WnmSThCxbJGl6TOfdDJO4QmVpnH
 Wd1avphDLBTzwZxbKuYQ0ir/xbzu52LqENiKFSgmRPFWNVaDdDGfpPryhfmh8Pv5oHwTDX4BTj9W
 1MOan54AAAAASUVORK5CYII=
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 38495
Cc: , 38495 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Dear Andrea,
>>>>> Andrea Cardaci <cyrus.and@HIDDEN> writes:

    > On Thu, 5 Dec 2019 at 08:51, Colin Baxter <m43cap@HIDDEN> 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 <f1> 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,




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38495; Package emacs. Full text available.

Message received at 38495 <at> debbugs.gnu.org:


Received: (at 38495) by debbugs.gnu.org; 5 Dec 2019 11:40:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 05 06:40:00 2019
Received: from localhost ([127.0.0.1]:43162 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1icpUG-0007ui-Ck
	for submit <at> debbugs.gnu.org; Thu, 05 Dec 2019 06:40:00 -0500
Received: from mail-io1-f52.google.com ([209.85.166.52]:42358)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <cyrus.and@HIDDEN>) id 1icpUC-0007uO-Du
 for 38495 <at> debbugs.gnu.org; Thu, 05 Dec 2019 06:39:57 -0500
Received: by mail-io1-f52.google.com with SMTP id f82so3224210ioa.9
 for <38495 <at> debbugs.gnu.org>; Thu, 05 Dec 2019 03:39:56 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=bbccTS8MOXA6KAZq7WGi1Ui1iAiMKZlFYO++WxOyqVY=;
 b=WUh1iqxqLkqPdsIyY9ssZGtcqm5TfF/KbV912u35pqHTV4Lq+2DpLe9BUG3zEsWLEJ
 pnTWq2CKLZShIJ5869CH/SZsqoADQqHC3CvMEkqU3foytQm7oMBalnxtTFzZXKGD/8fG
 6upLung6xfwGFf4AdIeKOQoF9WhO2K9V77rIn8IJJ264zQJY4qxKs6RRKXARWxOCJurj
 B+tGhXbS0AEalTAF9UL+giS0Pli+DF5agVy0aYA6CS8Ns7UfQOFYMuc2H/ULaWdwRkMd
 +VJSsFKI7EJNCxGrH0zluDw8wgN/IORWgLfEQME/3NSjZ83HaGdhkNFO/eBzef85isCe
 roxQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=bbccTS8MOXA6KAZq7WGi1Ui1iAiMKZlFYO++WxOyqVY=;
 b=Ar2t3E0AvvUx3wPUIplTvvrKKzkLbuHsftokQV8EkP325Ok5ZoB1ldRe3HYkOIGMYA
 NkzAMskC+p2xzGpDenU4w7PvV5bf39JUSUsMTe0UKVFGignSnrk4IKI6aQ31LXmiIpXF
 HZqSN+g/RIIJL0EgdGnD/bplVdX5NBqrl1TOsw2T1TijcE+4fEWynGpO7XYJJfjDUYil
 xsgVVzVQFBHrqMQU9oRDLiIisd3MMsFe7BY2qyr9xnyqim8B3wPDItDxnAtSxqxjdbPl
 8tBiehHYvp2oCVaPP9pEx2hQJYPS3g8l71T+cZTu6BOZfFwTSmpQ56uvMJYPBDDcKQDN
 hf/g==
X-Gm-Message-State: APjAAAUafQAWvpQ3myPIu5Dhg4puiE/qKARDZiTrZfKhAhWoa+/iNX/2
 pN/ldhmAFOR1vmCftLvDvIY2t3jDYIlYLWOb22U=
X-Google-Smtp-Source: APXvYqzpU+KdpEQPzlj2U+9Gs70Ewio2PHBcilJFG5Yng1i4AeiYyCqL1EdDBK7ltDqfed76IJvnuomKKmAaIttvvlw=
X-Received: by 2002:a5d:97c9:: with SMTP id k9mr5827842ios.297.1575545990604; 
 Thu, 05 Dec 2019 03:39:50 -0800 (PST)
MIME-Version: 1.0
References: <CACMsj9PXkLaV+bvQwSq__TgW3FnzQ=t16Trj5LMMo5hPSYQ7+Q@HIDDEN>
 <87d0d3ky5j.fsf@HIDDEN>
In-Reply-To: <87d0d3ky5j.fsf@HIDDEN>
From: Andrea Cardaci <cyrus.and@HIDDEN>
Date: Thu, 5 Dec 2019 12:39:34 +0100
Message-ID: <CACMsj9Okb=Gia4f2eHdvEhJd_obk5YaJ5CHT9sBs+11kV9xSuw@HIDDEN>
Subject: Re: bug#38495: Emacs ignores ~/.Xdefaults and ~/.Xdefaults-hostname
To: Colin Baxter <m43cap@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 38495
Cc: 38495 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Thu, 5 Dec 2019 at 08:51, Colin Baxter <m43cap@HIDDEN> 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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38495; Package emacs. Full text available.

Message received at 38495 <at> debbugs.gnu.org:


Received: (at 38495) by debbugs.gnu.org; 5 Dec 2019 07:52:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 05 02:52:09 2019
Received: from localhost ([127.0.0.1]:42941 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iclvk-0001e8-Ia
	for submit <at> debbugs.gnu.org; Thu, 05 Dec 2019 02:52:09 -0500
Received: from forward106j.mail.yandex.net ([5.45.198.249]:48674)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m43cap@HIDDEN>) id 1iclve-0001dD-CE
 for 38495 <at> debbugs.gnu.org; Thu, 05 Dec 2019 02:52:06 -0500
Received: from forward101q.mail.yandex.net (forward101q.mail.yandex.net
 [IPv6:2a02:6b8:c0e:4b:0:640:4012:bb98])
 by forward106j.mail.yandex.net (Yandex) with ESMTP id 0846B11A0E71;
 Thu,  5 Dec 2019 10:51:55 +0300 (MSK)
Received: from mxback10q.mail.yandex.net (mxback10q.mail.yandex.net
 [IPv6:2a02:6b8:c0e:1b4:0:640:b6ef:cb3])
 by forward101q.mail.yandex.net (Yandex) with ESMTP id 01C2DCF40002;
 Thu,  5 Dec 2019 10:51:55 +0300 (MSK)
Received: from vla5-b45cc32a2812.qloud-c.yandex.net
 (vla5-b45cc32a2812.qloud-c.yandex.net [2a02:6b8:c18:3508:0:640:b45c:c32a])
 by mxback10q.mail.yandex.net (mxback/Yandex) with ESMTP id 9AJNRjVKoa-psROfnFt;
 Thu, 05 Dec 2019 10:51:54 +0300
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail;
 t=1575532314; bh=AdpjEt/Ofaf0Tx1YXaIfwZPIjpNZWXOnT/+TG+/3eoo=;
 h=In-Reply-To:Subject:To:From:Cc:Cc:Date:References:Message-ID;
 b=mHism2JEoiLRnJ3xq9TbaL/l4MnlhcjGqKXozoQ61y/DxdHtlG0Rso8fMFw/olxXx
 JdFmC7fuDvet6dkOkLMOPlUY/TR63mtGTF2Aj2is1D/2s/m4dcYzGq9Ts2yD09buc1
 6ZhqX/fg0YJQdQF6ytR8n3ajpHtLwxqzjqv4SMF0=
Authentication-Results: mxback10q.mail.yandex.net;
 dkim=pass header.i=@yandex.com
Received: by vla5-b45cc32a2812.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA
 id egfPu2EhWr-prVCoJGc; Thu, 05 Dec 2019 10:51:53 +0300
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (Client certificate not present)
From: Colin Baxter <m43cap@HIDDEN>
To: Andrea Cardaci <cyrus.and@HIDDEN>
Subject: Re: bug#38495: Emacs ignores ~/.Xdefaults and ~/.Xdefaults-hostname
References: <CACMsj9PXkLaV+bvQwSq__TgW3FnzQ=t16Trj5LMMo5hPSYQ7+Q@HIDDEN>
X-Face: -P+89ASh_wrs;AUGm`!l[}/o-lyK}5W.gq\fkJ{#d6Gu,hWrZNz::iMm5PJb}
 __A96]-LUrl)X=uF=V|\3-\9/sXvBs/H
Date: Thu, 05 Dec 2019 07:51:52 +0000
In-Reply-To: <CACMsj9PXkLaV+bvQwSq__TgW3FnzQ=t16Trj5LMMo5hPSYQ7+Q@HIDDEN>
 (Andrea Cardaci's message of "Wed, 4 Dec 2019 23:31:09 +0100")
Message-ID: <87d0d3ky5j.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAMCAIAAACfoWgaAAAABmJLR0QA/wD/AP+gvaeTAAAA
 SUlEQVQ4jWM8ffo0AyrIyMhgoDaYMWMGmggT1e0gErDw8PCgCTEzM1PdGkxbBs7HX758QRP6+/cv
 1a3BtGU0jukGRuOYYdjHMQAEnRfUh1QX6AAAAABJRU5ErkJggg==
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 38495
Cc: , 38495 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

>>>>> Andrea Cardaci <cyrus.and@HIDDEN> writes:

    > Hi, I'm trying the master version
    > (0e774d4f355b4f12a625da5ca9602d1ba876bcc1) and these two files are
    > now ignored by Emacs, it used to work in version 26.1, well it
    > used to load the .Xdefaults-hostname file but even that version
    > ignored .Xdefaults while this page says otherwise:

    > https://www.gnu.org/software/emacs/manual/html_node/efaq/Emacs-ignores-X-resources.html

    > In any case the master version now ignores both files. But,
    > according to strace, it opens that file:

    >> $ strace -f /opt/emacs/bin/emacs |& grep Xdefaults [pid 11310]
    >> openat(AT_FDCWD, "/home/cyrus/.Xdefaults-hostname", O_RDONLY) = 6

    > Instead (discovered via strace) Emacs uses the
    > ~/.Xdefaults/hostname file, this actually works but it's
    > undocumented and doesn't work in Emacs 26.1.


Today's pull from master reads my ~/.Xdefaults satisfactorily.


-- 
Colin Baxter
www.Colin-Baxter.com




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38495; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 4 Dec 2019 22:31:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 04 17:31:39 2019
Received: from localhost ([127.0.0.1]:42769 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1icdBL-0000Fk-0q
	for submit <at> debbugs.gnu.org; Wed, 04 Dec 2019 17:31:39 -0500
Received: from lists.gnu.org ([209.51.188.17]:55594)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <cyrus.and@HIDDEN>) id 1icdBI-0000FY-Tt
 for submit <at> debbugs.gnu.org; Wed, 04 Dec 2019 17:31:37 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:33931)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <cyrus.and@HIDDEN>) id 1icdBH-0006yb-Jc
 for bug-gnu-emacs@HIDDEN; Wed, 04 Dec 2019 17:31:36 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <cyrus.and@HIDDEN>) id 1icdBF-0002Wc-I2
 for bug-gnu-emacs@HIDDEN; Wed, 04 Dec 2019 17:31:34 -0500
Received: from mail-il1-x12f.google.com ([2607:f8b0:4864:20::12f]:39886)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <cyrus.and@HIDDEN>) id 1icdBE-0002OG-7L
 for bug-gnu-emacs@HIDDEN; Wed, 04 Dec 2019 17:31:33 -0500
Received: by mail-il1-x12f.google.com with SMTP id a7so1086406ild.6
 for <bug-gnu-emacs@HIDDEN>; Wed, 04 Dec 2019 14:31:26 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:from:date:message-id:subject:to;
 bh=Byr0C+DXhDWKJSZ7OshXWAsRQIoJ53PLxS8Kh+qn9eg=;
 b=dGkX2SnnnlJEs1ltHU4GPfPP1NdWrN6fu3h4ptUdD5F73rmob0iJgDdefcR6nSYLj0
 u8nhWGe1rcxjVoqiK2fJb/4zItqDIJ83T9dcE/prge8dnnqDRY9fAgFxX2I2SoEGwsZL
 IAd84oQo9F0bWv1o96X+iE0rAxT262tTJkhe1kNAfIcz9sWMAtL6eMvzasASAAR0hdLc
 fiiP2KQkGhGficsveVa7iR6Fjk8KdUBY5DBlK5mgoYgX1xDV3Xd90i8axwt7pwwr1rPa
 Phl0Ech6viqQxaZPnyQFKzsN3TmxWsWAKoLPggQvoEdCCTXmd/4M5590r3bd9gkw+WyD
 npQA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=Byr0C+DXhDWKJSZ7OshXWAsRQIoJ53PLxS8Kh+qn9eg=;
 b=GsQ6XbcRYC5d5X2Mkb2zJ0WzNcdjgPxLkIjl2UIOoAdgvx/JeoCSqbTZIZVjiwAoXg
 trn9dPpzP+kscEzcYuFkI6OJ104bCySVZbLlCjkXzNJLNDzOLiGGUb68BJv5xyDB+K6I
 Qioan69ugo0/EFWpg9cDVk5r0M9lBoLjh8MhKIen2+58ZNpNUgiOGSlkbzba2lBTT/8t
 FF1rIk38ucrvuf+5Dq0YOM8Gdx17tf3iBMnkKybCz8cChQLNHIkWNbbuSw965ayV5JGv
 +JFZtlEtMfZOeL/5ifxnot312Fnw87t5UembMNeDJ6skhk4JNiTrsnBAduzfJSpvQQGA
 x+Rw==
X-Gm-Message-State: APjAAAW7mwW+wXEBmq3Jd2ZtYnymr6UB8/sNM4WWC+c1Cg1DR4N3DMTk
 woUTZ4XuSNm5KTe+SdmpngGFqcEgVuNg1bS9Ru5h0Wrf
X-Google-Smtp-Source: APXvYqwH5yBCLySBXD4vl6IMqkqZ6YK7ysq9spWAamEE75DzrwQXmHgQjNVWOiaVxWaM/sEixpC2HHzUeJxAZOAje3o=
X-Received: by 2002:a92:8307:: with SMTP id f7mr5710321ild.183.1575498685698; 
 Wed, 04 Dec 2019 14:31:25 -0800 (PST)
MIME-Version: 1.0
From: Andrea Cardaci <cyrus.and@HIDDEN>
Date: Wed, 4 Dec 2019 23:31:09 +0100
Message-ID: <CACMsj9PXkLaV+bvQwSq__TgW3FnzQ=t16Trj5LMMo5hPSYQ7+Q@HIDDEN>
Subject: Emacs ignores ~/.Xdefaults and ~/.Xdefaults-hostname
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset="UTF-8"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2607:f8b0:4864:20::12f
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

Hi,

I'm trying the master version
(0e774d4f355b4f12a625da5ca9602d1ba876bcc1) and these two files are now
ignored by Emacs, it used to work in version 26.1, well it used to
load the .Xdefaults-hostname file but even that version ignored
.Xdefaults while this page says otherwise:

https://www.gnu.org/software/emacs/manual/html_node/efaq/Emacs-ignores-X-resources.html

In any case the master version now ignores both files. But, according
to strace, it opens that file:

> $ strace -f /opt/emacs/bin/emacs |& grep Xdefaults
> [pid 11310] openat(AT_FDCWD, "/home/cyrus/.Xdefaults-hostname", O_RDONLY) = 6

Instead (discovered via strace) Emacs uses the ~/.Xdefaults/hostname
file, this actually works but it's undocumented and doesn't work in
Emacs 26.1.


Best,
Andrea




Acknowledgement sent to Andrea Cardaci <cyrus.and@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#38495; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 5 Dec 2019 12:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.