diff options
| author | Stefan Monnier | 2006-04-26 21:54:51 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2006-04-26 21:54:51 +0000 |
| commit | 8570ce80826e511612edc65b659466503c176b58 (patch) | |
| tree | 8dbc23e11d946b424255edf287c4ce18241cffee /lisp | |
| parent | 1bf5b5be50b8b7db22ff292de66299be4ef3a8c7 (diff) | |
| download | emacs-8570ce80826e511612edc65b659466503c176b58.tar.gz emacs-8570ce80826e511612edc65b659466503c176b58.zip | |
Remove local autoload declaration for
pgg-gpg-symmetric-key-p, since that's now done in pgg-gpg.el.
(allout-show-bodies, allout-header-prefix, allout-primary-bullet)
(allout-plain-bullets-string, allout-distinctive-bullets-string)
(allout-use-mode-specific-leader, allout-old-style-prefixes)
(allout-stylish-prefixes, allout-numbered-bullet)
(allout-file-xref-bullet, allout-presentation-padding)
(allout-use-hanging-indents, allout-reindent-bodies): Mark as
safe-local-variable with suitable value spec, and add autoload
cookie for loaddefs inclusion. We now use an explicit spec everywhere.
(move-beginning-of-line, move-end-of-line): Repair so these compat
functions now actually resituate the point, when appropriate.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 15 | ||||
| -rw-r--r-- | lisp/allout.el | 100 |
2 files changed, 88 insertions, 27 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6e95e1eaa09..fb5298d370c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,18 @@ | |||
| 1 | 2006-04-17 Ken Manheimer <ken.manheimer@gmail.com> | ||
| 2 | |||
| 3 | * allout.el: Remove local autoload declaration for | ||
| 4 | pgg-gpg-symmetric-key-p, since that's now done in pgg-gpg.el. | ||
| 5 | (allout-show-bodies, allout-header-prefix, allout-primary-bullet) | ||
| 6 | (allout-plain-bullets-string, allout-distinctive-bullets-string) | ||
| 7 | (allout-use-mode-specific-leader, allout-old-style-prefixes) | ||
| 8 | (allout-stylish-prefixes, allout-numbered-bullet) | ||
| 9 | (allout-file-xref-bullet, allout-presentation-padding) | ||
| 10 | (allout-use-hanging-indents, allout-reindent-bodies): Mark as | ||
| 11 | safe-local-variable with suitable value spec, and add autoload | ||
| 12 | cookie for loaddefs inclusion. We now use an explicit spec everywhere. | ||
| 13 | (move-beginning-of-line, move-end-of-line): Repair so these compat | ||
| 14 | functions now actually resituate the point, when appropriate. | ||
| 15 | |||
| 1 | 2006-04-26 Stefan Monnier <monnier@iro.umontreal.ca> | 16 | 2006-04-26 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 17 | ||
| 3 | * progmodes/cc-subword.el (c-subword-mode-map): Use command remapping. | 18 | * progmodes/cc-subword.el (c-subword-mode-map): Use command remapping. |
diff --git a/lisp/allout.el b/lisp/allout.el index cf7b922eea6..b6542c1a5dc 100644 --- a/lisp/allout.el +++ b/lisp/allout.el | |||
| @@ -84,8 +84,6 @@ | |||
| 84 | (require 'pgg-gpg) | 84 | (require 'pgg-gpg) |
| 85 | (require 'overlay) | 85 | (require 'overlay) |
| 86 | )) | 86 | )) |
| 87 | (autoload 'pgg-gpg-symmetric-key-p "pgg-gpg" | ||
| 88 | "True if decoded armor MESSAGE-KEYS has symmetric encryption indicator.") | ||
| 89 | 87 | ||
| 90 | ;;;_* USER CUSTOMIZATION VARIABLES: | 88 | ;;;_* USER CUSTOMIZATION VARIABLES: |
| 91 | 89 | ||
| @@ -199,6 +197,9 @@ just the header." | |||
| 199 | :type 'boolean | 197 | :type 'boolean |
| 200 | :group 'allout) | 198 | :group 'allout) |
| 201 | (make-variable-buffer-local 'allout-show-bodies) | 199 | (make-variable-buffer-local 'allout-show-bodies) |
| 200 | ;;;###autoload | ||
| 201 | (put 'allout-show-bodies 'safe-local-variable | ||
| 202 | (lambda (x) (member x '(t nil)))) | ||
| 202 | 203 | ||
| 203 | ;;;_ = allout-header-prefix | 204 | ;;;_ = allout-header-prefix |
| 204 | (defcustom allout-header-prefix "." | 205 | (defcustom allout-header-prefix "." |
| @@ -212,6 +213,8 @@ outlines start at level 2 to avoid this discrepancy." | |||
| 212 | :type 'string | 213 | :type 'string |
| 213 | :group 'allout) | 214 | :group 'allout) |
| 214 | (make-variable-buffer-local 'allout-header-prefix) | 215 | (make-variable-buffer-local 'allout-header-prefix) |
| 216 | ;;;###autoload | ||
| 217 | (put 'allout-header-prefix 'safe-local-variable 'stringp) | ||
| 215 | ;;;_ = allout-primary-bullet | 218 | ;;;_ = allout-primary-bullet |
| 216 | (defcustom allout-primary-bullet "*" | 219 | (defcustom allout-primary-bullet "*" |
| 217 | "Bullet used for top-level outline topics. | 220 | "Bullet used for top-level outline topics. |
| @@ -227,6 +230,8 @@ bullets." | |||
| 227 | :type 'string | 230 | :type 'string |
| 228 | :group 'allout) | 231 | :group 'allout) |
| 229 | (make-variable-buffer-local 'allout-primary-bullet) | 232 | (make-variable-buffer-local 'allout-primary-bullet) |
| 233 | ;;;###autoload | ||
| 234 | (put 'allout-primary-bullet 'safe-local-variable 'stringp) | ||
| 230 | ;;;_ = allout-plain-bullets-string | 235 | ;;;_ = allout-plain-bullets-string |
| 231 | (defcustom allout-plain-bullets-string ".," | 236 | (defcustom allout-plain-bullets-string ".," |
| 232 | "*The bullets normally used in outline topic prefixes. | 237 | "*The bullets normally used in outline topic prefixes. |
| @@ -241,6 +246,8 @@ of this var to take effect." | |||
| 241 | :type 'string | 246 | :type 'string |
| 242 | :group 'allout) | 247 | :group 'allout) |
| 243 | (make-variable-buffer-local 'allout-plain-bullets-string) | 248 | (make-variable-buffer-local 'allout-plain-bullets-string) |
| 249 | ;;;###autoload | ||
| 250 | (put 'allout-plain-bullets-string 'safe-local-variable 'stringp) | ||
| 244 | ;;;_ = allout-distinctive-bullets-string | 251 | ;;;_ = allout-distinctive-bullets-string |
| 245 | (defcustom allout-distinctive-bullets-string "*+-=>()[{}&!?#%\"X@$~_\\:;^" | 252 | (defcustom allout-distinctive-bullets-string "*+-=>()[{}&!?#%\"X@$~_\\:;^" |
| 246 | "*Persistent outline header bullets used to distinguish special topics. | 253 | "*Persistent outline header bullets used to distinguish special topics. |
| @@ -274,6 +281,8 @@ strings." | |||
| 274 | :type 'string | 281 | :type 'string |
| 275 | :group 'allout) | 282 | :group 'allout) |
| 276 | (make-variable-buffer-local 'allout-distinctive-bullets-string) | 283 | (make-variable-buffer-local 'allout-distinctive-bullets-string) |
| 284 | ;;;###autoload | ||
| 285 | (put 'allout-distinctive-bullets-string 'safe-local-variable 'stringp) | ||
| 277 | 286 | ||
| 278 | ;;;_ = allout-use-mode-specific-leader | 287 | ;;;_ = allout-use-mode-specific-leader |
| 279 | (defcustom allout-use-mode-specific-leader t | 288 | (defcustom allout-use-mode-specific-leader t |
| @@ -292,7 +301,7 @@ alist, then use comment-start string, if any, then use default \(`.'). | |||
| 292 | Set to the symbol for either of `allout-mode-leaders' or | 301 | Set to the symbol for either of `allout-mode-leaders' or |
| 293 | `comment-start' to use only one of them, respectively. | 302 | `comment-start' to use only one of them, respectively. |
| 294 | 303 | ||
| 295 | Value nil means to always use the default \(`.'). | 304 | Value nil means to always use the default \(`.').t |
| 296 | 305 | ||
| 297 | comment-start strings that do not end in spaces are tripled, and an | 306 | comment-start strings that do not end in spaces are tripled, and an |
| 298 | `_' underscore is tacked on the end, to distinguish them from regular | 307 | `_' underscore is tacked on the end, to distinguish them from regular |
| @@ -305,6 +314,9 @@ incorrect.]" | |||
| 305 | (const allout-mode-leaders) | 314 | (const allout-mode-leaders) |
| 306 | (const comment-start)) | 315 | (const comment-start)) |
| 307 | :group 'allout) | 316 | :group 'allout) |
| 317 | ;;;###autoload | ||
| 318 | (put 'allout-use-mode-specific-leader 'safe-local-variable | ||
| 319 | (lambda (x) (or (member x '(t nil)) (stringp x)))) | ||
| 308 | ;;;_ = allout-mode-leaders | 320 | ;;;_ = allout-mode-leaders |
| 309 | (defvar allout-mode-leaders '() | 321 | (defvar allout-mode-leaders '() |
| 310 | "Specific allout-prefix leading strings per major modes. | 322 | "Specific allout-prefix leading strings per major modes. |
| @@ -330,6 +342,9 @@ are always respected by the topic maneuvering functions." | |||
| 330 | :type 'boolean | 342 | :type 'boolean |
| 331 | :group 'allout) | 343 | :group 'allout) |
| 332 | (make-variable-buffer-local 'allout-old-style-prefixes) | 344 | (make-variable-buffer-local 'allout-old-style-prefixes) |
| 345 | ;;;###autoload | ||
| 346 | (put 'allout-old-style-prefixes 'safe-local-variable | ||
| 347 | (lambda (x) (member x '(t nil)))) | ||
| 333 | ;;;_ = allout-stylish-prefixes - alternating bullets | 348 | ;;;_ = allout-stylish-prefixes - alternating bullets |
| 334 | (defcustom allout-stylish-prefixes t | 349 | (defcustom allout-stylish-prefixes t |
| 335 | "*Do fancy stuff with topic prefix bullets according to level, etc. | 350 | "*Do fancy stuff with topic prefix bullets according to level, etc. |
| @@ -376,6 +391,9 @@ is non-nil." | |||
| 376 | :type 'boolean | 391 | :type 'boolean |
| 377 | :group 'allout) | 392 | :group 'allout) |
| 378 | (make-variable-buffer-local 'allout-stylish-prefixes) | 393 | (make-variable-buffer-local 'allout-stylish-prefixes) |
| 394 | ;;;###autoload | ||
| 395 | (put 'allout-stylish-prefixes 'safe-local-variable | ||
| 396 | (lambda (x) (member x '(t nil)))) | ||
| 379 | 397 | ||
| 380 | ;;;_ = allout-numbered-bullet | 398 | ;;;_ = allout-numbered-bullet |
| 381 | (defcustom allout-numbered-bullet "#" | 399 | (defcustom allout-numbered-bullet "#" |
| @@ -388,6 +406,9 @@ disables numbering maintenance." | |||
| 388 | :type '(choice (const nil) string) | 406 | :type '(choice (const nil) string) |
| 389 | :group 'allout) | 407 | :group 'allout) |
| 390 | (make-variable-buffer-local 'allout-numbered-bullet) | 408 | (make-variable-buffer-local 'allout-numbered-bullet) |
| 409 | ;;;###autoload | ||
| 410 | (put 'allout-numbered-bullet 'safe-local-variable | ||
| 411 | (lambda (x) (or (not x) (stringp x)))) | ||
| 391 | ;;;_ = allout-file-xref-bullet | 412 | ;;;_ = allout-file-xref-bullet |
| 392 | (defcustom allout-file-xref-bullet "@" | 413 | (defcustom allout-file-xref-bullet "@" |
| 393 | "*Bullet signifying file cross-references, for `allout-resolve-xref'. | 414 | "*Bullet signifying file cross-references, for `allout-resolve-xref'. |
| @@ -395,6 +416,9 @@ disables numbering maintenance." | |||
| 395 | Set this var to the bullet you want to use for file cross-references." | 416 | Set this var to the bullet you want to use for file cross-references." |
| 396 | :type '(choice (const nil) string) | 417 | :type '(choice (const nil) string) |
| 397 | :group 'allout) | 418 | :group 'allout) |
| 419 | ;;;###autoload | ||
| 420 | (put 'allout-file-xref-bullet 'safe-local-variable | ||
| 421 | (lambda (x) (or (not x) (stringp x)))) | ||
| 398 | ;;;_ = allout-presentation-padding | 422 | ;;;_ = allout-presentation-padding |
| 399 | (defcustom allout-presentation-padding 2 | 423 | (defcustom allout-presentation-padding 2 |
| 400 | "*Presentation-format white-space padding factor, for greater indent." | 424 | "*Presentation-format white-space padding factor, for greater indent." |
| @@ -402,6 +426,8 @@ Set this var to the bullet you want to use for file cross-references." | |||
| 402 | :group 'allout) | 426 | :group 'allout) |
| 403 | 427 | ||
| 404 | (make-variable-buffer-local 'allout-presentation-padding) | 428 | (make-variable-buffer-local 'allout-presentation-padding) |
| 429 | ;;;###autoload | ||
| 430 | (put 'allout-presentation-padding 'safe-local-variable 'integerp) | ||
| 405 | 431 | ||
| 406 | ;;;_ = allout-abbreviate-flattened-numbering | 432 | ;;;_ = allout-abbreviate-flattened-numbering |
| 407 | (defcustom allout-abbreviate-flattened-numbering nil | 433 | (defcustom allout-abbreviate-flattened-numbering nil |
| @@ -455,11 +481,16 @@ formatted copy." | |||
| 455 | :group 'allout) | 481 | :group 'allout) |
| 456 | 482 | ||
| 457 | ;;;_ + Topic encryption | 483 | ;;;_ + Topic encryption |
| 484 | ;;;_ = allout-encryption group | ||
| 485 | (defgroup allout-encryption nil | ||
| 486 | "Settings for topic encryption features of allout outliner." | ||
| 487 | :group 'allout) | ||
| 458 | ;;;_ = allout-topic-encryption-bullet | 488 | ;;;_ = allout-topic-encryption-bullet |
| 459 | (defcustom allout-topic-encryption-bullet "~" | 489 | (defcustom allout-topic-encryption-bullet "~" |
| 460 | "*Bullet signifying encryption of the entry's body." | 490 | "*Bullet signifying encryption of the entry's body." |
| 461 | :type '(choice (const nil) string) | 491 | :type '(choice (const nil) string) |
| 462 | :group 'allout) | 492 | :version "22.0" |
| 493 | :group 'allout-encryption) | ||
| 463 | ;;;_ = allout-passphrase-verifier-handling | 494 | ;;;_ = allout-passphrase-verifier-handling |
| 464 | (defcustom allout-passphrase-verifier-handling t | 495 | (defcustom allout-passphrase-verifier-handling t |
| 465 | "*Enable use of symmetric encryption passphrase verifier if non-nil. | 496 | "*Enable use of symmetric encryption passphrase verifier if non-nil. |
| @@ -467,7 +498,8 @@ formatted copy." | |||
| 467 | See the docstring for the `allout-enable-file-variable-adjustment' | 498 | See the docstring for the `allout-enable-file-variable-adjustment' |
| 468 | variable for details about allout ajustment of file variables." | 499 | variable for details about allout ajustment of file variables." |
| 469 | :type 'boolean | 500 | :type 'boolean |
| 470 | :group 'allout) | 501 | :version "22.0" |
| 502 | :group 'allout-encryption) | ||
| 471 | (make-variable-buffer-local 'allout-passphrase-verifier-handling) | 503 | (make-variable-buffer-local 'allout-passphrase-verifier-handling) |
| 472 | ;;;_ = allout-passphrase-hint-handling | 504 | ;;;_ = allout-passphrase-hint-handling |
| 473 | (defcustom allout-passphrase-hint-handling 'always | 505 | (defcustom allout-passphrase-hint-handling 'always |
| @@ -482,7 +514,8 @@ variable for details about allout ajustment of file variables." | |||
| 482 | :type '(choice (const always) | 514 | :type '(choice (const always) |
| 483 | (const needed) | 515 | (const needed) |
| 484 | (const disabled)) | 516 | (const disabled)) |
| 485 | :group 'allout) | 517 | :version "22.0" |
| 518 | :group 'allout-encryption) | ||
| 486 | (make-variable-buffer-local 'allout-passphrase-hint-handling) | 519 | (make-variable-buffer-local 'allout-passphrase-hint-handling) |
| 487 | ;;;_ = allout-encrypt-unencrypted-on-saves | 520 | ;;;_ = allout-encrypt-unencrypted-on-saves |
| 488 | (defcustom allout-encrypt-unencrypted-on-saves t | 521 | (defcustom allout-encrypt-unencrypted-on-saves t |
| @@ -514,7 +547,8 @@ disable auto-saves for that file." | |||
| 514 | :type '(choice (const :tag "Yes" t) | 547 | :type '(choice (const :tag "Yes" t) |
| 515 | (const :tag "All except current topic" except-current) | 548 | (const :tag "All except current topic" except-current) |
| 516 | (const :tag "No" nil)) | 549 | (const :tag "No" nil)) |
| 517 | :group 'allout) | 550 | :version "22.0" |
| 551 | :group 'allout-encryption) | ||
| 518 | (make-variable-buffer-local 'allout-encrypt-unencrypted-on-saves) | 552 | (make-variable-buffer-local 'allout-encrypt-unencrypted-on-saves) |
| 519 | 553 | ||
| 520 | ;;;_ + Miscellaneous customization | 554 | ;;;_ + Miscellaneous customization |
| @@ -585,6 +619,9 @@ where auto-fill occurs." | |||
| 585 | :type 'boolean | 619 | :type 'boolean |
| 586 | :group 'allout) | 620 | :group 'allout) |
| 587 | (make-variable-buffer-local 'allout-use-hanging-indents) | 621 | (make-variable-buffer-local 'allout-use-hanging-indents) |
| 622 | ;;;###autoload | ||
| 623 | (put 'allout-use-hanging-indents 'safe-local-variable | ||
| 624 | (lambda (x) (member x '(t nil)))) | ||
| 588 | 625 | ||
| 589 | ;;;_ = allout-reindent-bodies | 626 | ;;;_ = allout-reindent-bodies |
| 590 | (defcustom allout-reindent-bodies (if allout-use-hanging-indents | 627 | (defcustom allout-reindent-bodies (if allout-use-hanging-indents |
| @@ -602,6 +639,9 @@ those that do not have the variable `comment-start' set. A value of | |||
| 602 | :group 'allout) | 639 | :group 'allout) |
| 603 | 640 | ||
| 604 | (make-variable-buffer-local 'allout-reindent-bodies) | 641 | (make-variable-buffer-local 'allout-reindent-bodies) |
| 642 | ;;;###autoload | ||
| 643 | (put 'allout-reindent-bodies 'safe-local-variable | ||
| 644 | (lambda (x) (member x '(nil t text force)))) | ||
| 605 | 645 | ||
| 606 | ;;;_ = allout-enable-file-variable-adjustment | 646 | ;;;_ = allout-enable-file-variable-adjustment |
| 607 | (defcustom allout-enable-file-variable-adjustment t | 647 | (defcustom allout-enable-file-variable-adjustment t |
| @@ -667,7 +707,9 @@ the layout used for the allout.el source file.) | |||
| 667 | case the value of `allout-default-layout' is used.") | 707 | case the value of `allout-default-layout' is used.") |
| 668 | (make-variable-buffer-local 'allout-layout) | 708 | (make-variable-buffer-local 'allout-layout) |
| 669 | ;;;###autoload | 709 | ;;;###autoload |
| 670 | (put 'allout-layout 'safe-local-variable (lambda (x) (or (listp x) (symbolp x)))) | 710 | (put 'allout-layout 'safe-local-variable |
| 711 | (lambda (x) (or (numberp x) (listp x) (integerp x) | ||
| 712 | (member x '(: * + -))))) | ||
| 671 | 713 | ||
| 672 | ;;;_ : Topic header format | 714 | ;;;_ : Topic header format |
| 673 | ;;;_ = allout-regexp | 715 | ;;;_ = allout-regexp |
| @@ -1053,6 +1095,7 @@ The verifier string is retained as an Emacs file variable, as well as in | |||
| 1053 | the emacs buffer state, if file variable adjustments are enabled. See | 1095 | the emacs buffer state, if file variable adjustments are enabled. See |
| 1054 | `allout-enable-file-variable-adjustment' for details about that.") | 1096 | `allout-enable-file-variable-adjustment' for details about that.") |
| 1055 | (make-variable-buffer-local 'allout-passphrase-verifier-string) | 1097 | (make-variable-buffer-local 'allout-passphrase-verifier-string) |
| 1098 | ;;;###autoload | ||
| 1056 | (put 'allout-passphrase-verifier-string 'safe-local-variable 'stringp) | 1099 | (put 'allout-passphrase-verifier-string 'safe-local-variable 'stringp) |
| 1057 | ;;;_ = allout-passphrase-hint-string | 1100 | ;;;_ = allout-passphrase-hint-string |
| 1058 | (defvar allout-passphrase-hint-string "" | 1101 | (defvar allout-passphrase-hint-string "" |
| @@ -1065,8 +1108,9 @@ The hint is retained as an Emacs file variable, as well as in the emacs buffer | |||
| 1065 | state, if file variable adjustments are enabled. See | 1108 | state, if file variable adjustments are enabled. See |
| 1066 | `allout-enable-file-variable-adjustment' for details about that.") | 1109 | `allout-enable-file-variable-adjustment' for details about that.") |
| 1067 | (make-variable-buffer-local 'allout-passphrase-hint-string) | 1110 | (make-variable-buffer-local 'allout-passphrase-hint-string) |
| 1068 | (put 'allout-passphrase-hint-string 'safe-local-variable 'stringp) | ||
| 1069 | (setq-default allout-passphrase-hint-string "") | 1111 | (setq-default allout-passphrase-hint-string "") |
| 1112 | ;;;###autoload | ||
| 1113 | (put 'allout-passphrase-hint-string 'safe-local-variable 'stringp) | ||
| 1070 | ;;;_ = allout-after-save-decrypt | 1114 | ;;;_ = allout-after-save-decrypt |
| 1071 | (defvar allout-after-save-decrypt nil | 1115 | (defvar allout-after-save-decrypt nil |
| 1072 | "Internal variable, is nil or has the value of two points: | 1116 | "Internal variable, is nil or has the value of two points: |
| @@ -1573,6 +1617,12 @@ OPEN: A topic that is not closed, though its offspring or body may be." | |||
| 1573 | ; epoch, minor-mode key bindings: | 1617 | ; epoch, minor-mode key bindings: |
| 1574 | (setq allout-mode-map | 1618 | (setq allout-mode-map |
| 1575 | (produce-allout-mode-map allout-keybindings-list)) | 1619 | (produce-allout-mode-map allout-keybindings-list)) |
| 1620 | (substitute-key-definition 'beginning-of-line | ||
| 1621 | 'move-beginning-of-line | ||
| 1622 | allout-mode-map global-map) | ||
| 1623 | (substitute-key-definition 'end-of-line | ||
| 1624 | 'move-end-of-line | ||
| 1625 | allout-mode-map global-map) | ||
| 1576 | (produce-allout-mode-menubar-entries) | 1626 | (produce-allout-mode-menubar-entries) |
| 1577 | (fset 'allout-mode-map allout-mode-map) | 1627 | (fset 'allout-mode-map allout-mode-map) |
| 1578 | ; Include on minor-mode-map-alist, | 1628 | ; Include on minor-mode-map-alist, |
| @@ -5778,17 +5828,14 @@ To ignore intangibility, bind `inhibit-point-motion-hooks' to t." | |||
| 5778 | (if (/= arg 1) | 5828 | (if (/= arg 1) |
| 5779 | (condition-case nil (line-move (1- arg)) (error nil))) | 5829 | (condition-case nil (line-move (1- arg)) (error nil))) |
| 5780 | 5830 | ||
| 5781 | (let ((orig (point))) | 5831 | ;; Move to beginning-of-line, ignoring fields and invisibles. |
| 5782 | ;; Move to beginning-of-line, ignoring fields and invisibles. | 5832 | (skip-chars-backward "^\n") |
| 5783 | (skip-chars-backward "^\n") | 5833 | (while (and (not (bobp)) (line-move-invisible-p (1- (point)))) |
| 5784 | (while (and (not (bobp)) (line-move-invisible-p (1- (point)))) | 5834 | (goto-char (if (featurep 'xemacs) |
| 5785 | (goto-char (if (featurep 'xemacs) | 5835 | (previous-property-change (point)) |
| 5786 | (previous-property-change (point)) | 5836 | (previous-char-property-change (point)))) |
| 5787 | (previous-char-property-change (point)))) | 5837 | (skip-chars-backward "^\n")) |
| 5788 | (skip-chars-backward "^\n")) | 5838 | (vertical-motion 0)) |
| 5789 | (vertical-motion 0) | ||
| 5790 | (if (/= orig (point)) | ||
| 5791 | (goto-char orig)))) | ||
| 5792 | ) | 5839 | ) |
| 5793 | ;;;_ > move-end-of-line if necessary - older emacs, xemacs | 5840 | ;;;_ > move-end-of-line if necessary - older emacs, xemacs |
| 5794 | (if (not (fboundp 'move-end-of-line)) | 5841 | (if (not (fboundp 'move-end-of-line)) |
| @@ -5802,8 +5849,7 @@ If point reaches the beginning or end of buffer, it stops there. | |||
| 5802 | To ignore intangibility, bind `inhibit-point-motion-hooks' to t." | 5849 | To ignore intangibility, bind `inhibit-point-motion-hooks' to t." |
| 5803 | (interactive "p") | 5850 | (interactive "p") |
| 5804 | (or arg (setq arg 1)) | 5851 | (or arg (setq arg 1)) |
| 5805 | (let ((orig (point)) | 5852 | (let (done) |
| 5806 | done) | ||
| 5807 | (while (not done) | 5853 | (while (not done) |
| 5808 | (let ((newpos | 5854 | (let ((newpos |
| 5809 | (save-excursion | 5855 | (save-excursion |
| @@ -5813,8 +5859,10 @@ To ignore intangibility, bind `inhibit-point-motion-hooks' to t." | |||
| 5813 | (error nil)) | 5859 | (error nil)) |
| 5814 | (not (bobp)) | 5860 | (not (bobp)) |
| 5815 | (progn | 5861 | (progn |
| 5816 | (while (and (not (bobp)) (line-move-invisible-p (1- (point)))) | 5862 | (while (and (not (bobp)) |
| 5817 | (goto-char (previous-char-property-change (point)))) | 5863 | (line-move-invisible-p (1- (point)))) |
| 5864 | (goto-char | ||
| 5865 | (previous-char-property-change (point)))) | ||
| 5818 | (backward-char 1))) | 5866 | (backward-char 1))) |
| 5819 | (point))))) | 5867 | (point))))) |
| 5820 | (goto-char newpos) | 5868 | (goto-char newpos) |
| @@ -5827,9 +5875,7 @@ To ignore intangibility, bind `inhibit-point-motion-hooks' to t." | |||
| 5827 | ;; and now we're not really at eol, | 5875 | ;; and now we're not really at eol, |
| 5828 | ;; keep going. | 5876 | ;; keep going. |
| 5829 | (setq arg 1) | 5877 | (setq arg 1) |
| 5830 | (setq done t))))) | 5878 | (setq done t))))))) |
| 5831 | (if (/= orig (point)) | ||
| 5832 | (goto-char orig)))) | ||
| 5833 | ) | 5879 | ) |
| 5834 | ;;;_ > line-move-invisible-p if necessary | 5880 | ;;;_ > line-move-invisible-p if necessary |
| 5835 | (if (not (fboundp 'line-move-invisible-p)) | 5881 | (if (not (fboundp 'line-move-invisible-p)) |