[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#18165: [PATCH] Fix error when semanticdb-needs-refresh-p is called o
From: |
陳侃如 |
Subject: |
bug#18165: [PATCH] Fix error when semanticdb-needs-refresh-p is called on a non-existing file |
Date: |
Mon, 15 Sep 2014 12:00:34 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.93 (gnu/linux) |
Could someone help me install this patch to emacs-24 branch?
>From f284dcc3ed0345769ed8863df36800f98af574b7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kan-Ru=20Chen=20=28=E9=99=B3=E4=BE=83=E5=A6=82=29?=
<kanru@kanru.info>
Date: Mon, 15 Sep 2014 11:47:47 +0800
Subject: Fix error when semanticdb-needs-refresh-p is called on a non-existing
file. (Bug#18165)
* semantic/db.el (semanticdb-needs-refresh-p): Ignore nil file
stats. (Bug#18165)
diff --git a/lisp/cedet/ChangeLog b/lisp/cedet/ChangeLog
index f9f0cf8..626f449 100644
--- a/lisp/cedet/ChangeLog
+++ b/lisp/cedet/ChangeLog
@@ -1,8 +1,13 @@
+2014-09-15 Kan-Ru Chen (陳侃如) <kanru@kanru.info>
+
+ * semantic/db.el (semanticdb-needs-refresh-p): Ignore nil file
+ stats. (Bug#18165)
+
2014-05-01 Glenn Morris <rgm@gnu.org>
* ede.el (ede-project-directories, ede-check-project-directory):
* semantic/ia-sb.el (semantic-ia-sb-show-doc):
* semantic/tag.el (semantic-tag-in-buffer-p):
* semantic/bovine/c.el (semantic-tag-abstract-p):
Doc fixes (replace `iff').
diff --git a/lisp/cedet/semantic/db.el b/lisp/cedet/semantic/db.el
index 76a49dd..0e68cb5 100644
--- a/lisp/cedet/semantic/db.el
+++ b/lisp/cedet/semantic/db.el
@@ -593,17 +593,18 @@ The file associated with OBJ does not need to be in a
buffer."
)
;; Buffer isn't loaded. The only clue we have is if the file
;; is somehow different from our mark in the semanticdb table.
(let* ((stats (file-attributes ff))
(actualsize (nth 7 stats))
(actualmod (nth 5 stats))
)
- (or (not (slot-boundp obj 'tags))
+ (or (not stats)
+ (not (slot-boundp obj 'tags))
;; (not (oref obj tags)) --> not needed anymore?
(/= (or (oref obj fsize) 0) actualsize)
(not (equal (oref obj lastmodtime) actualmod))
)
))))
;;; Synchronization
--
1.9.1
- bug#18165: [PATCH] Fix error when semanticdb-needs-refresh-p is called on a non-existing file,
陳侃如 <=