diff options
| author | Lars Ingebrigtsen | 2021-02-24 20:32:09 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2021-02-24 20:32:09 +0100 |
| commit | 46b54e5bb42f26a57f6cdbedf83bd80c6c717a4f (patch) | |
| tree | 55b4b2a08dcdc70ccce0e80c63c8bab3c8f6d715 | |
| parent | 8fd97b1de0b1b0b563133cbb4d4f258bbb936257 (diff) | |
| download | emacs-46b54e5bb42f26a57f6cdbedf83bd80c6c717a4f.tar.gz emacs-46b54e5bb42f26a57f6cdbedf83bd80c6c717a4f.zip | |
Improve quail-update-leim-list-file error messaging
* lisp/international/quail.el (quail-update-leim-list-file): Give
a better error message.
| -rw-r--r-- | lisp/international/quail.el | 41 |
1 files changed, 22 insertions, 19 deletions
diff --git a/lisp/international/quail.el b/lisp/international/quail.el index 67ea00665fc..f52747084b2 100644 --- a/lisp/international/quail.el +++ b/lisp/international/quail.el | |||
| @@ -3066,28 +3066,31 @@ of each directory." | |||
| 3066 | ;; Don't get fooled by commented-out code. | 3066 | ;; Don't get fooled by commented-out code. |
| 3067 | (while (re-search-forward "^[ \t]*(quail-define-package" nil t) | 3067 | (while (re-search-forward "^[ \t]*(quail-define-package" nil t) |
| 3068 | (goto-char (match-beginning 0)) | 3068 | (goto-char (match-beginning 0)) |
| 3069 | (condition-case nil | 3069 | (let (form) |
| 3070 | (let ((form (read (current-buffer)))) | 3070 | (condition-case err |
| 3071 | (with-current-buffer list-buf | 3071 | (progn |
| 3072 | (insert | 3072 | (setq form (read (current-buffer))) |
| 3073 | (format "(register-input-method | 3073 | (with-current-buffer list-buf |
| 3074 | (insert | ||
| 3075 | (format "(register-input-method | ||
| 3074 | %S %S '%s | 3076 | %S %S '%s |
| 3075 | %S %S | 3077 | %S %S |
| 3076 | %S)\n" | 3078 | %S)\n" |
| 3077 | (nth 1 form) ; PACKAGE-NAME | 3079 | (nth 1 form) ; PACKAGE-NAME |
| 3078 | (nth 2 form) ; LANGUAGE | 3080 | (nth 2 form) ; LANGUAGE |
| 3079 | 'quail-use-package ; ACTIVATE-FUNC | 3081 | 'quail-use-package ; ACTIVATE-FUNC |
| 3080 | (nth 3 form) ; PACKAGE-TITLE | 3082 | (nth 3 form) ; PACKAGE-TITLE |
| 3081 | (progn ; PACKAGE-DESCRIPTION (one line) | 3083 | (progn ; PACKAGE-DESCRIPTION (one line) |
| 3082 | (string-match ".*" (nth 5 form)) | 3084 | (string-match ".*" (nth 5 form)) |
| 3083 | (match-string 0 (nth 5 form))) | 3085 | (match-string 0 (nth 5 form))) |
| 3084 | (file-relative-name ; PACKAGE-FILENAME | 3086 | (file-relative-name ; PACKAGE-FILENAME |
| 3085 | (file-name-sans-extension (car pkg-list)) | 3087 | (file-name-sans-extension (car pkg-list)) |
| 3086 | (car dirnames)))))) | 3088 | (car dirnames)))))) |
| 3087 | (error | 3089 | (error |
| 3088 | ;; Ignore the remaining contents of this file. | 3090 | ;; Ignore the remaining contents of this file. |
| 3089 | (goto-char (point-max)) | 3091 | (goto-char (point-max)) |
| 3090 | (message "Some part of \"%s\" is broken" (car pkg-list)))))) | 3092 | (message "Some part of \"%s\" is broken: %s in %s" |
| 3093 | (car pkg-list) err form)))))) | ||
| 3091 | (setq pkg-list (cdr pkg-list))) | 3094 | (setq pkg-list (cdr pkg-list))) |
| 3092 | (setq quail-dirs (cdr quail-dirs) dirnames (cdr dirnames)))) | 3095 | (setq quail-dirs (cdr quail-dirs) dirnames (cdr dirnames)))) |
| 3093 | 3096 | ||