diff options
| author | Gerd Moellmann | 2001-10-11 19:29:47 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-10-11 19:29:47 +0000 |
| commit | adb6f9dc927d210c59f7f2f165b672f46eb09c2e (patch) | |
| tree | 384be64a30a5fb1ad5cfcb0126985342d0ae43b8 | |
| parent | abeadfeeb5ea684faca004ed8aee49763d12518c (diff) | |
| download | emacs-adb6f9dc927d210c59f7f2f165b672f46eb09c2e.tar.gz emacs-adb6f9dc927d210c59f7f2f165b672f46eb09c2e.zip | |
Master-mode.
| -rw-r--r-- | etc/NEWS | 20 |
1 files changed, 20 insertions, 0 deletions
| @@ -39,6 +39,26 @@ in case it has been renamed. | |||
| 39 | change the `fill-column', `window-margins' and `tab-stop-list' | 39 | change the `fill-column', `window-margins' and `tab-stop-list' |
| 40 | settings. | 40 | settings. |
| 41 | 41 | ||
| 42 | *** master-mode.el implements a minor mode for scrolling a slave | ||
| 43 | buffer without leaving your current buffer, the master buffer. | ||
| 44 | |||
| 45 | It can be used by sql.el, for example: the SQL buffer is the master | ||
| 46 | and its SQLi buffer is the slave. This allows you to scroll the SQLi | ||
| 47 | buffer containing the output from the SQL buffer containing the | ||
| 48 | commands. | ||
| 49 | |||
| 50 | This is how to use sql.el and master.el together: the variable | ||
| 51 | sql-buffer contains the slave buffer. It is a local variable in the | ||
| 52 | SQL buffer. | ||
| 53 | |||
| 54 | (add-hook 'sql-mode-hook | ||
| 55 | (function (lambda () | ||
| 56 | (master-mode t) | ||
| 57 | (master-set-slave sql-buffer)))) | ||
| 58 | (add-hook 'sql-set-sqli-hook | ||
| 59 | (function (lambda () | ||
| 60 | (master-set-slave sql-buffer)))) | ||
| 61 | |||
| 42 | 62 | ||
| 43 | * Lisp Changes in Emacs 21.2 | 63 | * Lisp Changes in Emacs 21.2 |
| 44 | 64 | ||