diff options
| author | Ken Manheimer | 2011-03-15 17:01:37 -0400 |
|---|---|---|
| committer | Ken Manheimer | 2011-03-15 17:01:37 -0400 |
| commit | 2dab465b9edbb62db03cd5d2d9741415ba1014f6 (patch) | |
| tree | c0591cf6fc89411a5fa0ed756e0d6ed685148c26 | |
| parent | 0e48bb227a5b9cdabeb845422de33d62ccb1edc5 (diff) | |
| download | emacs-2dab465b9edbb62db03cd5d2d9741415ba1014f6.tar.gz emacs-2dab465b9edbb62db03cd5d2d9741415ba1014f6.zip | |
* allout.el (allout-make-topic-prefix) (allout-rebullet-heading): Invert
the roles of character and string values for INSTEAD, so a string is used
for the more common case of a defaulting prompt.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/allout.el | 18 |
2 files changed, 16 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 599cf5ba4d3..db21eb97cc0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-03-15 Ken Manheimer <ken.manheimer@gmail.com> | ||
| 2 | |||
| 3 | * allout.el (allout-make-topic-prefix) (allout-rebullet-heading): | ||
| 4 | Invert the roles of character and string values for INSTEAD, so a | ||
| 5 | string is used for the more common case of a defaulting prompt. | ||
| 6 | |||
| 1 | 2011-03-15 Stefan Monnier <monnier@iro.umontreal.ca> | 7 | 2011-03-15 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 8 | ||
| 3 | * progmodes/ruby-mode.el (ruby-backward-sexp): | 9 | * progmodes/ruby-mode.el (ruby-backward-sexp): |
diff --git a/lisp/allout.el b/lisp/allout.el index a12101ea9a5..2df606e45c6 100644 --- a/lisp/allout.el +++ b/lisp/allout.el | |||
| @@ -3496,8 +3496,8 @@ the current topics' depth. | |||
| 3496 | If INSTEAD is: | 3496 | If INSTEAD is: |
| 3497 | 3497 | ||
| 3498 | - nil, then the bullet char for the context is used, per distinction or depth | 3498 | - nil, then the bullet char for the context is used, per distinction or depth |
| 3499 | - a string, then the first character of the string will be used | 3499 | - a \(numeric) character, then character's string representation is used |
| 3500 | - a character, then the user is solicited for bullet, with that char as default | 3500 | - a string, then the user is asked for bullet with the first char as default |
| 3501 | - anything else, the user is solicited with bullet char per context as default | 3501 | - anything else, the user is solicited with bullet char per context as default |
| 3502 | 3502 | ||
| 3503 | \(INSTEAD overrides other options, including, eg, a distinctive | 3503 | \(INSTEAD overrides other options, including, eg, a distinctive |
| @@ -3554,10 +3554,12 @@ index for each successive sibling)." | |||
| 3554 | ((progn (setq body (make-string (- depth 2) ?\ )) | 3554 | ((progn (setq body (make-string (- depth 2) ?\ )) |
| 3555 | ;; The actual condition: | 3555 | ;; The actual condition: |
| 3556 | instead) | 3556 | instead) |
| 3557 | (let* ((got | 3557 | (let ((got (cond ((stringp instead) |
| 3558 | (if (and (stringp instead)(> (length instead) 0)) | 3558 | (if (> (length instead) 0) |
| 3559 | (substring instead 0 1) | 3559 | (allout-solicit-alternate-bullet |
| 3560 | (allout-solicit-alternate-bullet depth instead)))) | 3560 | depth (substring instead 0 1)))) |
| 3561 | ((characterp instead) (char-to-string instead)) | ||
| 3562 | (t (allout-solicit-alternate-bullet depth))))) | ||
| 3561 | ;; Gotta check whether we're numbering and got a numbered bullet: | 3563 | ;; Gotta check whether we're numbering and got a numbered bullet: |
| 3562 | (setq numbering (and allout-numbered-bullet | 3564 | (setq numbering (and allout-numbered-bullet |
| 3563 | (not (and number-control (not index))) | 3565 | (not (and number-control (not index))) |
| @@ -3951,8 +3953,8 @@ All args are optional. | |||
| 3951 | 3953 | ||
| 3952 | If INSTEAD is: | 3954 | If INSTEAD is: |
| 3953 | - nil, then the bullet char for the context is used, per distinction or depth | 3955 | - nil, then the bullet char for the context is used, per distinction or depth |
| 3954 | - a string, then the first character of the string will be used | 3956 | - a \(numeric) character, then character's string representation is used |
| 3955 | - a character, then the user is solicited for bullet, with that char as default | 3957 | - a string, then the user is asked for bullet with the first char as default |
| 3956 | - anything else, the user is solicited with bullet char per context as default | 3958 | - anything else, the user is solicited with bullet char per context as default |
| 3957 | 3959 | ||
| 3958 | Second arg DEPTH forces the topic prefix to that depth, regardless | 3960 | Second arg DEPTH forces the topic prefix to that depth, regardless |