From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Rolf Ade Newsgroups: gmane.emacs.bugs Subject: bug#31650: 26.1; Desktop mode adds wm stickiness to emacs windows. Date: Wed, 30 May 2018 12:53:03 +0200 Message-ID: <87wovle7ow.fsf@pointsman.de> References: <87zi0idk0c.fsf@pointsman.de> <5B0E4778.9030708@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1527677616 10045 195.159.176.226 (30 May 2018 10:53:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 30 May 2018 10:53:36 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: 31650@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 30 12:53:32 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fNyjU-0002Vo-89 for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 May 2018 12:53:32 +0200 Original-Received: from localhost ([::1]:37549 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNylZ-0005mX-Oe for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 May 2018 06:55:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNyk1-0004mB-Vz for bug-gnu-emacs@gnu.org; Wed, 30 May 2018 06:54:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fNyjy-0002z5-SU for bug-gnu-emacs@gnu.org; Wed, 30 May 2018 06:54:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46830) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fNyjy-0002yx-OP for bug-gnu-emacs@gnu.org; Wed, 30 May 2018 06:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fNyjy-00020C-CD for bug-gnu-emacs@gnu.org; Wed, 30 May 2018 06:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Rolf Ade Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 May 2018 10:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31650 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31650-submit@debbugs.gnu.org id=B31650.15276775937636 (code B ref 31650); Wed, 30 May 2018 10:54:02 +0000 Original-Received: (at 31650) by debbugs.gnu.org; 30 May 2018 10:53:13 +0000 Original-Received: from localhost ([127.0.0.1]:54727 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fNyjA-0001z6-Ul for submit@debbugs.gnu.org; Wed, 30 May 2018 06:53:13 -0400 Original-Received: from mxout3.interscholz.de ([85.236.196.238]:37072) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fNyj8-0001yq-WB for 31650@debbugs.gnu.org; Wed, 30 May 2018 06:53:11 -0400 Original-Received: from localhost (mxout3 [127.0.0.1]) by mxout3.interscholz.de (Postfix) with ESMTP id C950826925; Wed, 30 May 2018 12:53:04 +0200 (CEST) X-Virus-Scanned: interscholz amavisd-new at mxout3.interscholz.de Original-Received: from server.web01.interscholz.net (server.web01.interscholz.net [85.236.196.138]) by mxout3.interscholz.de (Postfix) with ESMTP id 3B8D420E80; Wed, 30 May 2018 12:53:04 +0200 (CEST) Original-Received: from linux-qg7d (p5B317BC3.dip0.t-ipconnect.de [91.49.123.195]) by server.web01.interscholz.net (Postfix) with ESMTPSA id BF73D3401E8; Wed, 30 May 2018 12:53:03 +0200 (CEST) In-Reply-To: <5B0E4778.9030708@gmx.at> (martin rudalics's message of "Wed, 30 May 2018 08:40:56 +0200") 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: 208.118.235.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:146749 Archived-At: martin rudalics writes: > We would eventually have to find out whether and how an Emacs frame > can get "spontaneously" sticky in a session that has not been polluted > from a saved desktop. I'd suggest to proceed as follows: Somewhere > near the end of your init file (that is, after the code that restores > the previous desktop) insert this code: > > (let (sticky-frames) > (dolist (frame (frame-list)) > (when (frame-parameter frame 'sticky) > (setq sticky-frames (cons frame sticky-frames))) > (set-frame-parameter frame 'sticky nil)) > > (when sticky-frames > (message "The following frames were found sticky: %s" sticky-frames))) > > Now this should (1) make all your frames non-sticky in the new session > and (2) tell you if some frames were stored as sticky in your last > session. If (2) happens frequently and you are sure that you have > never marked any frames as sticky, we could execute that code above > with an idle timer and so get an approximate indication of _when_ a > frame changes its stickyness spontaneously. Now, this is interesting. I start emacs -Q. The frame comes up and isn't sticky. Now I evaluate your code from above in the scratch buffer. It returns nil. _But_: It also puts the frame into sticky mode! If I evaluate your code again, it now returns: The following frames were found sticky: (#) But the emacs frame is still sticky. If I evaluate your code once again (the third time) it returns nil, as the first time, but the frame is still sticky. If I "un-stick" the frame with the appropriate wm command and evaluate your code again it returns nil, but puts the frame back into sticky mode! If I start emacs -Q and first put the frame into sticky mode (with wm command) and then evaluate your code I get The following frames were found sticky: (#) But the frame is still sticky. If I evaluate your code again it returns nil, but the frame stays in sticky mode. This seems weird but this is, what I see, reproducible. As written, this is with emacs 26.1 and fvwm2 2.6.4 rolf