Skip to content

Commit 51c73f0

Browse files
committed
Append php-completion-table assuming both obarray and list
`etags-tags-completion-table` no longer seems to return obarray.
1 parent 2ea75ea commit 51c73f0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

php-mode.el

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,8 +1377,10 @@ current `tags-file-name'."
13771377
"`php-completion-file' or `php-manual-path' set")))
13781378
(when tags-table
13791379
;; Combine the tables.
1380-
(mapatoms (lambda (sym) (intern (symbol-name sym) php-table))
1381-
tags-table))
1380+
(if (obarrayp tags-table)
1381+
(mapatoms (lambda (sym) (intern (symbol-name sym) php-table))
1382+
tags-table)
1383+
(setq php-table (append tags-table php-table))))
13821384
(setq php-completion-table php-table))))
13831385

13841386
(defun php-build-table-from-file (filename)

0 commit comments

Comments
 (0)