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#24633: highlight-region func using (window-hscroll) in :align-to spec can cause inf loop Date: Sat, 22 Oct 2016 22:41:41 +0300 Message-ID: <83inskp3wq.fsf@gnu.org> References: <87vax5vuoj.fsf@users.sourceforge.net> <834m4nhz1t.fsf@gnu.org> <874m4mwyj2.fsf@users.sourceforge.net> <837f9ihg8l.fsf@gnu.org> <87y41yved9.fsf@users.sourceforge.net> <83y41yfwam.fsf@gnu.org> <87lgxxvh6o.fsf@users.sourceforge.net> <83h98lg0cn.fsf@gnu.org> <87y41grxox.fsf@users.sourceforge.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1477165417 5860 195.159.176.226 (22 Oct 2016 19:43:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 22 Oct 2016 19:43:37 +0000 (UTC) Cc: 24633@debbugs.gnu.org To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 22 21:43:32 2016 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 1by2CF-0006yK-2w for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Oct 2016 21:43:11 +0200 Original-Received: from localhost ([::1]:38495 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1by2CH-0003KR-Eo for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Oct 2016 15:43:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1by2C9-0003JL-3L for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2016 15:43:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1by2C6-0002BC-0o for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2016 15:43:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59448) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1by2C5-0002B7-TP for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2016 15:43:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1by2C5-0006XM-NT for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2016 15:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Oct 2016 19:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24633 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24633-submit@debbugs.gnu.org id=B24633.147716532325059 (code B ref 24633); Sat, 22 Oct 2016 19:43:01 +0000 Original-Received: (at 24633) by debbugs.gnu.org; 22 Oct 2016 19:42:03 +0000 Original-Received: from localhost ([127.0.0.1]:46614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1by2B9-0006W7-3c for submit@debbugs.gnu.org; Sat, 22 Oct 2016 15:42:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35227) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1by2B7-0006VW-FX for 24633@debbugs.gnu.org; Sat, 22 Oct 2016 15:42:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1by2Az-0001jG-9o for 24633@debbugs.gnu.org; Sat, 22 Oct 2016 15:41:56 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53099) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1by2Az-0001jB-6l; Sat, 22 Oct 2016 15:41:53 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2091 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1by2Ax-0001FE-5A; Sat, 22 Oct 2016 15:41:52 -0400 In-reply-to: <87y41grxox.fsf@users.sourceforge.net> (npostavs@users.sourceforge.net) 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:124853 Archived-At: > From: npostavs@users.sourceforge.net > Cc: 24633@debbugs.gnu.org > Date: Sat, 22 Oct 2016 15:27:42 -0400 > > I tried adding a counter in redisplay_internal, it prevents having a > tight loop in C. Actually, the behaviour becomes like the split window > case: there is additional hscrolling each time the cursor blinks, but it > can be interrupted with C-g. That seems adequate behaviour to me, what > do you think? Did you see what happens when blink-cursor-mode is turned off? (If that's what you meant by "each time the cursor blinks; if not, what caused it to blink?) The patch looks OK to me, so if it gives better results than locking up Emacs with the current code, let's push it to master. > > Do you really think that a formal grammar, whether accurate/complete > > or not, is a good way of describing a feature? > > The formal grammar plus the informal description of what the parts mean > seems a perfectly fine description for _this_ feature. Not to me, not anywhere close to being fine. For starters, Emacs Lisp programmers don't have to be proficient in reading formal grammars. But that's me. Thanks.