From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#18667: 24.3.94; Error "Point 5215 after end of properties" inside re-search-forward Date: Thu, 09 Oct 2014 04:51:14 +0400 Message-ID: <86zjd6rrp9.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1412815944 10012 80.91.229.3 (9 Oct 2014 00:52:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Oct 2014 00:52:24 +0000 (UTC) To: 18667@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 09 02:52:19 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xc1xo-0004mG-8q for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Oct 2014 02:52:16 +0200 Original-Received: from localhost ([::1]:38985 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xc1xn-0007to-WD for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Oct 2014 20:52:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47961) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xc1xg-0007tg-5C for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2014 20:52:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xc1xb-0005BQ-C9 for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2014 20:52:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46767) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xc1xb-0005BJ-90 for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2014 20:52:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xc1xa-0000pD-Rk for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2014 20:52:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Oct 2014 00:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18667 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.14128158983119 (code B ref -1); Thu, 09 Oct 2014 00:52:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Oct 2014 00:51:38 +0000 Original-Received: from localhost ([127.0.0.1]:38331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xc1xA-0000oE-VW for submit@debbugs.gnu.org; Wed, 08 Oct 2014 20:51:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46141) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xc1x7-0000o4-Cp for submit@debbugs.gnu.org; Wed, 08 Oct 2014 20:51:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xc1x2-00054e-5X for submit@debbugs.gnu.org; Wed, 08 Oct 2014 20:51:32 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:51114) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xc1x2-00054a-2q for submit@debbugs.gnu.org; Wed, 08 Oct 2014 20:51:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47857) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xc1wx-0007rL-6T for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2014 20:51:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xc1ws-000537-Dk for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2014 20:51:23 -0400 Original-Received: from mail-lb0-x22b.google.com ([2a00:1450:4010:c04::22b]:50218) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xc1ws-000531-1U for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2014 20:51:18 -0400 Original-Received: by mail-lb0-f171.google.com with SMTP id z12so196041lbi.2 for ; Wed, 08 Oct 2014 17:51:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=HaGD1Mv8dStm/6xm3uizPui+JOhICmMIdBlfCzwaE1k=; b=HH7ZaplhzKu57HvoSngfhxgmgRE4PnQEo6QICe8Kr2Zt8O8oYHY2+FLWJ5USMKLb4P dGYTqjeCuI87jGlfkXvVJAGPDBwAFn2i+ATYwA1wMNKwDTYozO7zxqt2hfj2p3CaQCzM pxDXodS9LQC443ObXfXfsrxhNgO3ey01V6Uybi2o/6SqIZ85I99UB9tGZZYS3fP7j4jS QKg7TXZv8/Afn4Yj7gsA+4n+1Vbtd7fkYh9/YkT36STeQ9UsTxxeJW1MzKsgxfmjMh14 MVj9l1BaRDaZHyGhduxCr6lod6D6UNgOR6pGyVxzUlFoHzrPs/UCygwBKONbrRECJUcG +6Ow== X-Received: by 10.112.56.198 with SMTP id c6mr14409886lbq.43.1412815876121; Wed, 08 Oct 2014 17:51:16 -0700 (PDT) Original-Received: from axl ([178.252.98.87]) by mx.google.com with ESMTPSA id j6sm235117lbs.9.2014.10.08.17.51.15 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 08 Oct 2014 17:51:15 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:94315 (When using a company-mode backend, called `company-dabbrev'). I don't have a clear reproduction recipe, since the error comes and goes. I've seen a report about it before (https://github.com/company-mode/company-mode/issues/168), but only started noticing it today myself. This seems to be an Emacs bug. Is there a specific info I can produce to help troubleshooting? At the given time, we're in a ruby-mode buffer, point is 2201, point-max is 5222. 5215 is inside an "end" keyword, close to the end of the buffer. window-end was around 874. After retrying the operation that I was doing, the error disappeared. The backtrace looks like this: Debugger entered--Lisp error: (error "Point 5215 after end of properties") re-search-forward("\\" nil t) (while (re-search-forward regexp nil t) (setq match (match-string-no-prop= erties 0)) (if (and ignore-comments (company-in-string-or-comment)) (re-sea= rch-forward "\\s>\\|\\s!\\|\\s\"" nil t) (if (>=3D (length match) company-d= abbrev-minimum-length) (progn (setq symbols (cons match symbols))))) (and l= imit (eq (setq company-time-limit-while-counter (1+ company-time-limit-whil= e-counter)) 25) (setq company-time-limit-while-counter 0) (> (float-time (t= ime-since start)) limit) (throw (quote done) (quote company-time-out)))) (catch (quote done) (while (re-search-forward regexp nil t) (setq match (= match-string-no-properties 0)) (if (and ignore-comments (company-in-string-= or-comment)) (re-search-forward "\\s>\\|\\s!\\|\\s\"" nil t) (if (>=3D (len= gth match) company-dabbrev-minimum-length) (progn (setq symbols (cons match= symbols))))) (and limit (eq (setq company-time-limit-while-counter (1+ com= pany-time-limit-while-counter)) 25) (setq company-time-limit-while-counter = 0) (> (float-time (time-since start)) limit) (throw (quote done) (quote com= pany-time-out))))) (let ((company-time-limit-while-counter 0)) (catch (quote done) (while (r= e-search-forward regexp nil t) (setq match (match-string-no-properties 0)) = (if (and ignore-comments (company-in-string-or-comment)) (re-search-forward= "\\s>\\|\\s!\\|\\s\"" nil t) (if (>=3D (length match) company-dabbrev-mini= mum-length) (progn (setq symbols (cons match symbols))))) (and limit (eq (s= etq company-time-limit-while-counter (1+ company-time-limit-while-counter))= 25) (setq company-time-limit-while-counter 0) (> (float-time (time-since s= tart)) limit) (throw (quote done) (quote company-time-out)))))) (let (match) (goto-char (if pos (1- pos) (point-min))) (let ((company-tim= e-limit-while-counter 0)) (catch (quote done) (while (re-search-backward re= gexp nil t) (setq match (match-string-no-properties 0)) (if (and ignore-com= ments (company-in-string-or-comment)) (goto-char (nth 8 (syntax-ppss))) (if= (>=3D (length match) company-dabbrev-minimum-length) (progn (setq symbols = ...)))) (and limit (eq (setq company-time-limit-while-counter (1+ company-t= ime-limit-while-counter)) 25) (setq company-time-limit-while-counter 0) (> = (float-time (time-since start)) limit) (throw (quote done) (quote company-t= ime-out)))))) (goto-char (or pos (point-min))) (let ((company-time-limit-wh= ile-counter 0)) (catch (quote done) (while (re-search-forward regexp nil t)= (setq match (match-string-no-properties 0)) (if (and ignore-comments (comp= any-in-string-or-comment)) (re-search-forward "\\s>\\|\\s!\\|\\s\"" nil t) = (if (>=3D (length match) company-dabbrev-minimum-length) (progn (setq symbo= ls ...)))) (and limit (eq (setq company-time-limit-while-counter (1+ compan= y-time-limit-while-counter)) 25) (setq company-time-limit-while-counter 0) = (> (float-time (time-since start)) limit) (throw (quote done) (quote compan= y-time-out)))))) symbols) (save-excursion (let (match) (goto-char (if pos (1- pos) (point-min))) (l= et ((company-time-limit-while-counter 0)) (catch (quote done) (while (re-se= arch-backward regexp nil t) (setq match (match-string-no-properties 0)) (if= (and ignore-comments (company-in-string-or-comment)) (goto-char (nth 8 ...= )) (if (>=3D ... company-dabbrev-minimum-length) (progn ...))) (and limit (= eq (setq company-time-limit-while-counter ...) 25) (setq company-time-limit= -while-counter 0) (> (float-time ...) limit) (throw (quote done) (quote com= pany-time-out)))))) (goto-char (or pos (point-min))) (let ((company-time-li= mit-while-counter 0)) (catch (quote done) (while (re-search-forward regexp = nil t) (setq match (match-string-no-properties 0)) (if (and ignore-comments= (company-in-string-or-comment)) (re-search-forward "\\s>\\|\\s!\\|\\s\"" n= il t) (if (>=3D ... company-dabbrev-minimum-length) (progn ...))) (and limi= t (eq (setq company-time-limit-while-counter ...) 25) (setq company-time-li= mit-while-counter 0) (> (float-time ...) limit) (throw (quote done) (quote = company-time-out)))))) symbols)) company-dabbrev--search-buffer("\\" 255 nil (21557 5576= 2 933926 188000) 0.1 nil) (let* ((start (current-time)) (symbols (company-dabbrev--search-buffer re= gexp (point) nil start limit ignore-comments))) (if other-buffer-modes (pro= gn (catch (quote --cl-block-nil--) (let ((--dolist-tail-- (delq ... ...))) = (while --dolist-tail-- (let (...) (save-current-buffer ... ...) (and limit = ... ...) (setq --dolist-tail-- ...))))))) symbols) company-dabbrev--search("\\" 0.1 all) (let* ((case-fold-search company-dabbrev-ignore-case) (words (company-dab= brev--search (company-dabbrev--make-regexp arg) company-dabbrev-time-limit = (cond ((eq company-dabbrev-other-buffers (quote t)) (let nil (list major-mo= de))) ((eq company-dabbrev-other-buffers (quote all)) (let nil (quote all))= ) (t nil)))) (downcase-p (if (eq company-dabbrev-downcase (quote case-repla= ce)) case-replace company-dabbrev-downcase))) (if downcase-p (mapcar (quote= downcase) words) words)) (cond ((eql command (quote interactive)) (company-begin-backend (quote co= mpany-dabbrev))) ((eql command (quote prefix)) (company-grab-word)) ((eql c= ommand (quote candidates)) (let* ((case-fold-search company-dabbrev-ignore-= case) (words (company-dabbrev--search (company-dabbrev--make-regexp arg) co= mpany-dabbrev-time-limit (cond (... ...) (... ...) (t nil)))) (downcase-p (= if (eq company-dabbrev-downcase (quote case-replace)) case-replace company-= dabbrev-downcase))) (if downcase-p (mapcar (quote downcase) words) words)))= ((eql command (quote ignore-case)) company-dabbrev-ignore-case) ((eql comm= and (quote duplicates)) t)) company-dabbrev(candidates #("ns2" 0 3 (fontified t face font-lock-string= -face))) In GNU Emacs 24.3.94.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) of 2014-10-06 on axl Repository revision: 117555 sdl.web@gmail.com-20141005005838-oyl694hqhu2d36= 32 Windowing system distributor `The X.Org Foundation', version 11.0.11501000 System Description: Ubuntu 14.04.1 LTS