diff options
| author | Alan Mackenzie | 2023-07-04 15:29:53 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2023-07-04 15:29:53 +0000 |
| commit | 753aaeb99c7eaa87e40c058235e31ef773babc8a (patch) | |
| tree | b6e551a04dcd0a46e9a3e313c65eb0ea69035e25 | |
| parent | b34f9a44393a331c866268d93b16ad69567a3cd4 (diff) | |
| download | emacs-753aaeb99c7eaa87e40c058235e31ef773babc8a.tar.gz emacs-753aaeb99c7eaa87e40c058235e31ef773babc8a.zip | |
objc-mode: Handle (de)propertization of < and >.
* lisp/progmodes/cc-langs.el
(c-get-state-before-change-functions)
(c-before-font-lock-functions): Separate the C and objc
versions, and add (to the first) c-unmark-<>-around-region and
c-before-change-check-<>-operators, (to the second)
c-unmark-<>-around-region and c-restore-<>-properties into the
objc versions of these lang variables.
| -rw-r--r-- | lisp/progmodes/cc-langs.el | 46 |
1 files changed, 32 insertions, 14 deletions
diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el index 2422cf3deb0..4e2ae5d85a6 100644 --- a/lisp/progmodes/cc-langs.el +++ b/lisp/progmodes/cc-langs.el | |||
| @@ -462,12 +462,20 @@ so that all identifiers are recognized as words.") | |||
| 462 | c-before-change-check-unbalanced-strings | 462 | c-before-change-check-unbalanced-strings |
| 463 | c-parse-quotes-before-change | 463 | c-parse-quotes-before-change |
| 464 | c-before-change-fix-comment-escapes) | 464 | c-before-change-fix-comment-escapes) |
| 465 | (c objc) '(c-extend-region-for-CPP | 465 | c '(c-extend-region-for-CPP |
| 466 | c-depropertize-CPP | 466 | c-depropertize-CPP |
| 467 | c-truncate-bs-cache | 467 | c-truncate-bs-cache |
| 468 | c-before-change-check-unbalanced-strings | 468 | c-before-change-check-unbalanced-strings |
| 469 | c-parse-quotes-before-change | 469 | c-parse-quotes-before-change |
| 470 | c-before-change-fix-comment-escapes) | 470 | c-before-change-fix-comment-escapes) |
| 471 | objc '(c-extend-region-for-CPP | ||
| 472 | c-depropertize-CPP | ||
| 473 | c-truncate-bs-cache | ||
| 474 | c-before-change-check-unbalanced-strings | ||
| 475 | c-unmark-<>-around-region | ||
| 476 | c-before-change-check-<>-operators | ||
| 477 | c-parse-quotes-before-change | ||
| 478 | c-before-change-fix-comment-escapes) | ||
| 471 | java '(c-parse-quotes-before-change | 479 | java '(c-parse-quotes-before-change |
| 472 | c-unmark-<>-around-region | 480 | c-unmark-<>-around-region |
| 473 | c-before-change-check-unbalanced-strings | 481 | c-before-change-check-unbalanced-strings |
| @@ -504,14 +512,24 @@ parameters \(point-min) and \(point-max).") | |||
| 504 | c-after-change-escape-NL-in-string | 512 | c-after-change-escape-NL-in-string |
| 505 | c-after-change-mark-abnormal-strings | 513 | c-after-change-mark-abnormal-strings |
| 506 | c-change-expand-fl-region) | 514 | c-change-expand-fl-region) |
| 507 | (c objc) '(c-depropertize-new-text | 515 | c '(c-depropertize-new-text |
| 508 | c-after-change-fix-comment-escapes | 516 | c-after-change-fix-comment-escapes |
| 509 | c-after-change-escape-NL-in-string | 517 | c-after-change-escape-NL-in-string |
| 510 | c-parse-quotes-after-change | 518 | c-parse-quotes-after-change |
| 511 | c-after-change-mark-abnormal-strings | 519 | c-after-change-mark-abnormal-strings |
| 512 | c-extend-font-lock-region-for-macros | 520 | c-extend-font-lock-region-for-macros |
| 513 | c-neutralize-syntax-in-CPP | 521 | c-neutralize-syntax-in-CPP |
| 514 | c-change-expand-fl-region) | 522 | c-change-expand-fl-region) |
| 523 | objc '(c-depropertize-new-text | ||
| 524 | c-after-change-fix-comment-escapes | ||
| 525 | c-after-change-escape-NL-in-string | ||
| 526 | c-parse-quotes-after-change | ||
| 527 | c-after-change-mark-abnormal-strings | ||
| 528 | c-unmark-<>-around-region | ||
| 529 | c-extend-font-lock-region-for-macros | ||
| 530 | c-neutralize-syntax-in-CPP | ||
| 531 | c-restore-<>-properties | ||
| 532 | c-change-expand-fl-region) | ||
| 515 | c++ '(c-depropertize-new-text | 533 | c++ '(c-depropertize-new-text |
| 516 | c-after-change-fix-comment-escapes | 534 | c-after-change-fix-comment-escapes |
| 517 | c-after-change-escape-NL-in-string | 535 | c-after-change-escape-NL-in-string |