diff options
| -rw-r--r-- | doc/emacs/buffers.texi | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/doc/emacs/buffers.texi b/doc/emacs/buffers.texi index 8a8584689fc..a1ad4926be7 100644 --- a/doc/emacs/buffers.texi +++ b/doc/emacs/buffers.texi | |||
| @@ -616,10 +616,11 @@ select it in another window (@code{clone-indirect-buffer-other-window}). | |||
| 616 | 616 | ||
| 617 | The text of the indirect buffer is always identical to the text of its | 617 | The text of the indirect buffer is always identical to the text of its |
| 618 | base buffer; changes made by editing either one are visible immediately | 618 | base buffer; changes made by editing either one are visible immediately |
| 619 | in the other. But in all other respects, the indirect buffer and its | 619 | in the other. ``Text'' here includes both the characters and their text |
| 620 | properties. But in all other respects, the indirect buffer and its | ||
| 620 | base buffer are completely separate. They can have different names, | 621 | base buffer are completely separate. They can have different names, |
| 621 | different values of point, different narrowing, different markers, | 622 | different values of point, different narrowing, different markers, |
| 622 | different major modes, and different local variables. | 623 | different overlays, different major modes, and different local variables. |
| 623 | 624 | ||
| 624 | An indirect buffer cannot visit a file, but its base buffer can. If | 625 | An indirect buffer cannot visit a file, but its base buffer can. If |
| 625 | you try to save the indirect buffer, that actually works by saving the | 626 | you try to save the indirect buffer, that actually works by saving the |
| @@ -645,6 +646,14 @@ buffer in another window. These functions run the hook | |||
| 645 | named @var{indirect-name} from a buffer @var{base-buffer}, prompting for | 646 | named @var{indirect-name} from a buffer @var{base-buffer}, prompting for |
| 646 | both using the minibuffer. | 647 | both using the minibuffer. |
| 647 | 648 | ||
| 649 | Note: When a modification is made to the text of a buffer, the | ||
| 650 | modification hooks are run only in the base buffer, because most of | ||
| 651 | the functions on those hooks are not prepared to work correctly in | ||
| 652 | indirect buffers. So if you need a modification hook function in an | ||
| 653 | indirect buffer, you need to manually add that function to the hook | ||
| 654 | @emph{in the base buffer} and then make the function operate in the | ||
| 655 | desired indirect buffer. | ||
| 656 | |||
| 648 | @node Buffer Convenience | 657 | @node Buffer Convenience |
| 649 | @section Convenience Features and Customization of Buffer Handling | 658 | @section Convenience Features and Customization of Buffer Handling |
| 650 | 659 | ||