LEFT | RIGHT |
1 ;;; go-mode.el --- Major mode for the Go programming language | 1 ;;; go-mode.el --- Major mode for the Go programming language |
2 | 2 |
3 ;; Copyright 2013 The Go Authors. All rights reserved. | 3 ;; Copyright 2013 The Go Authors. All rights reserved. |
4 ;; Use of this source code is governed by a BSD-style | 4 ;; Use of this source code is governed by a BSD-style |
5 ;; license that can be found in the LICENSE file. | 5 ;; license that can be found in the LICENSE file. |
6 | 6 |
7 (require 'cl) | 7 (require 'cl) |
8 (require 'etags) | 8 (require 'etags) |
9 (require 'ffap) | 9 (require 'ffap) |
| 10 (require 'ring) |
10 (require 'url) | 11 (require 'url) |
11 | 12 |
12 ;; XEmacs compatibility guidelines | 13 ;; XEmacs compatibility guidelines |
13 ;; - Minimum required version of XEmacs: 21.5.32 | 14 ;; - Minimum required version of XEmacs: 21.5.32 |
14 ;; - Feature that cannot be backported: POSIX character classes in | 15 ;; - Feature that cannot be backported: POSIX character classes in |
15 ;; regular expressions | 16 ;; regular expressions |
16 ;; - Functions that could be backported but won't because 21.5.32 | 17 ;; - Functions that could be backported but won't because 21.5.32 |
17 ;; covers them: plenty. | 18 ;; covers them: plenty. |
18 ;; - Features that are still partly broken: | 19 ;; - Features that are still partly broken: |
19 ;; - godef will not work correctly if multibyte characters are | 20 ;; - godef will not work correctly if multibyte characters are |
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
928 (push-mark) | 929 (push-mark) |
929 (ring-insert find-tag-marker-ring (point-marker)) | 930 (ring-insert find-tag-marker-ring (point-marker)) |
930 (godef--find-file-line-column file other-window)))) | 931 (godef--find-file-line-column file other-window)))) |
931 (file-error (message "Could not run godef binary")))) | 932 (file-error (message "Could not run godef binary")))) |
932 | 933 |
933 (defun godef-jump-other-window (point) | 934 (defun godef-jump-other-window (point) |
934 (interactive "d") | 935 (interactive "d") |
935 (godef-jump point t)) | 936 (godef-jump point t)) |
936 | 937 |
937 (provide 'go-mode) | 938 (provide 'go-mode) |
LEFT | RIGHT |