[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 19/38: Use read-only-mode in ggtags-toggle-project-read-only
From: |
Leo Liu |
Subject: |
[elpa] 19/38: Use read-only-mode in ggtags-toggle-project-read-only |
Date: |
Mon, 24 Mar 2014 09:31:35 +0000 |
leoliu pushed a commit to branch master
in repository elpa.
commit 570c2ef78cca98fb9134765f1edd459fdeaf9d60
Author: Leo Liu <address@hidden>
Date: Mon Mar 17 10:36:23 2014 +0800
Use read-only-mode in ggtags-toggle-project-read-only
---
ggtags.el | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/ggtags.el b/ggtags.el
index d7fff8f..b5118ad 100644
--- a/ggtags.el
+++ b/ggtags.el
@@ -75,7 +75,9 @@
(eval-and-compile
(or (fboundp 'user-error)
- (defalias 'user-error 'error)))
+ (defalias 'user-error 'error))
+ (or (fboundp 'read-only-mode)
+ (defalias 'read-only-mode 'toggle-read-only)))
(defgroup ggtags nil
"GNU Global source code tagging system."
@@ -473,7 +475,7 @@ Value is new modtime if updated."
(save-buffer)
(kill-buffer)
(when buffer-file-name
- (setq buffer-read-only val))
+ (read-only-mode (if val +1 -1)))
(when (called-interactively-p 'interactive)
(message "Project read-only-mode is %s" (if val "on" "off")))
val))
- [elpa] 04/38: Combine ggtags-global-column and tag name search, (continued)
- [elpa] 04/38: Combine ggtags-global-column and tag name search, Leo Liu, 2014/03/24
- [elpa] 06/38: Fix #34: New variable ggtags-global-always-update, Leo Liu, 2014/03/24
- [elpa] 09/38: Replace ignore-errors with condition-case-unless-debug, Leo Liu, 2014/03/24
- [elpa] 10/38: Automatically use GTAGSCONF file at project root, Leo Liu, 2014/03/24
- [elpa] 05/38: Improve completion support for all tag types, Leo Liu, 2014/03/24
- [elpa] 11/38: Make last change acutally work, Leo Liu, 2014/03/24
- [elpa] 12/38: Fix compatibility for locate-dominating-file, Leo Liu, 2014/03/24
- [elpa] 14/38: Display project root directory name on mode-line, Leo Liu, 2014/03/24
- [elpa] 22/38: New command ggtags-navigation-isearch-forward, Leo Liu, 2014/03/24
- [elpa] 17/38: Fix ggtags-with-current-project to include GTAGSCONF, Leo Liu, 2014/03/24
- [elpa] 19/38: Use read-only-mode in ggtags-toggle-project-read-only,
Leo Liu <=
- [elpa] 18/38: Fix #36: Allow customising path to global's exectuables, Leo Liu, 2014/03/24
- [elpa] 20/38: Teach ggtags-find-tag-dwim to detect #include files, Leo Liu, 2014/03/24
- [elpa] 25/38: Fix ggtags-find-project to check on the GTAGS file, Leo Liu, 2014/03/24
- [elpa] 23/38: Simplify ggtags-save-to-register by always re-do the search, Leo Liu, 2014/03/24
- [elpa] 21/38: Add new command ggtags-save-to-register for #37, Leo Liu, 2014/03/24
- [elpa] 16/38: Fix ggtags-show-definition to run in current project, Leo Liu, 2014/03/24
- [elpa] 24/38: Fix thinko in "Don't display buffer if ggtags-navigation-mode is exited", Leo Liu, 2014/03/24
- [elpa] 26/38: New macro ignore-errors-unless-debug and use it, Leo Liu, 2014/03/24
- [elpa] 15/38: Small fixes to last change, Leo Liu, 2014/03/24
- [elpa] 32/38: Bind ggtags-save-to-register in ggtags-global-rerun-search-map, Leo Liu, 2014/03/24