From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#57669: 29.0.50; C-n, C-p off under long lines Date: Sat, 10 Sep 2022 16:55:21 +0000 Message-ID: References: <87y1uujufi.fsf@dick> <83k06effg6.fsf@gnu.org> <87tu5ijcqg.fsf@dick> <2e25ca87e3d9ee13ba3e@heytings.org> <87illxka46.fsf@dick> <8335d1dr39.fsf@gnu.org> <87mtb8hezl.fsf@dick> <838rmsd4cc.fsf@gnu.org> <878rmsh9me.fsf@dick> <87zgf8fsv3.fsf@dick> <83zgf8bkmn.fsf@gnu.org> <83v8pwbjvy.fsf@gnu.org> <87a678fnnz.fsf@dick> <83r10kbex8.fsf@gnu.org> <875yhwflw7.fsf@dick> <83pmg4bcjt.fsf@gnu.org> <87wnace31g.fsf@dick> <838rmrbrkp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14008"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57669@debbugs.gnu.org, dick To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 10 18:56:19 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oX3mE-0003Nd-Ih for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Sep 2022 18:56:18 +0200 Original-Received: from localhost ([::1]:49872 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oX3mD-0006ta-19 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Sep 2022 12:56:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oX3ly-0006ri-JQ for bug-gnu-emacs@gnu.org; Sat, 10 Sep 2022 12:56:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51586) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oX3ly-0001re-7R for bug-gnu-emacs@gnu.org; Sat, 10 Sep 2022 12:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oX3lx-00056R-Vl for bug-gnu-emacs@gnu.org; Sat, 10 Sep 2022 12:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Sep 2022 16:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57669 X-GNU-PR-Package: emacs Original-Received: via spool by 57669-submit@debbugs.gnu.org id=B57669.166282892619573 (code B ref 57669); Sat, 10 Sep 2022 16:56:01 +0000 Original-Received: (at 57669) by debbugs.gnu.org; 10 Sep 2022 16:55:26 +0000 Original-Received: from localhost ([127.0.0.1]:40285 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oX3lN-00055d-NX for submit@debbugs.gnu.org; Sat, 10 Sep 2022 12:55:26 -0400 Original-Received: from heytings.org ([95.142.160.155]:35348) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oX3lL-00055U-5L for 57669@debbugs.gnu.org; Sat, 10 Sep 2022 12:55:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1662828921; bh=mCLuTqoGYAoYNW730L39Ph15g517z6Uz3/RPU3+P95I=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=eJr3S0kr+7c3KYmPd/5JnI+87DrCRcU5VOxKhxhRpI3DzwDUU9kM72Y981PkvChlO N45mBfC67fMwPB3d4fVeHRAZ7HDgb2w1TmAx4hBdk9jhl70noFbzfq1K4u6UPkiev4 m2WAU/zNnxgPsqSyeirEKln0M1cX7ljJJQ9kInVwlJOQfF+ZWbIBSA93fy8iMuLwIU wAIu7J06FD1XgnntqexOsTmlMO7PTiSs4vQb+CcU3pqdEd3fskn0KCpUjriJC/3yvI t9B9plTaqIaNDfs3A4y/oKZz2IOSPWvQH+4ticChrYxDL7WGMFW+1aN42l17Bywa+v RADGro+J4WtNw== In-Reply-To: <838rmrbrkp.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:242111 Archived-At: > > The buffer->text->monospace flag is likewise implemented based on > simplistic assumptions: that only text properties could violate the > "monospace-ness" attribute. Here's why this is simplistic: > > . faces can be applied by overlays as well > > . faces can be applied directly by C code > > . faces can be applied by using glyphs from display-tables > > . even if we only have the default face, fonts used for various > non-ASCII characters can have different metrics from the default face's > font, and in some cases they can even be variable-pitch fonts > > . portions of display can be made invisible by selective-display, not > just by 'invisible' properties > > (I'm not claiming that the above is the exhaustive list of all the > reasons that the assumptions in behaved_p could be violated; there could > be more of them.) > FWIW, the simplest recipe for the fourth point above is to create a buffer with a long line (with say C-u 10000 a) and to insert, somewhere in the middle of that line, characters which have a width equal to zero (e.g. C-x 8 RET zero width space RET) and characters which have a width equal to two (e.g. C-x 8 RET e i s s a). You'll see that your algebraic calculations do not work anymore.