From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#21922: Fwd: Patch for fixing "straigh-quote" case Date: Tue, 22 Oct 2019 19:59:55 -0400 Message-ID: <871rv4e3gk.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="267899"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: 21922@debbugs.gnu.org To: Luis Henriquez-Perez Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 23 02:02:51 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.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iN471-0015sc-Cj for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Oct 2019 02:02:51 +0200 Original-Received: from localhost ([::1]:49292 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iN45R-00033W-KJ for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Oct 2019 20:01:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36308) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iN45L-00033I-7M for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2019 20:01:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iN45H-0006Uv-Rv for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2019 20:01:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51808) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iN45G-0006UY-IR for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2019 20:01:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iN45G-0003vF-FS for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2019 20:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Oct 2019 00:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21922 X-GNU-PR-Package: emacs Original-Received: via spool by 21922-submit@debbugs.gnu.org id=B21922.157178880514924 (code B ref 21922); Wed, 23 Oct 2019 00:01:02 +0000 Original-Received: (at 21922) by debbugs.gnu.org; 23 Oct 2019 00:00:05 +0000 Original-Received: from localhost ([127.0.0.1]:60625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iN44K-0003sd-Oe for submit@debbugs.gnu.org; Tue, 22 Oct 2019 20:00:05 -0400 Original-Received: from mail-qt1-f181.google.com ([209.85.160.181]:35152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iN44I-0003rd-At for 21922@debbugs.gnu.org; Tue, 22 Oct 2019 20:00:03 -0400 Original-Received: by mail-qt1-f181.google.com with SMTP id m15so29709389qtq.2 for <21922@debbugs.gnu.org>; Tue, 22 Oct 2019 17:00:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=0KH2681H9f2aihYuRBlguOSD3/RivVJ0wBaaqsdkvL0=; b=Zr+MfPlBfZ5NO1LpDDcxUukc59URaA6EuGrdCUukbznyldW15PO2h8x2mgAh94eYRN CxokLcEEpMoRZ9+0eXEetUGWQbX+szi18YhUIZXSw5+le+s5SUQ/wprsmDTuvMnEcUhl +urmCIvoCmtk7GVhHlBTY06B6s5cMo+YDacefu96kk0tjkpyTFCbJNZiPmaBK3TGOlqQ D/G4m43GvDiBUz/iaf4JUHixQAMly9Hi57khOTiy7Ukv4FHoXXHvc7AWxY1d9uKWeay/ ocERwFG10Lx7C0dmS5T9oUvXZHt5gyR3Ep0WLEr5fLhCbb2yJej3mtcp/+ayurHyj/Zn nE2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=0KH2681H9f2aihYuRBlguOSD3/RivVJ0wBaaqsdkvL0=; b=OgZUtc+/FGD9wH4xLohJ3rvgFS7c0bDaVr+bKlOE4Y0C7mFbTKdpjAZJPuBeLuAKKx G11rv+v6nDlwhRRWrX6LNS6hx/PzyUTeg1PftVmi4yUO3ZnUGAqQk65SWN+ujA8du+om Nk6Ecm2UB+UesehS32Rn09XbX+nbWdfz+J57MjjH789LFGGwvu9Z9jlZBSDtgeURGmMz nxzy1T31WkJ8N2ibuUYJus8AQbQelcyNBcI3023DufgjRBDJ9MMO9qKapZxHxvGUXR2k XQtiFP2DfvtvnGTQHSGHAbfO2xabOshjDrWMWNoGr71yTVo3h3rujC0tsn0mHsFTdp+w E/VQ== X-Gm-Message-State: APjAAAVWZg9xKo+whVp+AOXGaGCwR279Gv2xa1Ojzpcxjv7n9bUZtkje QtrqqyHpFt6LAWDX2vBsqn3vF036 X-Google-Smtp-Source: APXvYqxT9RMpHrcMM6eRl/8dKsEzhVmdzCxJ4nlPl+nvQXRT0za64rzGy7CCca0Mb1bjv2CM3s527w== X-Received: by 2002:ac8:75c2:: with SMTP id z2mr6177037qtq.216.1571788796568; Tue, 22 Oct 2019 16:59:56 -0700 (PDT) Original-Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.gmail.com with ESMTPSA id b16sm2635802qtp.50.2019.10.22.16.59.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 Oct 2019 16:59:55 -0700 (PDT) In-Reply-To: (Luis Henriquez-Perez's message of "Tue, 22 Oct 2019 19:40:38 -0400") 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:170017 Archived-At: Luis Henriquez-Perez writes: > I replied to your personal email instead of this thread. I thought maybe my > replies had not been seen (and also that this should be recorded in the > thread). So this is what I had said: I did you see your messages, just haven't had so much time for handling Emacs bugs recently. I was going to forward it to the list before replying, so thanks for doing that. > question 1: > I get an `unknown posix character class` error when I try (looking-at-p > "[[:whitespace:]\n]*quote\_>"). Did you mean to use [[:space:]] instead? > Did you mean: (looking-at-p "[[:space:]]*quote\\>")? I mixed things up a bit, I meant to say (looking-at-p "[[:space:]\n]*quote\\_>") The "\n" is needed because it typically has comment-ender syntax instead of space syntax. "\\>" matches end of word, "\\_>" is end of symbol. > question 2: > The reason I used explicit whitespace character is because matches for > character classes like [[:space:]] are dependent on the active syntax table > in the buffer (see this issue > ). > Not sure if this will be a problem though, what do you think? I think relying on the mode's syntax table makes sense, though it probably doesn't matter a whole lot either way.