diff options
| author | Lars Ingebrigtsen | 2016-04-29 14:36:23 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2016-04-29 14:37:56 +0200 |
| commit | e4c26271f2c2fe08f8490e25c63a436ab2a804ca (patch) | |
| tree | 1ef18917f1c4b0ce31a4c87bda49ced3dd579243 /doc/lispref | |
| parent | fafdfcb1fa629d659bb97986f8e748d75b97cad6 (diff) | |
| download | emacs-e4c26271f2c2fe08f8490e25c63a436ab2a804ca.tar.gz emacs-e4c26271f2c2fe08f8490e25c63a436ab2a804ca.zip | |
Change all occurrences of "Mouse-[0-9]" to "mouse-[0-9]"
* doc/emacs/*.texi: Change all occurrences of "Mouse-[0-9]" to
"mouse-[0-9]". These are case sensitive, and the keys are lower case
(bug#14554).
Diffstat (limited to 'doc/lispref')
| -rw-r--r-- | doc/lispref/display.texi | 4 | ||||
| -rw-r--r-- | doc/lispref/text.texi | 42 |
2 files changed, 23 insertions, 23 deletions
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index 3cd1d4edf1c..260778806d4 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi | |||
| @@ -5983,7 +5983,7 @@ A string displayed by the Emacs tool-tip help system; by default, | |||
| 5983 | 5983 | ||
| 5984 | @item follow-link | 5984 | @item follow-link |
| 5985 | @kindex follow-link @r{(button property)} | 5985 | @kindex follow-link @r{(button property)} |
| 5986 | The follow-link property, defining how a @key{Mouse-1} click behaves | 5986 | The follow-link property, defining how a @key{mouse-1} click behaves |
| 5987 | on this button, @xref{Clickable Text}. | 5987 | on this button, @xref{Clickable Text}. |
| 5988 | 5988 | ||
| 5989 | @item button | 5989 | @item button |
| @@ -6170,7 +6170,7 @@ additionally available in the keymap stored in | |||
| 6170 | @code{button-buffer-map} as a parent keymap for its keymap. | 6170 | @code{button-buffer-map} as a parent keymap for its keymap. |
| 6171 | 6171 | ||
| 6172 | If the button has a non-@code{nil} @code{follow-link} property, and | 6172 | If the button has a non-@code{nil} @code{follow-link} property, and |
| 6173 | @code{mouse-1-click-follows-link} is set, a quick @key{Mouse-1} click | 6173 | @code{mouse-1-click-follows-link} is set, a quick @key{mouse-1} click |
| 6174 | will also activate the @code{push-button} command. | 6174 | will also activate the @code{push-button} command. |
| 6175 | @xref{Clickable Text}. | 6175 | @xref{Clickable Text}. |
| 6176 | 6176 | ||
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index 991b47d20b4..0323678b8f2 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi | |||
| @@ -3784,7 +3784,7 @@ properties. For simplicity, we will refer to the clickable text as a | |||
| 3784 | 3784 | ||
| 3785 | Implementing a link involves three separate steps: (1) indicating | 3785 | Implementing a link involves three separate steps: (1) indicating |
| 3786 | clickability when the mouse moves over the link; (2) making @key{RET} | 3786 | clickability when the mouse moves over the link; (2) making @key{RET} |
| 3787 | or @kbd{Mouse-2} on that link do something; and (3) setting up a | 3787 | or @kbd{mouse-2} on that link do something; and (3) setting up a |
| 3788 | @code{follow-link} condition so that the link obeys | 3788 | @code{follow-link} condition so that the link obeys |
| 3789 | @code{mouse-1-click-follows-link}. | 3789 | @code{mouse-1-click-follows-link}. |
| 3790 | 3790 | ||
| @@ -3806,10 +3806,10 @@ names are clickable: | |||
| 3806 | help-echo "mouse-2: visit this file in other window"))) | 3806 | help-echo "mouse-2: visit this file in other window"))) |
| 3807 | @end smallexample | 3807 | @end smallexample |
| 3808 | 3808 | ||
| 3809 | To make the link clickable, bind @key{RET} and @kbd{Mouse-2} to | 3809 | To make the link clickable, bind @key{RET} and @kbd{mouse-2} to |
| 3810 | commands that perform the desired action. Each command should check | 3810 | commands that perform the desired action. Each command should check |
| 3811 | to see whether it was called on a link, and act accordingly. For | 3811 | to see whether it was called on a link, and act accordingly. For |
| 3812 | instance, Dired's major mode keymap binds @kbd{Mouse-2} to the | 3812 | instance, Dired's major mode keymap binds @kbd{mouse-2} to the |
| 3813 | following command: | 3813 | following command: |
| 3814 | 3814 | ||
| 3815 | @smallexample | 3815 | @smallexample |
| @@ -3852,12 +3852,12 @@ bind it within the link text, using the @code{keymap} text property | |||
| 3852 | @noindent | 3852 | @noindent |
| 3853 | With this method, you can easily define different commands for | 3853 | With this method, you can easily define different commands for |
| 3854 | different links. Furthermore, the global definition of @key{RET} and | 3854 | different links. Furthermore, the global definition of @key{RET} and |
| 3855 | @kbd{Mouse-2} remain available for the rest of the text in the buffer. | 3855 | @kbd{mouse-2} remain available for the rest of the text in the buffer. |
| 3856 | 3856 | ||
| 3857 | @vindex mouse-1-click-follows-link | 3857 | @vindex mouse-1-click-follows-link |
| 3858 | The basic Emacs command for clicking on links is @kbd{Mouse-2}. | 3858 | The basic Emacs command for clicking on links is @kbd{mouse-2}. |
| 3859 | However, for compatibility with other graphical applications, Emacs | 3859 | However, for compatibility with other graphical applications, Emacs |
| 3860 | also recognizes @kbd{Mouse-1} clicks on links, provided the user | 3860 | also recognizes @kbd{mouse-1} clicks on links, provided the user |
| 3861 | clicks on the link quickly without moving the mouse. This behavior is | 3861 | clicks on the link quickly without moving the mouse. This behavior is |
| 3862 | controlled by the user option @code{mouse-1-click-follows-link}. | 3862 | controlled by the user option @code{mouse-1-click-follows-link}. |
| 3863 | @xref{Mouse References,,, emacs, The GNU Emacs Manual}. | 3863 | @xref{Mouse References,,, emacs, The GNU Emacs Manual}. |
| @@ -3871,9 +3871,9 @@ mode keymap or a local keymap specified via the @code{keymap} text | |||
| 3871 | property). The value of the @code{follow-link} property, or the | 3871 | property). The value of the @code{follow-link} property, or the |
| 3872 | binding for the @code{follow-link} event, acts as a condition for | 3872 | binding for the @code{follow-link} event, acts as a condition for |
| 3873 | the link action. This condition tells Emacs two things: the | 3873 | the link action. This condition tells Emacs two things: the |
| 3874 | circumstances under which a @kbd{Mouse-1} click should be regarded as | 3874 | circumstances under which a @kbd{mouse-1} click should be regarded as |
| 3875 | occurring inside the link, and how to compute an action code | 3875 | occurring inside the link, and how to compute an action code |
| 3876 | that says what to translate the @kbd{Mouse-1} click into. The link | 3876 | that says what to translate the @kbd{mouse-1} click into. The link |
| 3877 | action condition can be one of the following: | 3877 | action condition can be one of the following: |
| 3878 | 3878 | ||
| 3879 | @table @asis | 3879 | @table @asis |
| @@ -3882,7 +3882,7 @@ If the condition is the symbol @code{mouse-face}, a position is inside | |||
| 3882 | a link if there is a non-@code{nil} @code{mouse-face} property at that | 3882 | a link if there is a non-@code{nil} @code{mouse-face} property at that |
| 3883 | position. The action code is always @code{t}. | 3883 | position. The action code is always @code{t}. |
| 3884 | 3884 | ||
| 3885 | For example, here is how Info mode handles @key{Mouse-1}: | 3885 | For example, here is how Info mode handles @key{mouse-1}: |
| 3886 | 3886 | ||
| 3887 | @smallexample | 3887 | @smallexample |
| 3888 | (define-key Info-mode-map [follow-link] 'mouse-face) | 3888 | (define-key Info-mode-map [follow-link] 'mouse-face) |
| @@ -3894,7 +3894,7 @@ is inside a link if @code{(@var{func} @var{pos})} evaluates to | |||
| 3894 | non-@code{nil}. The value returned by @var{func} serves as the action | 3894 | non-@code{nil}. The value returned by @var{func} serves as the action |
| 3895 | code. | 3895 | code. |
| 3896 | 3896 | ||
| 3897 | For example, here is how pcvs enables @kbd{Mouse-1} to follow links on | 3897 | For example, here is how pcvs enables @kbd{mouse-1} to follow links on |
| 3898 | file names only: | 3898 | file names only: |
| 3899 | 3899 | ||
| 3900 | @smallexample | 3900 | @smallexample |
| @@ -3912,27 +3912,27 @@ to the entire buffer). | |||
| 3912 | @end table | 3912 | @end table |
| 3913 | 3913 | ||
| 3914 | @noindent | 3914 | @noindent |
| 3915 | The action code tells @kbd{Mouse-1} how to follow the link: | 3915 | The action code tells @kbd{mouse-1} how to follow the link: |
| 3916 | 3916 | ||
| 3917 | @table @asis | 3917 | @table @asis |
| 3918 | @item a string or vector | 3918 | @item a string or vector |
| 3919 | If the action code is a string or vector, the @kbd{Mouse-1} event is | 3919 | If the action code is a string or vector, the @kbd{mouse-1} event is |
| 3920 | translated into the first element of the string or vector; i.e., the | 3920 | translated into the first element of the string or vector; i.e., the |
| 3921 | action of the @kbd{Mouse-1} click is the local or global binding of | 3921 | action of the @kbd{mouse-1} click is the local or global binding of |
| 3922 | that character or symbol. Thus, if the action code is @code{"foo"}, | 3922 | that character or symbol. Thus, if the action code is @code{"foo"}, |
| 3923 | @kbd{Mouse-1} translates into @kbd{f}. If it is @code{[foo]}, | 3923 | @kbd{mouse-1} translates into @kbd{f}. If it is @code{[foo]}, |
| 3924 | @kbd{Mouse-1} translates into @key{foo}. | 3924 | @kbd{mouse-1} translates into @key{foo}. |
| 3925 | 3925 | ||
| 3926 | @item anything else | 3926 | @item anything else |
| 3927 | For any other non-@code{nil} action code, the @kbd{Mouse-1} event is | 3927 | For any other non-@code{nil} action code, the @kbd{mouse-1} event is |
| 3928 | translated into a @kbd{Mouse-2} event at the same position. | 3928 | translated into a @kbd{mouse-2} event at the same position. |
| 3929 | @end table | 3929 | @end table |
| 3930 | 3930 | ||
| 3931 | To define @kbd{Mouse-1} to activate a button defined with | 3931 | To define @kbd{mouse-1} to activate a button defined with |
| 3932 | @code{define-button-type}, give the button a @code{follow-link} | 3932 | @code{define-button-type}, give the button a @code{follow-link} |
| 3933 | property. The property value should be a link action condition, as | 3933 | property. The property value should be a link action condition, as |
| 3934 | described above. @xref{Buttons}. For example, here is how Help mode | 3934 | described above. @xref{Buttons}. For example, here is how Help mode |
| 3935 | handles @kbd{Mouse-1}: | 3935 | handles @kbd{mouse-1}: |
| 3936 | 3936 | ||
| 3937 | @smallexample | 3937 | @smallexample |
| 3938 | (define-button-type 'help-xref | 3938 | (define-button-type 'help-xref |
| @@ -3940,11 +3940,11 @@ handles @kbd{Mouse-1}: | |||
| 3940 | 'action #'help-button-action) | 3940 | 'action #'help-button-action) |
| 3941 | @end smallexample | 3941 | @end smallexample |
| 3942 | 3942 | ||
| 3943 | To define @kbd{Mouse-1} on a widget defined with | 3943 | To define @kbd{mouse-1} on a widget defined with |
| 3944 | @code{define-widget}, give the widget a @code{:follow-link} property. | 3944 | @code{define-widget}, give the widget a @code{:follow-link} property. |
| 3945 | The property value should be a link action condition, as described | 3945 | The property value should be a link action condition, as described |
| 3946 | above. For example, here is how the @code{link} widget specifies that | 3946 | above. For example, here is how the @code{link} widget specifies that |
| 3947 | a @key{Mouse-1} click shall be translated to @key{RET}: | 3947 | a @key{mouse-1} click shall be translated to @key{RET}: |
| 3948 | 3948 | ||
| 3949 | @smallexample | 3949 | @smallexample |
| 3950 | (define-widget 'link 'item | 3950 | (define-widget 'link 'item |