[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/drupal-mode 47fda0a38a 287/308: Ignore errors in `drupal/g
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/drupal-mode 47fda0a38a 287/308: Ignore errors in `drupal/gxref-get-function-args` |
Date: |
Tue, 25 Jan 2022 10:59:58 -0500 (EST) |
branch: elpa/drupal-mode
commit 47fda0a38a5b197f4606137d9c3b7d44aaeaa886
Author: Arne Jørgensen <arne@arnested.dk>
Commit: Arne Jørgensen <arne@arnested.dk>
Ignore errors in `drupal/gxref-get-function-args`
`drupal/gxref-get-function-args` would throw an error if the symbol was
not in the GTAGS file (because we assumed `xref-item-summary` would
operate on an eieio object).
Instead cluttering the code with even more checks we just ignore errors.
---
drupal/gxref.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/drupal/gxref.el b/drupal/gxref.el
index 61afe24398..5e0e42ada3 100644
--- a/drupal/gxref.el
+++ b/drupal/gxref.el
@@ -55,10 +55,11 @@ Include path to the executable if it is not in your $PATH.")
(defun drupal/gxref-get-function-args (symbol &optional version)
"Get function arguments for SYMBOL from GNU GLOBAL.
Optional argument VERSION is ignored."
- (let* ((line (car (gxref--find-symbol symbol)))
- (string (xref-item-summary line)))
- (string-match "(\\(.*\\))" string)
- (match-string-no-properties 1 string)))
+ (ignore-errors
+ (let* ((line (car (gxref--find-symbol symbol)))
+ (string (xref-item-summary line)))
+ (string-match "(\\(.*\\))" string)
+ (match-string-no-properties 1 string))))
(add-hook 'drupal-mode-hook #'drupal/gxref-enable)
- [nongnu] elpa/drupal-mode 59bbaaf4f1 249/308: Merge branch 'release/0.6.1' into develop, (continued)
- [nongnu] elpa/drupal-mode 59bbaaf4f1 249/308: Merge branch 'release/0.6.1' into develop, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 0cd2412756 257/308: Avoid "no tags containing" error in hook skeleton, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 36ea4003da 259/308: Merge pull request #65 from joddie/feature/sql-cli, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 2cca689e26 268/308: Better gtags-helm support., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode a02e1dde00 271/308: Merge pull request #72 from arnested/fix-phpcs-output-parsing, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode f425ba445a 276/308: Merge branch 'release/0.7.1' into develop, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode eec2e557d7 277/308: Updated to the latest flycheck., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 643c7538b0 279/308: Merge pull request #78 from arnested/continuation-style, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode dea5a8da78 280/308: Fix thinko, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode ca569eaa62 281/308: Update obsoleted comment, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 47fda0a38a 287/308: Ignore errors in `drupal/gxref-get-function-args`,
ELPA Syncer <=
- [nongnu] elpa/drupal-mode 95bf73b4b6 288/308: Create SECURITY.md, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode ee53f9e12b 289/308: Create CODE_OF_CONDUCT.md, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode ba80d4d5c8 290/308: Remove drupalcontrib.com as search URL option, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 3ce73dd221 292/308: Fix array member indentation in function calls, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode cca428d723 296/308: Run tests on Emacs 25.3, 26.3, and snapshot, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 3e0ed63e4b 298/308: Fix array member indentation in function calls - take 2, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode ed90b0c4d8 303/308: Bump version to 0.7.4, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 53d6809d84 304/308: Fix #84: Use cl-lib instead of deprecated cl, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 5b90a053f7 307/308: Merge pull request #86 from skangas/cl-lib, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 17927723ad 308/308: Merge pull request #85 from skangas/bump-version, ELPA Syncer, 2022/01/25