Mercurial > emacs
comparison lisp/allout.el @ 49962:13d146080936
(allout-pre-command-business): Fix docstring.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Mon, 24 Feb 2003 17:23:38 +0000 |
parents | 37645a051842 |
children | 76b62bb3c715 |
comparison
equal
deleted
inserted
replaced
49961:64f6bc336d1b | 49962:13d146080936 |
---|---|
3 ;; Copyright (C) 1992, 1993, 1994, 2001, 2002 Free Software Foundation, Inc. | 3 ;; Copyright (C) 1992, 1993, 1994, 2001, 2002 Free Software Foundation, Inc. |
4 | 4 |
5 ;; Author: Ken Manheimer <klm@python.org> | 5 ;; Author: Ken Manheimer <klm@python.org> |
6 ;; Maintainer: Ken Manheimer <klm@python.org> | 6 ;; Maintainer: Ken Manheimer <klm@python.org> |
7 ;; Created: Dec 1991 - first release to usenet | 7 ;; Created: Dec 1991 - first release to usenet |
8 ;; Version: $Id: allout.el,v 1.38 2002/12/16 01:00:51 rost Exp $|| | 8 ;; Version: $Id: allout.el,v 1.39 2003/02/04 11:00:03 lektu Exp $|| |
9 ;; Keywords: outlines mode wp languages | 9 ;; Keywords: outlines mode wp languages |
10 | 10 |
11 ;; This file is part of GNU Emacs. | 11 ;; This file is part of GNU Emacs. |
12 | 12 |
13 ;; GNU Emacs is free software; you can redistribute it and/or modify | 13 ;; GNU Emacs is free software; you can redistribute it and/or modify |
506 | 506 |
507 ;;;_ #1 Internal Outline Formatting and Configuration | 507 ;;;_ #1 Internal Outline Formatting and Configuration |
508 ;;;_ : Version | 508 ;;;_ : Version |
509 ;;;_ = allout-version | 509 ;;;_ = allout-version |
510 (defvar allout-version | 510 (defvar allout-version |
511 (let ((rcs-rev "$Revision: 1.38 $")) | 511 (let ((rcs-rev "$Revision: 1.39 $")) |
512 (condition-case err | 512 (condition-case err |
513 (save-match-data | 513 (save-match-data |
514 (string-match "Revision: \\([0-9]+\\.[0-9]+\\)" rcs-rev) | 514 (string-match "Revision: \\([0-9]+\\.[0-9]+\\)" rcs-rev) |
515 (substring rcs-rev (match-beginning 1) (match-end 1))) | 515 (substring rcs-rev (match-beginning 1) (match-end 1))) |
516 ('error rcs-rev))) | 516 ('error rcs-rev))) |
2329 (setq allout-post-goto-bullet nil))) | 2329 (setq allout-post-goto-bullet nil))) |
2330 )) | 2330 )) |
2331 ;;;_ > allout-pre-command-business () | 2331 ;;;_ > allout-pre-command-business () |
2332 (defun allout-pre-command-business () | 2332 (defun allout-pre-command-business () |
2333 "Outline `pre-command-hook' function for outline buffers. | 2333 "Outline `pre-command-hook' function for outline buffers. |
2334 Implements special behavior when cursor is on bullet char. | 2334 Implements special behavior when cursor is on bullet character. |
2335 | 2335 |
2336 Self-insert characters are reinterpreted control-character references | 2336 When the cursor is on the bullet character, self-insert characters are |
2337 into the `allout-mode-map'. The `allout-mode' `post-command-hook' will | 2337 reinterpreted as the corresponding control-character in the |
2338 position a cursor that has moved as a result of such reinterpretation, | 2338 `allout-mode-map'. The `allout-mode' `post-command-hook' insures that |
2339 on the destination topic's bullet, when the cursor wound up in the | 2339 the cursor which has moved as a result of such reinterpretation is |
2340 positioned on the bullet character of the destination topic. | |
2340 | 2341 |
2341 The upshot is that you can get easy, single (ie, unmodified) key | 2342 The upshot is that you can get easy, single (ie, unmodified) key |
2342 outline maneuvering operations by positioning the cursor on the bullet | 2343 outline maneuvering operations by positioning the cursor on the bullet |
2343 char. You stay in this mode until you use some regular | 2344 char. When in this mode you can use regular cursor-positioning |
2344 cursor-positioning command to relocate the cursor off of a bullet | 2345 command/keystrokes to relocate the cursor off of a bullet character to |
2345 char." | 2346 return to regular interpretation of self-insert characters." |
2346 | |
2347 (if (not (allout-mode-p)) | 2347 (if (not (allout-mode-p)) |
2348 ;; Shouldn't be invoked if not in allout allout-mode, but just in case: | 2348 ;; Shouldn't be invoked if not in allout allout-mode, but just in case: |
2349 nil | 2349 nil |
2350 ;; Register isearch status: | 2350 ;; Register isearch status: |
2351 (if (and (boundp 'isearch-mode) isearch-mode) | 2351 (if (and (boundp 'isearch-mode) isearch-mode) |