aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1995-01-31 01:26:09 +0000
committerKarl Heuer1995-01-31 01:26:09 +0000
commit950c215d92e111b1a6e43c06824f68737c8f5a6e (patch)
tree5e44d03c9a7015685ae9bb20a2b6efad2a8c3c22 /src
parent7403b5c85eb1e38cb6354e4fb3ca5ae257b1759f (diff)
downloademacs-950c215d92e111b1a6e43c06824f68737c8f5a6e.tar.gz
emacs-950c215d92e111b1a6e43c06824f68737c8f5a6e.zip
(defvar_display): New function.
Diffstat (limited to 'src')
-rw-r--r--src/lread.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/lread.c b/src/lread.c
index d19c15787a4..ad8ba2a9838 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -1817,7 +1817,7 @@ defalias (sname, string)
1817 1817
1818/* Define an "integer variable"; a symbol whose value is forwarded 1818/* Define an "integer variable"; a symbol whose value is forwarded
1819 to a C variable of type int. Sample call: */ 1819 to a C variable of type int. Sample call: */
1820 /* DEFVARINT ("indent-tabs-mode", &indent_tabs_mode, "Documentation"); */ 1820 /* DEFVAR_INT ("indent-tabs-mode", &indent_tabs_mode, "Documentation"); */
1821void 1821void
1822defvar_int (namestring, address) 1822defvar_int (namestring, address)
1823 char *namestring; 1823 char *namestring;
@@ -1906,6 +1906,22 @@ defvar_per_buffer (namestring, address, type, doc)
1906} 1906}
1907 1907
1908#endif /* standalone */ 1908#endif /* standalone */
1909
1910/* Similar but define a variable whose value is the Lisp Object stored
1911 at a particular offset in the current perdisplay object. */
1912
1913void
1914defvar_display (namestring, offset)
1915 char *namestring;
1916 int offset;
1917{
1918 Lisp_Object sym, val;
1919 sym = intern (namestring);
1920 val = allocate_misc ();
1921 XMISC (val)->type = Lisp_Misc_Display_Objfwd;
1922 XDISPLAY_OBJFWD (val)->offset = offset;
1923 XSYMBOL (sym)->value = val;
1924}
1909 1925
1910init_lread () 1926init_lread ()
1911{ 1927{