diff options
| author | Stefan Monnier | 2001-11-30 09:23:19 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2001-11-30 09:23:19 +0000 |
| commit | a16db7fe3cee8c48d917f00d4b2c6b1b00d2f753 (patch) | |
| tree | aca7c18ceb70f7c11f3cb5d08b24a8604427d726 | |
| parent | dc338e19802af00c7f07fe1a6b12e87f6259d7f8 (diff) | |
| download | emacs-a16db7fe3cee8c48d917f00d4b2c6b1b00d2f753.tar.gz emacs-a16db7fe3cee8c48d917f00d4b2c6b1b00d2f753.zip | |
(outline-promote, outline-demote): Typo.
| -rw-r--r-- | lisp/textmodes/outline.el | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/textmodes/outline.el b/lisp/textmodes/outline.el index dfd83a005c6..4996520daa9 100644 --- a/lisp/textmodes/outline.el +++ b/lisp/textmodes/outline.el | |||
| @@ -363,15 +363,15 @@ If prefix argument CHILDREN is given, promote also all the children." | |||
| 363 | (outline-back-to-heading) | 363 | (outline-back-to-heading) |
| 364 | (let* ((head (match-string 0)) | 364 | (let* ((head (match-string 0)) |
| 365 | (level (save-match-data (funcall outline-level))) | 365 | (level (save-match-data (funcall outline-level))) |
| 366 | (up-head (or (cdr (assoc head outline-level-headings)) | 366 | (up-head (or (cdr (assoc head outline-level-heading)) |
| 367 | (cdr (assoc (1- level) outline-level-headings)) | 367 | (cdr (assoc (1- level) outline-level-heading)) |
| 368 | (save-excursion | 368 | (save-excursion |
| 369 | (save-match-data | 369 | (save-match-data |
| 370 | (outline-up-heading 1 t) | 370 | (outline-up-heading 1 t) |
| 371 | (match-string 0)))))) | 371 | (match-string 0)))))) |
| 372 | 372 | ||
| 373 | (unless (assoc level outline-level-headings) | 373 | (unless (assoc level outline-level-heading) |
| 374 | (push (cons level head) outline-level-headings)) | 374 | (push (cons level head) outline-level-heading)) |
| 375 | 375 | ||
| 376 | (replace-match up-head nil t) | 376 | (replace-match up-head nil t) |
| 377 | (when children | 377 | (when children |
| @@ -385,9 +385,9 @@ If prefix argument CHILDREN is given, demote also all the children." | |||
| 385 | (let* ((head (match-string 0)) | 385 | (let* ((head (match-string 0)) |
| 386 | (level (save-match-data (funcall outline-level))) | 386 | (level (save-match-data (funcall outline-level))) |
| 387 | (down-head | 387 | (down-head |
| 388 | (or (let ((x (car (rassoc head outline-level-headings)))) | 388 | (or (let ((x (car (rassoc head outline-level-heading)))) |
| 389 | (if (stringp x) x)) | 389 | (if (stringp x) x)) |
| 390 | (cdr (assoc (1+ level) outline-level-headings)) | 390 | (cdr (assoc (1+ level) outline-level-heading)) |
| 391 | (save-excursion | 391 | (save-excursion |
| 392 | (save-match-data | 392 | (save-match-data |
| 393 | (while (and (not (eobp)) | 393 | (while (and (not (eobp)) |
| @@ -412,8 +412,8 @@ If prefix argument CHILDREN is given, demote also all the children." | |||
| 412 | ;; Didn't work: keep it as is so it's still a heading. | 412 | ;; Didn't work: keep it as is so it's still a heading. |
| 413 | head)))))) | 413 | head)))))) |
| 414 | 414 | ||
| 415 | (unless (assoc level outline-level-headings) | 415 | (unless (assoc level outline-level-heading) |
| 416 | (push (cons level head) outline-level-headings)) | 416 | (push (cons level head) outline-level-heading)) |
| 417 | 417 | ||
| 418 | (replace-match down-head nil t) | 418 | (replace-match down-head nil t) |
| 419 | (when children | 419 | (when children |