unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* patch for bug#34068 on emacs-26 branch
@ 2019-01-14 22:10 Trevor Spiteri
  2019-01-14 22:17 ` Trevor Spiteri
  0 siblings, 1 reply; 2+ messages in thread
From: Trevor Spiteri @ 2019-01-14 22:10 UTC (permalink / raw)
  To: emacs-devel

This is a patch for bug#34068, which I think was introduced in commit
644cdd1aa0. The patch is against the emacs-26 branch.

Regards.

Trevor Spiteri

diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el
index df8cb3da7e..08a5db25ab 100644
--- a/lisp/progmodes/grep.el
+++ b/lisp/progmodes/grep.el
@@ -389,7 +389,7 @@ grep-regexp-alist
          (when grep-highlight-matches
            (let* ((beg (match-end 0))
                   (end (save-excursion (goto-char beg)
(line-end-position)))
-                  (mbeg (text-property-any beg end 'font-lock-face
'grep-match-face)))
+                  (mbeg (text-property-any beg end 'font-lock-face
grep-match-face)))
              (when mbeg
                (- mbeg beg)))))
       .
@@ -397,7 +397,7 @@ grep-regexp-alist
          (when grep-highlight-matches
            (let* ((beg (match-end 0))
                   (end (save-excursion (goto-char beg)
(line-end-position)))
-                  (mbeg (text-property-any beg end 'font-lock-face
'grep-match-face))
+                  (mbeg (text-property-any beg end 'font-lock-face
grep-match-face))
                   (mend (and mbeg (next-single-property-change mbeg
'font-lock-face nil end))))
              (when mend
                (- mend beg))))))




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: patch for bug#34068 on emacs-26 branch
  2019-01-14 22:10 patch for bug#34068 on emacs-26 branch Trevor Spiteri
@ 2019-01-14 22:17 ` Trevor Spiteri
  0 siblings, 0 replies; 2+ messages in thread
From: Trevor Spiteri @ 2019-01-14 22:17 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1328 bytes --]

> This is a patch for bug#34068, which I think was introduced in commit
> 644cdd1aa0. The patch is against the emacs-26 branch.
>
> Regards.
>
> Trevor Spiteri
Ugh, Thunderbird mangled my patch. Here I go again:

diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el
index df8cb3da7e..08a5db25ab 100644
--- a/lisp/progmodes/grep.el
+++ b/lisp/progmodes/grep.el
@@ -389,7 +389,7 @@ grep-regexp-alist
          (when grep-highlight-matches
            (let* ((beg (match-end 0))
                   (end (save-excursion (goto-char beg) (line-end-position)))
-                  (mbeg (text-property-any beg end 'font-lock-face 'grep-match-face)))
+                  (mbeg (text-property-any beg end 'font-lock-face grep-match-face)))
              (when mbeg
                (- mbeg beg)))))
       .
@@ -397,7 +397,7 @@ grep-regexp-alist
          (when grep-highlight-matches
            (let* ((beg (match-end 0))
                   (end (save-excursion (goto-char beg) (line-end-position)))
-                  (mbeg (text-property-any beg end 'font-lock-face 'grep-match-face))
+                  (mbeg (text-property-any beg end 'font-lock-face grep-match-face))
                   (mend (and mbeg (next-single-property-change mbeg 'font-lock-face nil end))))
              (when mend
                (- mend beg))))))


[-- Attachment #2: Type: text/html, Size: 1653 bytes --]

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-14 22:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-14 22:10 patch for bug#34068 on emacs-26 branch Trevor Spiteri
2019-01-14 22:17 ` Trevor Spiteri

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).