diff options
| author | Lars Ingebrigtsen | 2019-10-01 16:51:45 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-10-01 16:51:45 +0200 |
| commit | 4fbe0ef20d27887ce605c5af2f047a877fb977aa (patch) | |
| tree | f891d4ea33669ba0eb696ae7dc3648fa9283c196 | |
| parent | bc95fc78bbf9c91ce5c3adb7d199c84c0c5032ca (diff) | |
| download | emacs-4fbe0ef20d27887ce605c5af2f047a877fb977aa.tar.gz emacs-4fbe0ef20d27887ce605c5af2f047a877fb977aa.zip | |
Remove XEmacs compat code from ediff-help.el
* lisp/vc/ediff-help.el (ediff-help-region-map)
(ediff-set-help-overlays, ediff-help-for-quick-help): Remove
XEmacs compat code.
| -rw-r--r-- | lisp/vc/ediff-help.el | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/lisp/vc/ediff-help.el b/lisp/vc/ediff-help.el index 05f17acc1e7..e8a76c0a755 100644 --- a/lisp/vc/ediff-help.el +++ b/lisp/vc/ediff-help.el | |||
| @@ -156,10 +156,7 @@ the value of this variable and the variables `ediff-help-message-*' in | |||
| 156 | ;; the keymap that defines clicks over the quick help regions | 156 | ;; the keymap that defines clicks over the quick help regions |
| 157 | (defvar ediff-help-region-map (make-sparse-keymap)) | 157 | (defvar ediff-help-region-map (make-sparse-keymap)) |
| 158 | 158 | ||
| 159 | (define-key | 159 | (define-key ediff-help-region-map [mouse-2] 'ediff-help-for-quick-help) |
| 160 | ediff-help-region-map | ||
| 161 | (if (featurep 'emacs) [mouse-2] [button2]) | ||
| 162 | 'ediff-help-for-quick-help) | ||
| 163 | 160 | ||
| 164 | ;; runs in the control buffer | 161 | ;; runs in the control buffer |
| 165 | (defun ediff-set-help-overlays () | 162 | (defun ediff-set-help-overlays () |
| @@ -170,9 +167,7 @@ the value of this variable and the variables `ediff-help-message-*' in | |||
| 170 | end (match-end 0) | 167 | end (match-end 0) |
| 171 | cmd (buffer-substring (match-beginning 1) (match-end 1))) | 168 | cmd (buffer-substring (match-beginning 1) (match-end 1))) |
| 172 | (setq overl (ediff-make-overlay beg end)) | 169 | (setq overl (ediff-make-overlay beg end)) |
| 173 | (if (featurep 'emacs) | 170 | (ediff-overlay-put overl 'mouse-face 'highlight) |
| 174 | (ediff-overlay-put overl 'mouse-face 'highlight) | ||
| 175 | (ediff-overlay-put overl 'highlight t)) | ||
| 176 | (ediff-overlay-put overl 'ediff-help-info cmd)))) | 171 | (ediff-overlay-put overl 'ediff-help-info cmd)))) |
| 177 | 172 | ||
| 178 | 173 | ||
| @@ -181,14 +176,11 @@ the value of this variable and the variables `ediff-help-message-*' in | |||
| 181 | (interactive) | 176 | (interactive) |
| 182 | (ediff-barf-if-not-control-buffer) | 177 | (ediff-barf-if-not-control-buffer) |
| 183 | (let ((pos (ediff-event-point last-command-event)) | 178 | (let ((pos (ediff-event-point last-command-event)) |
| 184 | overl cmd) | 179 | cmd) |
| 185 | 180 | ||
| 186 | (if (featurep 'xemacs) | 181 | (setq cmd (car (mapcar (lambda (elt) |
| 187 | (setq overl (extent-at pos (current-buffer) 'ediff-help-info) | 182 | (overlay-get elt 'ediff-help-info)) |
| 188 | cmd (ediff-overlay-get overl 'ediff-help-info)) | 183 | (overlays-at pos)))) |
| 189 | (setq cmd (car (mapcar (lambda (elt) | ||
| 190 | (overlay-get elt 'ediff-help-info)) | ||
| 191 | (overlays-at pos))))) | ||
| 192 | 184 | ||
| 193 | (if (not (stringp cmd)) | 185 | (if (not (stringp cmd)) |
| 194 | (user-error "Hmm... I don't see an Ediff command around here...")) | 186 | (user-error "Hmm... I don't see an Ediff command around here...")) |