From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: jan via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#41006: 26.3; regular expressions documentation Date: Fri, 1 May 2020 20:06:06 +0100 Message-ID: Reply-To: jan Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="121792"; mail-complaints-to="usenet@ciao.gmane.io" To: 41006@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 01 21:07:13 2020 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 1jUb0D-000VcP-Dl for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 May 2020 21:07:13 +0200 Original-Received: from localhost ([::1]:46966 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUb0C-0005pv-FH for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 May 2020 15:07:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59236) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUb03-0005ny-3e for bug-gnu-emacs@gnu.org; Fri, 01 May 2020 15:07:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jUb02-0004en-Io for bug-gnu-emacs@gnu.org; Fri, 01 May 2020 15:07:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39115) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jUb02-0004ef-4a for bug-gnu-emacs@gnu.org; Fri, 01 May 2020 15:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jUb01-0001sm-UZ for bug-gnu-emacs@gnu.org; Fri, 01 May 2020 15:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: jan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 May 2020 19:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41006 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.15883599857183 (code B ref -1); Fri, 01 May 2020 19:07:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 May 2020 19:06:25 +0000 Original-Received: from localhost ([127.0.0.1]:50661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jUazQ-0001rn-Sr for submit@debbugs.gnu.org; Fri, 01 May 2020 15:06:25 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:50560) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jUazP-0001rf-OW for submit@debbugs.gnu.org; Fri, 01 May 2020 15:06:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59100) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUazO-00056Q-KL for bug-gnu-emacs@gnu.org; Fri, 01 May 2020 15:06:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jUazB-0003z7-Hf for bug-gnu-emacs@gnu.org; Fri, 01 May 2020 15:06:22 -0400 Original-Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]:45495) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jUazB-0003yu-55 for bug-gnu-emacs@gnu.org; Fri, 01 May 2020 15:06:09 -0400 Original-Received: by mail-pf1-x42b.google.com with SMTP id w65so1941377pfc.12 for ; Fri, 01 May 2020 12:06:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=pM7YF5kpa+pn9DX2PqT/asd9yGGJYpa3YTxkLacQVUQ=; b=vEAKx/SuLCkf60StM7UXjdlXeq4y09h4ka4N4Ecyn6B7NXvwjf1Zs/3gz/xc5G5+ab I9YFCHwKNH3gul+gCb8LoJcp4Fwd/wxdZJ+U9QrQTDwH4XCoEGVuWPlBuw7SfZyzphdo QwN+5/dW5MS1VnuWfpWWPC6a5r5puUAO5c87mNKl5wNOQwbatyKvd41dP3ZNqKpvMMco R12e+HcWZYQ+qpLbRUMrtG0KfsA0DtVyIFxYTSwtXZLztvwEicFTF+jXgLbuVCnAyvQy +wylF2uWqYcaN1VdFwDAcTPuAXzTv9UdYlTo/VEFR3r3+XCW/383sJRZ4dBGGezH69Bz 3F+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=pM7YF5kpa+pn9DX2PqT/asd9yGGJYpa3YTxkLacQVUQ=; b=rcSPpVZtapiNmw7dtNw28jj3gXdxXDfp0wawbc32A++pqkanFjboM3BI7ysb+vKp7x tGLQUjJvL3AjPONbahi9TkdY9FWHx+35jeo2RX2ICO/ztjfi7e9tZvqxSyODs5/JJFAS O0hb32rqrowi/dm/U75qkPsHPRxRCf+d1jmgk4dU2rn6jf6XqmiKGGtZOM7D0umofyAV DnZgfpzpmDs1Ww+7emskXPCAIZcLZvuAYWAjmy7xERyhEaUEzIDv+Hl6pPQsCRMeqlN0 YHUolTMLKQURMl1zkBlkbaVzDVbiwfAs9CLagYslTbSJJdgStfi3E7+MG46xseDTRKPZ 5ZZw== X-Gm-Message-State: AGi0PuYuzKgO/0sIDasVfKckFL7aS/vEWsiU2AZSglzayLEkZLNIUooS t/4wkPUGbp5AiYJAyn5L6ndy7BvDIdM5T+yzj+h/Cw== X-Google-Smtp-Source: APiQypLEJrcm7k/1mdc6kkjjHgJrm8MVSToxDXH+xnpQOeNjaDRKGKWfJfU0fHkFI54Y1SsLp+igSO2U2e+IU/bPj/I= X-Received: by 2002:a63:cf0b:: with SMTP id j11mr5211196pgg.404.1588359967143; Fri, 01 May 2020 12:06:07 -0700 (PDT) Original-Received: by 2002:a17:90a:9a86:0:0:0:0 with HTTP; Fri, 1 May 2020 12:06:06 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::42b; envelope-from=rtm443x@googlemail.com; helo=mail-pf1-x42b.google.com X-detected-operating-system: by eggs.gnu.org: Error: [-] PROGRAM ABORT : Malformed IPv6 address (bad octet value). Location : parse_addr6(), p0f-client.c:67 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:179456 Archived-At: Hi, 3 issues (nothing major). 1. Suggest emacs' excellent documentation should not distinguish between Regexps and Regexp Backslash in the manual. That is, these 2 should be combined: * Regexps:: Syntax of regular expressions. * Regexp Backslash:: Regular expression constructs starting with= =E2=80=98\=E2=80=99. AFAICS the difference is purely arbitrary. There have been times I've looked for the syntax for such syntax and found it only because I knew it was there, but not in the same section. A beginner might conclude emacs doesn't support them. 2. The documentation for {N, M} repetitions matching is incomplete (has been a long time). Docs say M may be omitted but from testing I find N may be omitted also ie \{,M\} is valid, and useful. eg. ba\{,2\}d correctly matches only the top 2 of bad baad baaad baaaad 3. This from the docs =E2=80=98\=3D=E2=80=99 matches the empty string, but only at point. baffles me. I've had a hard look for any examples of how it may be used and found nothing. I feel I may be missing something extremely useful, I just don't know what! thanks jan In GNU Emacs 26.3 (build 1, x86_64-w64-mingw32) of 2019-08-29 built on CIRROCUMULUS Repository revision: 96dd0196c28bc36779584e47fffcca433c9309cd Windowing system distributor 'Microsoft Corp.', version 6.1.7601 Recent messages: Loading desktop...done Warning: desktop file appears to be in use by PID 4740. Using it may cause conflicts. Use it anyway? (y or n) n Desktop file in use; not loaded. For information about GNU Emacs and the GNU system, type C-h C-a. Mark saved where search started Mark set Quit Mark saved where search started Configured using: 'configure --without-dbus --host=3Dx86_64-w64-mingw32 --without-compress-install 'CFLAGS=3D-O2 -static -g3'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS THREADS LCMS2 Important settings: value of $LANG: ENG locale-coding-system: cp1252 Major mode: Text Minor modes in effect: desktop-save-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: (only . t) Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils browse-url url-util thingatpt misearch multi-isearch elec-pair edmacro kmacro desktop frameset cus-start cus-load finder-inf 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 dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win 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 threads w32notify w32 lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 132611 9138) (symbols 48 23577 1) (miscs 40 56 151) (strings 32 41277 1782) (string-bytes 1 1117275) (vectors 16 18093) (vector-slots 8 539691 7632) (floats 8 60 91) (intervals 56 259 5) (buffers 992 12))