diff options
| author | Paul Eggert | 2020-05-17 16:50:49 -0700 |
|---|---|---|
| committer | Paul Eggert | 2020-05-17 16:51:46 -0700 |
| commit | 00be23c2af4aa1bb09afc6404c5ef68997dc18f5 (patch) | |
| tree | d5708617c9deeda6debf4c23c3d4a19c7e1ceb80 | |
| parent | abec255c024938a40fa3c9730f602c0351e5877d (diff) | |
| download | emacs-00be23c2af4aa1bb09afc6404c5ef68997dc18f5.tar.gz emacs-00be23c2af4aa1bb09afc6404c5ef68997dc18f5.zip | |
Don’t attempt to modify constant strings
These attempts were found by ‘make compile-always’.
* lisp/language/tibet-util.el (tibetan-obsolete-glyphs):
* lisp/org/org-agenda.el (org-agenda-get-restriction-and-command):
Don’t try to modify string constants.
| -rw-r--r-- | lisp/language/tibet-util.el | 14 | ||||
| -rw-r--r-- | lisp/org/org-agenda.el | 5 |
2 files changed, 12 insertions, 7 deletions
diff --git a/lisp/language/tibet-util.el b/lisp/language/tibet-util.el index 29fff9175b7..8684cdb1338 100644 --- a/lisp/language/tibet-util.el +++ b/lisp/language/tibet-util.el | |||
| @@ -43,13 +43,17 @@ | |||
| 43 | ("་" . "་") | 43 | ("་" . "་") |
| 44 | ("༔" . "༔") | 44 | ("༔" . "༔") |
| 45 | ;; Yes these are dirty. But ... | 45 | ;; Yes these are dirty. But ... |
| 46 | ("༎ ༎" . ,(compose-string "༎ ༎" 0 3 [?༎ (Br . Bl) ? (Br . Bl) ?༎])) | 46 | ("༎ ༎" . ,(compose-string (copy-sequence "༎ ༎") |
| 47 | 0 3 [?༎ (Br . Bl) ? (Br . Bl) ?༎])) | ||
| 47 | ("༄༅༅" . ,(compose-string | 48 | ("༄༅༅" . ,(compose-string |
| 48 | "࿁࿂࿂࿂" 0 4 | 49 | (copy-sequence "࿁࿂࿂࿂") 0 4 |
| 49 | [?࿁ (Br . Bl) ?࿂ (Br . Bl) ?࿂ (Br . Bl) ?࿂])) | 50 | [?࿁ (Br . Bl) ?࿂ (Br . Bl) ?࿂ (Br . Bl) ?࿂])) |
| 50 | ("༄༅" . ,(compose-string "࿁࿂࿂" 0 3 [?࿁ (Br . Bl) ?࿂ (Br . Bl) ?࿂])) | 51 | ("༄༅" . ,(compose-string (copy-sequence "࿁࿂࿂") |
| 51 | ("༆" . ,(compose-string "࿁࿂༙" 0 3 [?࿁ (Br . Bl) ?࿂ (br . tr) ?༙])) | 52 | 0 3 [?࿁ (Br . Bl) ?࿂ (Br . Bl) ?࿂])) |
| 52 | ("༄" . ,(compose-string "࿁࿂" 0 2 [?࿁ (Br . Bl) ?࿂])))) | 53 | ("༆" . ,(compose-string (copy-sequence "࿁࿂༙") |
| 54 | 0 3 [?࿁ (Br . Bl) ?࿂ (br . tr) ?༙])) | ||
| 55 | ("༄" . ,(compose-string (copy-sequence "࿁࿂") | ||
| 56 | 0 2 [?࿁ (Br . Bl) ?࿂])))) | ||
| 53 | 57 | ||
| 54 | ;;;###autoload | 58 | ;;;###autoload |
| 55 | (defun tibetan-char-p (ch) | 59 | (defun tibetan-char-p (ch) |
diff --git a/lisp/org/org-agenda.el b/lisp/org/org-agenda.el index 5fe140d00ef..689d134627e 100644 --- a/lisp/org/org-agenda.el +++ b/lisp/org/org-agenda.el | |||
| @@ -2995,7 +2995,8 @@ Agenda views are separated by `org-agenda-block-separator'." | |||
| 2995 | (erase-buffer) | 2995 | (erase-buffer) |
| 2996 | (insert (eval-when-compile | 2996 | (insert (eval-when-compile |
| 2997 | (let ((header | 2997 | (let ((header |
| 2998 | "Press key for an agenda command: | 2998 | (copy-sequence |
| 2999 | "Press key for an agenda command: | ||
| 2999 | -------------------------------- < Buffer, subtree/region restriction | 3000 | -------------------------------- < Buffer, subtree/region restriction |
| 3000 | a Agenda for current week or day > Remove restriction | 3001 | a Agenda for current week or day > Remove restriction |
| 3001 | t List of all TODO entries e Export agenda views | 3002 | t List of all TODO entries e Export agenda views |
| @@ -3004,7 +3005,7 @@ s Search for keywords M Like m, but only TODO entries | |||
| 3004 | / Multi-occur S Like s, but only TODO entries | 3005 | / Multi-occur S Like s, but only TODO entries |
| 3005 | ? Find :FLAGGED: entries C Configure custom agenda commands | 3006 | ? Find :FLAGGED: entries C Configure custom agenda commands |
| 3006 | * Toggle sticky agenda views # List stuck projects (!=configure) | 3007 | * Toggle sticky agenda views # List stuck projects (!=configure) |
| 3007 | ") | 3008 | ")) |
| 3008 | (start 0)) | 3009 | (start 0)) |
| 3009 | (while (string-match | 3010 | (while (string-match |
| 3010 | "\\(^\\| \\|(\\)\\(\\S-\\)\\( \\|=\\)" | 3011 | "\\(^\\| \\|(\\)\\(\\S-\\)\\( \\|=\\)" |