FreeBSD Bugzilla – Attachment 208280 Details for
Bug 241189
lang/php-mode.el: Add upstream patch to fix error with recent snapshot of Emacs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Updated patch file
lang_php-mode.el.patch (text/plain), 3.52 KB, created by
Yasuhiro Kimura
on 2019-10-13 15:35:43 UTC
(
hide
)
Description:
Updated patch file
Filename:
MIME Type:
Creator:
Yasuhiro Kimura
Created:
2019-10-13 15:35:43 UTC
Size:
3.52 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 514405) >+++ Makefile (working copy) >@@ -4,6 +4,7 @@ > PORTNAME= php-mode.el > PORTVERSION= 1.22.0 > DISTVERSIONPREFIX= v >+PORTREVISION= 1 > CATEGORIES= lang elisp > PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX} > >@@ -12,10 +13,6 @@ > > LICENSE= GPLv3 > >-.if ${FLAVOR:U} == devel_full || ${FLAVOR:U} == devel_nox >-BROKEN= php.el:232:10:Error: Symbol's function definition is void: rx-form >-.endif >- > USES= emacs gmake > USE_GITHUB= yes > GH_ACCOUNT= emacs-php >Index: files/patch-75d3ee1ead7557175e6aeb2ad8efdd73ee3c9332 >=================================================================== >--- files/patch-75d3ee1ead7557175e6aeb2ad8efdd73ee3c9332 (nonexistent) >+++ files/patch-75d3ee1ead7557175e6aeb2ad8efdd73ee3c9332 (working copy) >@@ -0,0 +1,61 @@ >+From 75d3ee1ead7557175e6aeb2ad8efdd73ee3c9332 Mon Sep 17 00:00:00 2001 >+From: Charlie McMackin <charliemac@gmail.com> >+Date: Sun, 29 Sep 2019 11:52:54 -0500 >+Subject: [PATCH] Replace rx-form with rx-to-string >+ >+`rx-form` is being removed in an upcoming version of Emacs and its rewrite of >+`rx`. Replacing it with `rx-to-string` is backwards and future compatible. >+--- >+ php.el | 36 ++++++++++++++++++------------------ >+ 1 file changed, 18 insertions(+), 18 deletions(-) >+ >+diff --git php.el php.el >+index 64286da..ea36fc3 100644 >+--- php.el >++++ php.el >+@@ -177,24 +177,24 @@ keywords that can appear in method signatures, e.g. 'final' and >+ which will be the name of the method." >+ (when (stringp visibility) >+ (setq visibility (list visibility))) >+- (rx-form `(: line-start >+- (* (syntax whitespace)) >+- ,@(if visibility >+- `((* (or "abstract" "final" "static") >+- (+ (syntax whitespace))) >+- (or ,@visibility) >+- (+ (syntax whitespace)) >+- (* (or "abstract" "final" "static") >+- (+ (syntax whitespace)))) >+- '((* (* (or "abstract" "final" "static" >+- "private" "protected" "public") >+- (+ (syntax whitespace)))))) >+- "function" >+- (+ (syntax whitespace)) >+- (? "&" (* (syntax whitespace))) >+- (group (+ (or (syntax word) (syntax symbol)))) >+- (* (syntax whitespace)) >+- "("))) >++ (rx-to-string `(: line-start >++ (* (syntax whitespace)) >++ ,@(if visibility >++ `((* (or "abstract" "final" "static") >++ (+ (syntax whitespace))) >++ (or ,@visibility) >++ (+ (syntax whitespace)) >++ (* (or "abstract" "final" "static") >++ (+ (syntax whitespace)))) >++ '((* (* (or "abstract" "final" "static" >++ "private" "protected" "public") >++ (+ (syntax whitespace)))))) >++ "function" >++ (+ (syntax whitespace)) >++ (? "&" (* (syntax whitespace))) >++ (group (+ (or (syntax word) (syntax symbol)))) >++ (* (syntax whitespace)) >++ "("))) >+ >+ (defun php-create-regexp-for-classlike (type) >+ "Accepts a `TYPE' of a 'classlike' object as a string, such as >+-- >+2.23.0 >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
yasu
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 241189
:
208236
| 208280