[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#24057: 25.1.50; ffap interprets comments beginning with "//" as file
From: |
Eli Zaretskii |
Subject: |
bug#24057: 25.1.50; ffap interprets comments beginning with "//" as file path |
Date: |
Tue, 26 Jul 2016 17:41:33 +0300 |
> From: Kaushal Modi <kaushal.modi@gmail.com>
> Date: Mon, 25 Jul 2016 20:18:27 +0000
> Cc: 24057@debbugs.gnu.org, npostavs@users.sourceforge.net
>
> Here a git formatted patch .. it's an optimized, generic version of the
> snippet in my previous email. It's now "/" agnostic.
Thanks. Most of the patch looks like whitespace changes?
> + (setq beg (catch 'break
> + (while (< beg-new end)
> + (goto-char beg-new)
> + (if (nth 4 (syntax-ppss)) ; in a comment
> + (throw 'break beg-new)
> + (setq beg-new (1+ beg-new))))
> + end)))) ; Set BEG to END if no throw happens
Is there any problem with a more conventional while loop that stops
when syntax-ppss has its 5th element non-nil? Why did you need to use
throw and catch here?
- bug#24057: 25.1.50; ffap interprets comments beginning with "//" as file path, (continued)
- bug#24057: 25.1.50; ffap interprets comments beginning with "//" as file path, Eli Zaretskii, 2016/07/23
- bug#24057: 25.1.50; ffap interprets comments beginning with "//" as file path, Eli Zaretskii, 2016/07/23
- bug#24057: 25.1.50; ffap interprets comments beginning with "//" as file path, Kaushal Modi, 2016/07/23
- bug#24057: 25.1.50; ffap interprets comments beginning with "//" as file path, Eli Zaretskii, 2016/07/24
- bug#24057: 25.1.50; ffap interprets comments beginning with "//" as file path, Kaushal Modi, 2016/07/24
- bug#24057: 25.1.50; ffap interprets comments beginning with "//" as file path, Eli Zaretskii, 2016/07/25
- bug#24057: 25.1.50; ffap interprets comments beginning with "//" as file path, Kaushal Modi, 2016/07/25
- bug#24057: 25.1.50; ffap interprets comments beginning with "//" as file path, Eli Zaretskii, 2016/07/25
- bug#24057: 25.1.50; ffap interprets comments beginning with "//" as file path, Kaushal Modi, 2016/07/25
- bug#24057: 25.1.50; ffap interprets comments beginning with "//" as file path, Kaushal Modi, 2016/07/25
- bug#24057: 25.1.50; ffap interprets comments beginning with "//" as file path,
Eli Zaretskii <=
- bug#24057: 25.1.50; ffap interprets comments beginning with "//" as file path, Kaushal Modi, 2016/07/26