From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#32744: There seems to be a bug in current-column in character mode Date: Mon, 17 Sep 2018 18:22:45 +0300 Message-ID: <83k1nkgncq.fsf@gnu.org> References: <83y3c1gyer.fsf@gnu.org> <83o9cwgp6x.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1537197665 28197 195.159.176.226 (17 Sep 2018 15:21:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 17 Sep 2018 15:21:05 +0000 (UTC) Cc: 32744@debbugs.gnu.org To: Kalman Reti Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 17 17:21:01 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 1g1vKe-0007A6-QM for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Sep 2018 17:21:00 +0200 Original-Received: from localhost ([::1]:36115 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g1vMl-0002Og-CB for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Sep 2018 11:23:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g1vMf-0002OO-1s for bug-gnu-emacs@gnu.org; Mon, 17 Sep 2018 11:23:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g1vMc-0002uy-Lu for bug-gnu-emacs@gnu.org; Mon, 17 Sep 2018 11:23:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39013) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g1vMc-0002se-Fs for bug-gnu-emacs@gnu.org; Mon, 17 Sep 2018 11:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g1vMc-00071o-99 for bug-gnu-emacs@gnu.org; Mon, 17 Sep 2018 11:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Sep 2018 15:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32744 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32744-submit@debbugs.gnu.org id=B32744.153719778026996 (code B ref 32744); Mon, 17 Sep 2018 15:23:02 +0000 Original-Received: (at 32744) by debbugs.gnu.org; 17 Sep 2018 15:23:00 +0000 Original-Received: from localhost ([127.0.0.1]:43271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g1vMa-00071M-H6 for submit@debbugs.gnu.org; Mon, 17 Sep 2018 11:23:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43529) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g1vMZ-00071A-H2 for 32744@debbugs.gnu.org; Mon, 17 Sep 2018 11:22:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g1vMP-0001Fi-9c for 32744@debbugs.gnu.org; Mon, 17 Sep 2018 11:22:54 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51949) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g1vMP-0001Dx-2d; Mon, 17 Sep 2018 11:22:49 -0400 Original-Received: from [176.228.60.248] (port=3816 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1g1vMO-0001Rq-Hv; Mon, 17 Sep 2018 11:22:49 -0400 In-reply-to: (message from Kalman Reti on Mon, 17 Sep 2018 10:54:50 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:150372 Archived-At: > From: Kalman Reti > Date: Mon, 17 Sep 2018 10:54:50 -0400 > Cc: 32744-done@debbugs.gnu.org > > > The doc string for the function doesn't clarify the intended meaning. > > I think the doc string for current column should be enhanced to say what it is returning. What would you want it to say in addition or differently to what it says now? > It's a bug in bubbles.el, now fixed on the emacs-26 branch. The patch > is below, so you can apply it locally if you want. > > The existing bubbles code works for both gui and character mode in emacs 22, so I'd characterize it less as a > bug in bubbles as an incompatibility introduced after emacs 22. I don't see bubbles.el in any Emacs 22.x release I have here. Maybe you have some downstream distribution which backported the game from Emacs 23? I did try in Emacs 23, and I saw the same problem there. And the initial revision of bubbles.el I see in Git has the same problem on TTY frames as the one I described. Perhaps there was some bug/misfeature in current-column, which was meanwhile fixed. > Is there some other function that will give 'how many forward-chars necessary to go from beginning of line to > here? I think you want posn-actual-col-row.