From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Sam Halliday Newsgroups: gmane.emacs.bugs Subject: bug#35119: 26.1; narrow-to-region loses word-start/symbol-start information at end Date: Wed, 03 Apr 2019 12:19:08 +0100 Message-ID: <87y34r1glv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="30165"; mail-complaints-to="usenet@blaine.gmane.org" To: 35119@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 03 13:20:18 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hBdwI-0007iR-54 for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Apr 2019 13:20:18 +0200 Original-Received: from localhost ([127.0.0.1]:41883 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBdwH-0007IO-2u for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Apr 2019 07:20:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51069) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBdw4-0007FP-GU for bug-gnu-emacs@gnu.org; Wed, 03 Apr 2019 07:20:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hBdw2-0006ND-N9 for bug-gnu-emacs@gnu.org; Wed, 03 Apr 2019 07:20:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56811) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hBdw2-0006N1-BV for bug-gnu-emacs@gnu.org; Wed, 03 Apr 2019 07:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hBdw2-00019Q-08 for bug-gnu-emacs@gnu.org; Wed, 03 Apr 2019 07:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sam Halliday Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Apr 2019 11:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35119 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15542903644372 (code B ref -1); Wed, 03 Apr 2019 11:20:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Apr 2019 11:19:24 +0000 Original-Received: from localhost ([127.0.0.1]:42122 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hBdvQ-00018R-8P for submit@debbugs.gnu.org; Wed, 03 Apr 2019 07:19:24 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36545) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hBdvN-00018D-PN for submit@debbugs.gnu.org; Wed, 03 Apr 2019 07:19:22 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:46789) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hBdvI-0005D6-LI for submit@debbugs.gnu.org; Wed, 03 Apr 2019 07:19:16 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBdvG-00079m-Mc for bug-gnu-emacs@gnu.org; Wed, 03 Apr 2019 07:19:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hBdvE-00056l-Ts for bug-gnu-emacs@gnu.org; Wed, 03 Apr 2019 07:19:14 -0400 Original-Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:35372) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hBdvE-00055K-IJ for bug-gnu-emacs@gnu.org; Wed, 03 Apr 2019 07:19:12 -0400 Original-Received: by mail-wr1-x429.google.com with SMTP id w1so20828820wrp.2 for ; Wed, 03 Apr 2019 04:19:12 -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=fR0oZjb5zdqtdckyxsIyeRhQT0y8vqgK7Q3sOZKvdas=; b=tbEpgKqY4Zk+2ikkXrL8eHsGkCpfVI7a8HiVT715IK3OT4msemzvG27iVWqu9crBYB DGSz70nFLU6XMq97wt4+fRh6UnSfi/mTEvjbyKzX0UQiqk9g4V9i+Fxaap5FcNj7zPB9 0R5xtj4eEdV9/q4yVdF7PXhHoA+T6xw10uMc4kud7EvcF+WXnppwEuGGF5BNOYu1hJdc hnNgJYHNTm1WFG9Adj7noI9lGHaqDbt8aGRBhvVNtyvX8GVu67MJ0YndJMj0HbuVHKpO VxgjsDdb8xLpBM6l6bvqehtT+/LcgERA5m8syAETUEb0c1pdcAXGi0A5VVMD8hHRSWBJ zOsQ== 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=fR0oZjb5zdqtdckyxsIyeRhQT0y8vqgK7Q3sOZKvdas=; b=pc8Tdb4Nd8fNb/kURwXARUFsOpOXbUDD9H9PT1GoqBOdNbl3jE8Mdp9w4IBB7/GPyF DNJg+voECpYPxeoyirgS+QHr09pFkRuunFBOcUKbLLhFPU8U8SD/MieAT/omRM7M2T7s ngqTlqNLoIL8OwwX2mTgi/T9cc2owjyf0ooq+u/VsOxH9QpINiM5wJhB6HTQHQAwLS9Z MuvZha/ld3frMfhfARv35jkSojPXF9CGd7X9yidhCuf9yRsqZDuLplabKHz5O7CHLKPL 76LwJT3DNs9Y9jv+49PMSuG+rfIaaETc1TRaruV2mh6xd1h7q9uHD+zcWvPFbgiLDf0a o4eA== X-Gm-Message-State: APjAAAVhQnEHG7Lqs0x7YxjGxnIB/VR9GWFqm1jk/RNUkUfc+dMgWKty QjjjuHgj7k3woVjQxskQSrHNclb6 X-Google-Smtp-Source: APXvYqy8vZJ0VDpCBUhsCNPh+daY4+pTPj2F856lESyLaos64ISEo0EWkbuy2hLsIAaFx76//olMDQ== X-Received: by 2002:adf:afd7:: with SMTP id y23mr47604700wrd.254.1554290351005; Wed, 03 Apr 2019 04:19:11 -0700 (PDT) Original-Received: from Samurai ([2a00:23c6:c305:7500:1e1b:dff:fe06:d7ff]) by smtp.gmail.com with ESMTPSA id q19sm12024144wmq.23.2019.04.03.04.19.09 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 Apr 2019 04:19:09 -0700 (PDT) X-Google-Original-From: Sam Halliday 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: 209.51.188.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:157117 Archived-At: If the function `narrow-to-region' (as it is in `looking-back') is used to restrict the region prior to an invocation of re-search-forward or looking-at, then zero length regexp patterns are lost at the boundaries. It is unclear if this is a bug or an undocumented feature, but it has consequences for lexers that must operate backwards (such as those used by SMIE). In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.7) of 2019-03-17 built on juergen Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 System Description: Arch Linux Recent messages: Mark set You did not specify a variable Type "q" to restore previous buffer. [2 times] C-x is undefined funcall-interactively: Beginning of buffer [2 times] Quit Mark set Quit Configured using: 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-modules 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES THREADS LIBSYSTEMD LCMS2 Important settings: value of $LANG: en_GB.utf8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: auto-insert-mode: t global-magit-file-mode: t diff-auto-refine-mode: t magit-auto-revert-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t whitespace-mode: t rainbow-delimiters-mode: t smartparens-strict-mode: t smartparens-mode: t company-mode: t yas-minor-mode: t rainbow-mode: t show-paren-mode: t flycheck-mode: t global-hl-todo-mode: t hl-todo-mode: t shell-dirtrack-mode: t projectile-mode: t flx-ido-mode: t ido-everywhere: t persistent-scratch-autosave-mode: t global-subword-mode: t subword-mode: t save-place-mode: t global-auto-revert-mode: t override-global-mode: t eldoc-mode: t mouse-wheel-mode: t prettify-symbols-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-compression-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: /home/fommil/.emacs.d/elpa/hydra-0.14.0/lv hides /home/fommil/.emacs.d/elpa/lv-0.14.0/lv /home/fommil/.emacs.d/elpa/notmuch-0.28.3/notmuch hides /usr/share/emacs/site-lisp/notmuch /home/fommil/.emacs.d/elpa/notmuch-0.28.3/notmuch-wash hides /usr/share/emacs/site-lisp/notmuch-wash /home/fommil/.emacs.d/elpa/notmuch-0.28.3/notmuch-tree hides /usr/share/emacs/site-lisp/notmuch-tree /home/fommil/.emacs.d/elpa/notmuch-0.28.3/notmuch-tag hides /usr/share/emacs/site-lisp/notmuch-tag /home/fommil/.emacs.d/elpa/notmuch-0.28.3/notmuch-show hides /usr/share/emacs/site-lisp/notmuch-show /home/fommil/.emacs.d/elpa/notmuch-0.28.3/notmuch-query hides /usr/share/emacs/site-lisp/notmuch-query /home/fommil/.emacs.d/elpa/notmuch-0.28.3/notmuch-print hides /usr/share/emacs/site-lisp/notmuch-print /home/fommil/.emacs.d/elpa/notmuch-0.28.3/notmuch-parser hides /usr/share/emacs/site-lisp/notmuch-parser /home/fommil/.emacs.d/elpa/notmuch-0.28.3/notmuch-mua hides /usr/share/emacs/site-lisp/notmuch-mua /home/fommil/.emacs.d/elpa/notmuch-0.28.3/notmuch-message hides /usr/share/emacs/site-lisp/notmuch-message /home/fommil/.emacs.d/elpa/notmuch-0.28.3/notmuch-maildir-fcc hides /usr/share/emacs/site-lisp/notmuch-maildir-fcc /home/fommil/.emacs.d/elpa/notmuch-0.28.3/notmuch-lib hides /usr/share/emacs/site-lisp/notmuch-lib /home/fommil/.emacs.d/elpa/notmuch-0.28.3/notmuch-jump hides /usr/share/emacs/site-lisp/notmuch-jump /home/fommil/.emacs.d/elpa/notmuch-0.28.3/notmuch-hello hides /usr/share/emacs/site-lisp/notmuch-hello /home/fommil/.emacs.d/elpa/notmuch-0.28.3/notmuch-draft hides /usr/share/emacs/site-lisp/notmuch-draft /home/fommil/.emacs.d/elpa/notmuch-0.28.3/notmuch-crypto hides /usr/share/emacs/site-lisp/notmuch-crypto /home/fommil/.emacs.d/elpa/notmuch-0.28.3/notmuch-compat hides /usr/share/emacs/site-lisp/notmuch-compat /home/fommil/.emacs.d/elpa/notmuch-0.28.3/notmuch-company hides /usr/share/emacs/site-lisp/notmuch-company /home/fommil/.emacs.d/elpa/notmuch-0.28.3/notmuch-address hides /usr/share/emacs/site-lisp/notmuch-address /home/fommil/.emacs.d/elpa/notmuch-0.28.3/coolj hides /usr/share/emacs/site-lisp/coolj Features: (shadow sort mail-extr emacsbug sendmail completion cl-print debug hippie-exp tabify help-at-pt finder lisp-mnt jka-compr eieio-opt speedbar sb-image ezimage dframe help-fns radix-tree pulse git-gutter haskell-doc inf-haskell haskell-decl-scan haskell haskell-completions haskell-load haskell-commands highlight-uses-mode haskell-modules haskell-sandbox haskell-navigate-imports haskell-repl haskell-svg haskell-collapse hideshow haskell-debug haskell-interactive-mode haskell-presentation-mode haskell-hoogle haskell-process haskell-session sql view ag vc-svn find-dired vc-git smartparens-javascript js smartparens-html sgml-mode dom goto-chg misearch multi-isearch network-stream starttls url-cache github-review s bug-reference highlight-symbol magit-extras yatemplate autoinsert magit-submodule magit-obsolete magit-blame magit-stash magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-collab ghub-graphql treepy graphql ghub url-http tls gnutls url-gw nsm url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap let-alist magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff-mode magit-core magit-autorevert magit-process magit-margin magit-mode git-commit magit-git magit-section magit-utils magit-popup crm log-edit message rmc puny rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log with-editor async-bytecomp async server whitespace rainbow-delimiters smartparens-config smartparens-text smartparens-haskell smartparens company-oddmuse company-keywords company-etags company-gtags company-dabbrev-code company-dabbrev company-files company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-template company-bbdb company yasnippet rainbow-mode paren elec-pair intellij-theme darcula-theme ox-gfm ox-md ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar ox-html table ox-ascii ox-publish ox org-element avl-tree generator org org-macro org-footnote org-pcomplete org-list org-faces org-entities org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-comint org-loaddefs cal-menu calendar cal-loaddefs ob-exp ob-core org-compat ob-eval org-macs graphviz-dot-mode package-utils pcase fommil-manuscripts fommil-scala cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs fommil-haskell hlint-refactor haskell-compile haskell-mode haskell-cabal haskell-utils haskell-font-lock haskell-indentation haskell-string haskell-sort-imports haskell-lexeme haskell-align-imports haskell-compat haskell-complete-module haskell-ghc-support noutline outline flymake-proc flymake warnings etags dabbrev haskell-customize fommil-email erc-hl-nicks color erc-button erc-fill erc-stamp wid-edit erc-goodies erc erc-backend erc-compat pp re-builder flycheck-cask flycheck json map find-func rx subr-x dash cl hydra lv hl-todo tramp-cache tramp-sh tramp tramp-compat tramp-loaddefs trampver ucs-normalize shell pcomplete parse-time format-spec projectile grep compile comint ansi-color ibuf-ext ibuffer ibuffer-loaddefs thingatpt flx-ido advice flx ido persistent-scratch midnight xref project ring dired dired-loaddefs diminish cap-words superword subword edmacro kmacro cl-extra help-mode saveplace autorevert filenotify use-package use-package-ensure use-package-delight use-package-diminish use-package-bind-key bind-key easy-mmode use-package-core finder-inf ess-generics info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 739335 331995) (symbols 48 55040 2) (miscs 40 697 5902) (strings 32 200805 34113) (string-bytes 1 5847037) (vectors 16 94852) (vector-slots 8 2205971 335526) (floats 8 388 2086) (intervals 56 9116 3117) (buffers 992 39)) -- Best regards, Sam