From 93217162b0da8e69d62dbe62fc2bd85a4e0bc99d Mon Sep 17 00:00:00 2001 From: Eric James Michael Ritz Date: Sat, 19 Jan 2013 01:57:11 -0500 Subject: [PATCH] Remove all mention of turn-on-artbollocks-mode This function is no longer part of artbollocks-mode but the README and the usage documentation in the source code both show it as the preferred way to enable artbollocks-mode as a hook for other modes. Attempting to use turn-on-artbollocks-mode can cause some obscure errors, such as breaking log-edit-show-diff. The correct way to enable artbollocks-mode is to simply setup hooks to call that function directly, and this patch changes the documentation to reflect that. Signed-off-by: Eric James Michael Ritz --- README | 4 ++-- artbollocks-mode.el | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README b/README index 8b49303..b52b1b2 100644 --- a/README +++ b/README @@ -15,8 +15,8 @@ following to your .emacs file: If you wish artbollocks-mode to be loaded automatically, add the following to your .emacs file immediately after the autoload statement: -(add-hook 'text-mode-hook 'turn-on-artbollocks-mode) -(add-hook 'org-mode-hook 'turn-on-artbollocks-mode) +(add-hook 'text-mode-hook 'artbollocks-mode) +(add-hook 'org-mode-hook 'artbollocks-mode) Manual Usage ============ diff --git a/artbollocks-mode.el b/artbollocks-mode.el index 3fb2935..222c694 100644 --- a/artbollocks-mode.el +++ b/artbollocks-mode.el @@ -39,8 +39,8 @@ ;; To use, save artbollocks-mode.el to a directory in your load-path. ;; ;; (require 'artbollocks-mode) -;; (add-hook 'text-mode-hook 'turn-on-artbollocks-mode) -;; (add-hook 'org-mode-hook 'turn-on-artbollocks-mode) +;; (add-hook 'text-mode-hook 'artbollocks-mode) +;; (add-hook 'org-mode-hook 'artbollocks-mode) ;; ;; or ;; @@ -194,7 +194,7 @@ (setq match-data-to-set (match-data)))) (when match-data-to-set (set-match-data match-data-to-set) - (goto-char (match-end 0)) + (goto-char (match-end 0)) t))) (defun artbollocks-lexical-illusions-search-for-keyword (limit) @@ -210,19 +210,19 @@ (artbollocks-search-for-keyword artbollocks-jargon-regex limit)) (defconst artbollocks-lexicalkwlist - '((artbollocks-lexical-illusions-search-for-keyword + '((artbollocks-lexical-illusions-search-for-keyword (2 'artbollocks-font-lock-lexical-illusions-face t)))) (defconst artbollocks-passivekwlist - '((artbollocks-passive-voice-search-for-keyword + '((artbollocks-passive-voice-search-for-keyword (0 'artbollocks-font-lock-passive-voice-face t)))) (defconst artbollocks-weaselkwlist - '((artbollocks-weasel-words-search-for-keyword + '((artbollocks-weasel-words-search-for-keyword (0 'artbollocks-font-lock-weasel-words-face t)))) (defconst artbollocks-kwlist - '((artbollocks-search-for-jargon + '((artbollocks-search-for-jargon (0 'artbollocks-font-lock-artbollocks-face t)))) (defun artbollocks-add-keywords ()