Skip to content
This repository

removed make-local-hook #1

Open
wants to merge 1 commit into from

1 participant

nathaniel
nathaniel

OK, I think I've got this pull request thing figured out! I removed the offending lines and their comments from idlwave.el and idlw-shell.el

--Nathaniel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Jan 12, 2011
nathaniel nathaniel remove calls to obsolete make-local-hook 3da9a3b
This page is out of date. Refresh to see the latest.

Showing 2 changed files with 2 additions and 11 deletions. Show diff stats Hide diff stats

  1. +0 4 idlw-shell.el
  2. +2 7 idlwave.el
4 idlw-shell.el
@@ -1033,8 +1033,6 @@ IDL has currently stepped.")
1033 1033 (setq idlwave-shell-default-directory default-directory)
1034 1034 (setq idlwave-shell-hide-output nil)
1035 1035
1036   - ;; NB: `make-local-hook' needed for older/alternative Emacs compatibility
1037   - (make-local-hook 'kill-buffer-hook)
1038 1036 (add-hook 'kill-buffer-hook 'idlwave-shell-kill-shell-buffer-confirm
1039 1037 nil 'local)
1040 1038 (add-hook 'kill-buffer-hook 'idlwave-shell-delete-temp-files nil 'local)
@@ -1071,8 +1069,6 @@ IDL has currently stepped.")
1071 1069 (set (make-local-variable 'comment-start) ";")
1072 1070 (setq abbrev-mode t)
1073 1071
1074   - ;; NB: `make-local-hook' needed for older/alternative Emacs compatibility
1075   - (make-local-hook 'post-command-hook)
1076 1072 (add-hook 'post-command-hook 'idlwave-command-hook nil t)
1077 1073
1078 1074 ;; Read the command history?
9 idlwave.el
@@ -1983,16 +1983,11 @@ The main features of this mode are
1983 1983 ";"
1984 1984 'idlwave-forward-block nil))
1985 1985
1986   - ;; Make a local post-command-hook and add our hook to it
1987   - ;; NB: `make-local-hook' needed for older/alternative Emacs compatibility
1988   - (make-local-hook 'post-command-hook)
  1986 + ;; Add our hook to local post-command-hook
1989 1987 (add-hook 'post-command-hook 'idlwave-command-hook nil 'local)
1990 1988
1991   - ;; Make local hooks for buffer updates
1992   - ;; NB: `make-local-hook' needed for older/alternative Emacs compatibility
1993   - (make-local-hook 'kill-buffer-hook)
  1989 + ;; Add local hooks for buffer updates
1994 1990 (add-hook 'kill-buffer-hook 'idlwave-kill-buffer-update nil 'local)
1995   - (make-local-hook 'after-save-hook)
1996 1991 (add-hook 'after-save-hook 'idlwave-save-buffer-update nil 'local)
1997 1992 (add-hook 'after-save-hook 'idlwave-revoke-license-to-kill nil 'local)
1998 1993

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.