From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jay Kamat Newsgroups: gmane.emacs.bugs Subject: bug#29111: 26.0.90; Erc keep-place module broken with new default of switch-to-buffer-preserve-window-point Date: Wed, 01 Nov 2017 23:41:06 -0400 Message-ID: <87inetcppp.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1509594210 436 195.159.176.226 (2 Nov 2017 03:43:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 2 Nov 2017 03:43:30 +0000 (UTC) To: 29111@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 02 04:43:25 2017 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 1eA6PX-0007bq-F9 for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Nov 2017 04:43:19 +0100 Original-Received: from localhost ([::1]:58530 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eA6Pe-0000NC-Jz for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Nov 2017 23:43:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36417) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eA6ON-0008BW-KP for bug-gnu-emacs@gnu.org; Wed, 01 Nov 2017 23:42:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eA6OI-0006HM-OS for bug-gnu-emacs@gnu.org; Wed, 01 Nov 2017 23:42:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37980) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eA6OI-0006HD-Kg for bug-gnu-emacs@gnu.org; Wed, 01 Nov 2017 23:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eA6OI-0001nP-Bl for bug-gnu-emacs@gnu.org; Wed, 01 Nov 2017 23:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jay Kamat Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Nov 2017 03:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 29111 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15095940846851 (code B ref -1); Thu, 02 Nov 2017 03:42:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Nov 2017 03:41:24 +0000 Original-Received: from localhost ([127.0.0.1]:46661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eA6Ng-0001mR-Cf for submit@debbugs.gnu.org; Wed, 01 Nov 2017 23:41:24 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45207) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eA6Ne-0001mD-1n for submit@debbugs.gnu.org; Wed, 01 Nov 2017 23:41:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eA6NX-0005ew-Uy for submit@debbugs.gnu.org; Wed, 01 Nov 2017 23:41:16 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:33272) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eA6NX-0005ef-Q4 for submit@debbugs.gnu.org; Wed, 01 Nov 2017 23:41:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36159) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eA6NW-00087L-Ke for bug-gnu-emacs@gnu.org; Wed, 01 Nov 2017 23:41:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eA6NR-0005YL-OO for bug-gnu-emacs@gnu.org; Wed, 01 Nov 2017 23:41:14 -0400 Original-Received: from mail-qk0-x229.google.com ([2607:f8b0:400d:c09::229]:52594) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eA6NR-0005Y5-Ic for bug-gnu-emacs@gnu.org; Wed, 01 Nov 2017 23:41:09 -0400 Original-Received: by mail-qk0-x229.google.com with SMTP id b15so5165449qkg.9 for ; Wed, 01 Nov 2017 20:41:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=Ns5livsomoWsK6bteunKT3Yzr5DmV0fZZop2JCftFQ0=; b=V3Lw3RyO2+VoO1RuFIo1Wxqqjw1+8gtsZRayPFif+YK8WTQwDyCmOp4szGgWba4lgn 59TDjl5c2Xn+ZDIAxWavc24WXeA6P/Hlph2pYMdmg9y/d1xuFdEtVYioIWufp0eQhCqt pJg/ExrjKB33pRR6lKUvyw2w8SUY04bPW2/YUwQ5ACXYVnJbHQqoxXPtIYu8F925eF4W +piFiFKZvs4yLFtXx5dXH6TiK2KB9TNf2tL6LAQRLdeB9Qt0FoE1UfhdWLDz/U5abSe7 uYC+IBB8rjFDzbE5L0ByPf96GTvXFDVhSEhEHFodW4ggItUbMGFck/j+hjYvDt3oHEQT ganQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=Ns5livsomoWsK6bteunKT3Yzr5DmV0fZZop2JCftFQ0=; b=XqqgHq9EL8pldDU686dzLwrWWyCHpEGUMUIHaTyFG1wIUJYx2DuCB6DfvFvaqREIUl 8OCXdVWbe56SgkgM0ZIhK9yd+cexJguzJAeuuftv7E4n7eS7m128b2Blt2vUN4jThlMF 3Mx0v7mdJjrGiWZioDf/xDLaoIXX3fGGKk6Qk9sM3En1j60aAzKm6oOSRnNQDHYSfH7C oP642NCmlCnodZ65MIW3FYyjuptLXrDtreBTJTeNSEEF7WyroH3/lgk1BBgRmY6NsGw7 oQDd2qOyjU8CTtJ92aSnRePpqTTXJE+uqL04+DtSmsOeXF979xbgOb+ToYLs1jh/gsMi ZoKQ== X-Gm-Message-State: AMCzsaWBpcv8RhszgJFKWkXalJBHwkgW5rd8O7xXMsbrCeSKUSkgvuog evJWHWNAa+ybufRdIovQiKTWpHTd X-Google-Smtp-Source: ABhQp+TjD27G+o4lZwa7+nYRFzcI1hvnV5JLIWrwkSEjGtmBTRFlVSd78NaHI8zoqaSyyWaYIK2mzg== X-Received: by 10.55.20.72 with SMTP id e69mr2906799qkh.194.1509594068333; Wed, 01 Nov 2017 20:41:08 -0700 (PDT) Original-Received: from laythe (res380d-128-61-81-32.res.gatech.edu. [128.61.81.32]) by smtp.gmail.com with ESMTPSA id v189sm1458574qkb.46.2017.11.01.20.41.07 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 01 Nov 2017 20:41:07 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:139347 Archived-At: Hi, One of the built-in erc modules is keep-place (in erc-goodies), which keeps the place of point while new messages come into erc. The module works as expected in Emacs 25. However, in Emacs 26, enabling this module does nothing in an Emacs -Q (ie: the point is not saved at all, point is always moved to the bottom of the buffer). After much searching, I found this is related to the new default value (t) of `switch-to-buffer-preserve-window-point'. When setting this variable back to nil, this issue goes away, and the keep-place module works as normal on Emacs 26. Since `switch-to-buffer-preserve-window-point' is defaulting to t, is it possible to update keep-place to work regardless of this setting? If that's not a possibility (since this seems to be a global variable), documentation needs to be updated somehow to make it very clear that this variable must be set to 'nil' for keep-place to work properly. I tested this with the minimal init file: (require 'erc) (setq erc-modules '(autojoin button completion fill irccontrols list match menu move-to-prompt netsplit networks noncommands readonly ring stamp track truncate keep-place)) (erc-update-modules) Please let me know if you cannot reproduce. -Jay In GNU Emacs 26.0.90 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.22.11) of 2017-10-22 built on laythe Repository revision: 237e96bc5259e59ac5623a93a47f64abffab4e0b Windowing system distributor 'The X.Org Foundation', version 11.0.11902000 System Description: Debian GNU/Linux 9.2 (stretch)