comparison src/gutter.c @ 563:183866b06e0b

[xemacs-hg @ 2001-05-24 07:50:48 by ben] Makefile.in.in, abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, casetab.c, chartab.c, cmdloop.c, cmds.c, console-msw.c, console-msw.h, console-stream.c, console-tty.c, console-x.c, console.c, data.c, database.c, debug.c, device-gtk.c, device-msw.c, device-tty.c, device-x.c, device.c, dialog-gtk.c, dialog-msw.c, dialog-x.c, dialog.c, dired-msw.c, dired.c, doc.c, doprnt.c, dragdrop.c, editfns.c, eldap.c, eldap.h, elhash.c, emacs-widget-accessors.c, emacs.c, emodules.c, esd.c, eval.c, event-Xt.c, event-gtk.c, event-msw.c, event-stream.c, events.c, extents.c, faces.c, file-coding.c, fileio.c, filelock.c, floatfns.c, fns.c, font-lock.c, frame-gtk.c, frame-x.c, frame.c, general-slots.h, glade.c, glyphs-gtk.c, glyphs-msw.c, glyphs-widget.c, glyphs-x.c, glyphs.c, glyphs.h, gpmevent.c, gui-gtk.c, gui-x.c, gui.c, gutter.c, hpplay.c, indent.c, input-method-xlib.c, insdel.c, intl.c, keymap.c, libsst.c, libsst.h, linuxplay.c, lisp.h, lread.c, lstream.c, lstream.h, macros.c, marker.c, md5.c, menubar-gtk.c, menubar-msw.c, menubar-x.c, menubar.c, minibuf.c, miscplay.c, miscplay.h, mule-ccl.c, mule-charset.c, mule-wnnfns.c, mule.c, nas.c, ntplay.c, ntproc.c, objects-gtk.c, objects-msw.c, objects-x.c, objects.c, postgresql.c, print.c, process-nt.c, process-unix.c, process.c, ralloc.c, rangetab.c, redisplay.c, scrollbar.c, search.c, select-gtk.c, select-x.c, select.c, sgiplay.c, sheap.c, sound.c, specifier.c, sunplay.c, symbols.c, symeval.h, symsinit.h, syntax.c, sysdep.c, toolbar-msw.c, toolbar.c, tooltalk.c, ui-byhand.c, ui-gtk.c, undo.c, unexaix.c, unexapollo.c, unexconvex.c, unexec.c, widget.c, win32.c, window.c: -- defsymbol -> DEFSYMBOL. -- add an error type to all errors. -- eliminate the error functions in eval.c that let you just use Qerror as the type. -- redo the error API to be more consistent, sensibly named, and easier to use. -- redo the error hierarchy somewhat. create new errors: structure-formation-error, gui-error, invalid-constant, stack-overflow, out-of-memory, process-error, network-error, sound-error, printing-unreadable-object, base64-conversion- error; coding-system-error renamed to text-conversion error; some others. -- fix Mule problems in error strings in emodules.c, tooltalk.c. -- fix error handling in mswin open-network-stream. -- Mule-ize all sound files and clean up the headers. -- nativesound.h -> sound.h and used for all sound files. -- move some shared stuff into glyphs-shared.c: first attempt at eliminating some of the massive GTK code duplication. xemacs.mak: add glyphs-shared.c. xemacs-faq.texi: document how to debug X errors subr.el: fix doc string to reflect reality
author ben
date Thu, 24 May 2001 07:51:33 +0000
parents 0784d089fdc9
children af57a77cbc92
comparison
equal deleted inserted replaced
562:c775bd016b32 563:183866b06e0b
723 { 723 {
724 if (EQ (position, Qtop)) return TOP_GUTTER; 724 if (EQ (position, Qtop)) return TOP_GUTTER;
725 if (EQ (position, Qbottom)) return BOTTOM_GUTTER; 725 if (EQ (position, Qbottom)) return BOTTOM_GUTTER;
726 if (EQ (position, Qleft)) return LEFT_GUTTER; 726 if (EQ (position, Qleft)) return LEFT_GUTTER;
727 if (EQ (position, Qright)) return RIGHT_GUTTER; 727 if (EQ (position, Qright)) return RIGHT_GUTTER;
728 signal_simple_error ("Invalid gutter position", position); 728 invalid_constant ("Invalid gutter position", position);
729 729
730 return TOP_GUTTER; /* not reached */ 730 return TOP_GUTTER; /* not reached */
731 } 731 }
732 732
733 DEFUN ("set-default-gutter-position", Fset_default_gutter_position, 1, 1, 0, /* 733 DEFUN ("set-default-gutter-position", Fset_default_gutter_position, 1, 1, 0, /*
836 if (NILP (instantiator)) 836 if (NILP (instantiator))
837 return; 837 return;
838 838
839 /* Must be a string or a plist. */ 839 /* Must be a string or a plist. */
840 if (!STRINGP (instantiator) && NILP (Fvalid_plist_p (instantiator))) 840 if (!STRINGP (instantiator) && NILP (Fvalid_plist_p (instantiator)))
841 signal_simple_error ("Gutter spec must be string, plist or nil", instantiator); 841 sferror ("Gutter spec must be string, plist or nil", instantiator);
842 842
843 if (!STRINGP (instantiator)) 843 if (!STRINGP (instantiator))
844 { 844 {
845 Lisp_Object rest; 845 Lisp_Object rest;
846 846
847 for (rest = instantiator; !NILP (rest); rest = XCDR (XCDR (rest))) 847 for (rest = instantiator; !NILP (rest); rest = XCDR (XCDR (rest)))
848 { 848 {
849 if (!SYMBOLP (XCAR (rest)) 849 if (!SYMBOLP (XCAR (rest))
850 || !STRINGP (XCAR (XCDR (rest)))) 850 || !STRINGP (XCAR (XCDR (rest))))
851 signal_simple_error ("Gutter plist spec must contain strings", instantiator); 851 sferror ("Gutter plist spec must contain strings", instantiator);
852 } 852 }
853 } 853 }
854 } 854 }
855 855
856 DEFUN ("gutter-specifier-p", Fgutter_specifier_p, 1, 1, 0, /* 856 DEFUN ("gutter-specifier-p", Fgutter_specifier_p, 1, 1, 0, /*
985 { 985 {
986 if (NILP (instantiator)) 986 if (NILP (instantiator))
987 return; 987 return;
988 988
989 if (!INTP (instantiator) && !EQ (instantiator, Qautodetect)) 989 if (!INTP (instantiator) && !EQ (instantiator, Qautodetect))
990 signal_simple_error ("Gutter size must be an integer or 'autodetect", instantiator); 990 invalid_argument ("Gutter size must be an integer or 'autodetect", instantiator);
991 } 991 }
992 992
993 DEFUN ("gutter-size-specifier-p", Fgutter_size_specifier_p, 1, 1, 0, /* 993 DEFUN ("gutter-size-specifier-p", Fgutter_size_specifier_p, 1, 1, 0, /*
994 Return non-nil if OBJECT is a gutter-size specifier. 994 Return non-nil if OBJECT is a gutter-size specifier.
995 995
1010 { 1010 {
1011 if (NILP (instantiator)) 1011 if (NILP (instantiator))
1012 return; 1012 return;
1013 1013
1014 if (!NILP (instantiator) && !EQ (instantiator, Qt) && !CONSP (instantiator)) 1014 if (!NILP (instantiator) && !EQ (instantiator, Qt) && !CONSP (instantiator))
1015 signal_simple_error ("Gutter visibility must be a boolean or list of symbols", 1015 invalid_argument ("Gutter visibility must be a boolean or list of symbols",
1016 instantiator); 1016 instantiator);
1017 1017
1018 if (CONSP (instantiator)) 1018 if (CONSP (instantiator))
1019 { 1019 {
1020 Lisp_Object rest; 1020 Lisp_Object rest;
1021 1021
1022 EXTERNAL_LIST_LOOP (rest, instantiator) 1022 EXTERNAL_LIST_LOOP (rest, instantiator)
1023 { 1023 {
1024 if (!SYMBOLP (XCAR (rest))) 1024 if (!SYMBOLP (XCAR (rest)))
1025 signal_simple_error ("Gutter visibility must be a boolean or list of symbols", 1025 invalid_argument ("Gutter visibility must be a boolean or list of symbols",
1026 instantiator); 1026 instantiator);
1027 } 1027 }
1028 } 1028 }
1029 } 1029 }
1030 1030
1134 DEFSUBR (Fdefault_gutter_position); 1134 DEFSUBR (Fdefault_gutter_position);
1135 DEFSUBR (Fgutter_pixel_height); 1135 DEFSUBR (Fgutter_pixel_height);
1136 DEFSUBR (Fgutter_pixel_width); 1136 DEFSUBR (Fgutter_pixel_width);
1137 DEFSUBR (Fredisplay_gutter_area); 1137 DEFSUBR (Fredisplay_gutter_area);
1138 1138
1139 defsymbol (&Qgutter_size, "gutter-size"); 1139 DEFSYMBOL (Qgutter_size);
1140 defsymbol (&Qgutter_visible, "gutter-visible"); 1140 DEFSYMBOL (Qgutter_visible);
1141 defsymbol (&Qdefault_gutter_position_changed_hook, 1141 DEFSYMBOL (Qdefault_gutter_position_changed_hook);
1142 "default-gutter-position-changed-hook");
1143 } 1142 }
1144 1143
1145 void 1144 void
1146 vars_of_gutter (void) 1145 vars_of_gutter (void)
1147 { 1146 {