diff options
Diffstat (limited to 'src/data.c')
| -rw-r--r-- | src/data.c | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/src/data.c b/src/data.c index c96841aebbf..7bc080fdf84 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -1647,8 +1647,10 @@ The function `default-value' gets the default value and `set-default' sets it. | |||
| 1647 | Lisp_Object symbol; | 1647 | Lisp_Object symbol; |
| 1648 | XSETSYMBOL (symbol, sym); /* In case `variable' is aliased. */ | 1648 | XSETSYMBOL (symbol, sym); /* In case `variable' is aliased. */ |
| 1649 | if (let_shadows_global_binding_p (symbol)) | 1649 | if (let_shadows_global_binding_p (symbol)) |
| 1650 | message ("Making %s buffer-local while let-bound!", | 1650 | { |
| 1651 | SDATA (SYMBOL_NAME (variable))); | 1651 | AUTO_STRING (format, "Making %s buffer-local while let-bound!"); |
| 1652 | CALLN (Fmessage, format, SYMBOL_NAME (variable)); | ||
| 1653 | } | ||
| 1652 | } | 1654 | } |
| 1653 | } | 1655 | } |
| 1654 | 1656 | ||
| @@ -1730,9 +1732,11 @@ Instead, use `add-hook' and specify t for the LOCAL argument. */) | |||
| 1730 | Lisp_Object symbol; | 1732 | Lisp_Object symbol; |
| 1731 | XSETSYMBOL (symbol, sym); /* In case `variable' is aliased. */ | 1733 | XSETSYMBOL (symbol, sym); /* In case `variable' is aliased. */ |
| 1732 | if (let_shadows_global_binding_p (symbol)) | 1734 | if (let_shadows_global_binding_p (symbol)) |
| 1733 | message ("Making %s local to %s while let-bound!", | 1735 | { |
| 1734 | SDATA (SYMBOL_NAME (variable)), | 1736 | AUTO_STRING (format, "Making %s local to %s while let-bound!"); |
| 1735 | SDATA (BVAR (current_buffer, name))); | 1737 | CALLN (Fmessage, format, SYMBOL_NAME (variable), |
| 1738 | BVAR (current_buffer, name)); | ||
| 1739 | } | ||
| 1736 | } | 1740 | } |
| 1737 | } | 1741 | } |
| 1738 | 1742 | ||
| @@ -1742,8 +1746,11 @@ Instead, use `add-hook' and specify t for the LOCAL argument. */) | |||
| 1742 | if (NILP (tem)) | 1746 | if (NILP (tem)) |
| 1743 | { | 1747 | { |
| 1744 | if (let_shadows_buffer_binding_p (sym)) | 1748 | if (let_shadows_buffer_binding_p (sym)) |
| 1745 | message ("Making %s buffer-local while locally let-bound!", | 1749 | { |
| 1746 | SDATA (SYMBOL_NAME (variable))); | 1750 | AUTO_STRING (format, |
| 1751 | "Making %s buffer-local while locally let-bound!"); | ||
| 1752 | CALLN (Fmessage, format, SYMBOL_NAME (variable)); | ||
| 1753 | } | ||
| 1747 | 1754 | ||
| 1748 | /* Swap out any local binding for some other buffer, and make | 1755 | /* Swap out any local binding for some other buffer, and make |
| 1749 | sure the current value is permanently recorded, if it's the | 1756 | sure the current value is permanently recorded, if it's the |
| @@ -1908,8 +1915,10 @@ frame-local bindings). */) | |||
| 1908 | Lisp_Object symbol; | 1915 | Lisp_Object symbol; |
| 1909 | XSETSYMBOL (symbol, sym); /* In case `variable' is aliased. */ | 1916 | XSETSYMBOL (symbol, sym); /* In case `variable' is aliased. */ |
| 1910 | if (let_shadows_global_binding_p (symbol)) | 1917 | if (let_shadows_global_binding_p (symbol)) |
| 1911 | message ("Making %s frame-local while let-bound!", | 1918 | { |
| 1912 | SDATA (SYMBOL_NAME (variable))); | 1919 | AUTO_STRING (format, "Making %s frame-local while let-bound!"); |
| 1920 | CALLN (Fmessage, format, SYMBOL_NAME (variable)); | ||
| 1921 | } | ||
| 1913 | } | 1922 | } |
| 1914 | return variable; | 1923 | return variable; |
| 1915 | } | 1924 | } |