1. 01 May, 2018 1 commit
    • Paul Eggert's avatar
      Port --enable-gcc-warnings to GCC 8 · 65ac2778
      Paul Eggert authored
      Backport from master.
      * lib-src/emacsclient.c (fail):
      Do not dereference a null pointer.
      * src/frame.c (delete_frame):
      Add a decl with UNINIT to work around GCC bug 85563.
      * src/menu.h (finish_menu_items):
      Do not use attribute const.
      * src/regex.c (analyze_first): Use FALLTHROUGH, not a comment.
  2. 01 Jan, 2018 1 commit
  3. 13 Sep, 2017 1 commit
    • Paul Eggert's avatar
      Prefer HTTPS to FTP and HTTP in documentation · bc511a64
      Paul Eggert authored
      Most of this change is to boilerplate commentary such as license URLs.
      This change was prompted by ftp://ftp.gnu.org's going-away party,
      planned for November.  Change these FTP URLs to https://ftp.gnu.org
      instead.  Make similar changes for URLs to other organizations moving
      away from FTP.  Also, change HTTP to HTTPS for URLs to gnu.org and
      fsf.org when this works, as this will further help defend against
      man-in-the-middle attacks (for this part I omitted the MS-DOS and
      MS-Windows sources and the test tarballs to keep the workload down).
      HTTPS is not fully working to lists.gnu.org so I left those URLs alone
      for now.
  4. 01 Jan, 2017 1 commit
  5. 10 Mar, 2016 1 commit
    • Paul Eggert's avatar
      Rework C source files to avoid ^( · 7352c6c6
      Paul Eggert authored
      Work around Bug#22884 by rewording comments and strings to avoid ‘(’
      at the start of a line unless it starts a function.  This change
      is a short-term hack; in the longer run we plan to fix cc-mode’s
      performance for C files that have ‘(’ at the start of a line in a
      comment or string.
  6. 01 Jan, 2016 1 commit
  7. 21 Oct, 2015 1 commit
    • Paul Eggert's avatar
      Include-file cleanup for src directory · 63cfb75f
      Paul Eggert authored
      Omit ‘#include "foo.h"’ unless the file needs foo.h (Bug#21707).
      In a few cases, add ‘#include "foo.h"’ if the file needs foo.h
      but does not include it directly.  As a general rule, a source
      file should include foo.h if it needs the interfaces that foo.h
      * src/alloc.c: Don’t include process.h.  Include dispextern.h,
      * src/atimer.c: Don’t include blockinput.h.
      * src/buffer.c: Include coding.h, systime.h.  Don’t include
      keyboard.h, coding.h.
      * src/callint.c: Don’t include commands.h, keymap.h.
      * src/callproc.c: Don’t include character.h, ccl.h, composite.h,
      systty.h, termhooks.h.
      * src/casetab.c: Don’t include character.h.
      * src/category.c: Don’t include charset.h, keymap.h.
      * src/ccl.h: Don’t include character.h.
      * src/character.c: Don’t include charset.h.
      * src/charset.c: Don’t include disptab.h.
      * src/chartab.c: Don’t include ccl.h.
      * src/cm.c: Don’t include frame.h, termhooks.h.
      * src/cmds.c: Don’t include window.h, dispextern.h.
      * src/coding.c: Don’t include window.h, frame.h.
      * src/composite.c: Include composite.h.  Don’t include window.h,
      * src/data.c: Don’t include syssignal.h, termhooks.h, font.h.
      * src/dbusbind.c: Don’t include frame.h.
      * src/decompress.c: Don’t include character.h.
      * src/dired.c: Don’t include character.h, commands.h, charset.h.
      * src/dispnew.c: Don’t include character.h, indent.h, intervals.h,
      process.h, timespec.h.  Include systime.h.
      * src/doc.c: Include coding.h.  Don’t include keyboard.h.
      * src/editfns.c: Include composite.h.  Don’t include frame.h.
      * src/emacs.c: Include fcntl.h, coding.h.  Don’t include
      commands.h, systty.h..
      * src/fileio.c: Don’t include intervals.h, dispextern.h.
      Include composite.h.
      * src/filelock.c: Don’t include character.h, systime.h.
      * src/fns.c: Don’t include time.h, commands.h, keyboard.h,
      keymap.h, frame.h, blockinput.h, xterm.h.  Include composite.h.
      * src/font.c: Include termhooks.h.
      * src/font.h: Don’t include ccl.h, frame.h.  Add forward decls of
      struct composition_it, struct face, struct glyph_string.
      * src/fontset.c: Don’t include buffer.h, ccl.h, keyboard.h,
      intervals.h, window.h, termhooks.h.
      * src/frame.c: Don’t include character.h, commands.h, font.h.
      * src/frame.h: Don’t include dispextern.h.
      * src/fringe.c: Don’t include character.h.
      * src/ftcrfont.c: Don’t include dispextern.h, frame.h,
      character.h, charset.h, fontset.h.
      * src/ftfont.c: Don’t include frame.h, blockinput.h, coding.h,
      * src/ftxfont.c: Don’t include dispextern.h, character.h,
      charset.h, fontset.h.
      * src/gfilenotify.c: Don’t include frame.h, process.h.
      * src/gtkutil.c: Include dispextern.h, frame.h, systime.h.
      Don’t include syssignal.h, buffer.h, charset.h, font.h.
      * src/gtkutil.h: Don’t include frame.h.
      * src/image.c: Include fcntl.h and stdio.h instead of sysstdio.h.
      Don’t include character.h.
      * src/indent.c: Don’t include keyboard.h, termchar.h.
      * src/inotify.c: Don’t include character.h, frame.h.
      * src/insdel.c: Include composite.h.  Don’t include blockinput.h.
      * src/intervals.c: Don’t include character.h, keyboard.h.
      * src/intervals.h: Don’t include dispextern.h, composite.h.
      * src/keyboard.c: Don’t include sysstdio.h, disptab.h, puresize.h.
      Include coding.h.
      * src/keyboard.h: Don’t incldue systime.h.
      * src/keymap.c: Don’t include charset.h, frame.h.
      * src/lread.c: Include dispextern.h and systime.h.
      Don’t include frame.h.  Include systime.h.
      * src/macros.c: Don’t include commands.h, character.h, buffer.h.
      * src/menu.c: Include character.h, coding.h.  Don’t include
      * src/menu.h: Don’t include systime.h.
      * src/minibuf.c: Don’t include commands.h, dispextern.h, syntax.h,
      intervals.h, termhooks.h.
      * src/print.c: Include coding.h.  Don’t include keyboard.h,
      window.h, dispextern.h, termchar.h, termhooks.h, font.h.
      Add forward decl of struct terminal.
      * src/process.c: Don’t include termhooks.h, commands.h,
      dispextern.h, composite.h.
      * src/region-cache.c: Don’t include character.h.
      * src/scroll.c: Don’t include keyboard.h, window.h.
      * src/search.c: Don’t include category.h, commands.h.
      * src/sound.c: Don’t include dispextern.h.
      * src/syntax.c: Don’t include command.h, keymap.h.
      * src/sysdep.c: Don’t include window.h, dispextern.h.
      * src/systime.h: Use ‘#ifdef emacs’, not ‘#ifdef EMACS_LISP_H’,
      * src/term.c: Don’t include systty.h, intervals.h, xterm.h.
      * src/terminal.c: Include character.h.
      Don’t include charset.h, coding.h.
      * src/textprop.c: Don’t include character.h.
      * src/undo.c: Don’t include character.h, commands.h, window.h.
      * src/unexsol.c: Don’t include character.h, charset.h.
      * src/widget.c: Include widget.h.  Don’t include keyboard.h,
      window.h, dispextern.h, blockinput.h, character.h, font.h.
      * src/widgetprv.h: Don’t include widget.h.
      * src/window.c: Don’t include character.h, menu.h, intervals.h.
      * src/xdisp.c: Include composite.h, systime.h.  Don’t include
      macros.h, process.h.
      * src/xfaces.c: Don’t include charset.h, keyboard.h, termhooks.h,
      * src/xfns.c: Don’t include menu.h, character.h, intervals.h,
      epaths.h, fontset.h, systime.h, atimer.h, termchar.h.
      * src/xfont.c: Don’t include dispextern.h, fontset.h, ccl.h.
      * src/xftfont.c: Don’t include dispextern.h, character.h, fontset.h.
      * src/xgselect.c: Don’t include timespec.h, frame.h.
      Include systime.h.
      * src/xgselect.h: Don’t include time.h.
      Use a forward decl to struct timespec instead.
      * src/xmenu.c: Don’t include keymap.h, character.h, charset.h,
      dispextern.h.  Include systime.h.
      * src/xml.c: Don’t include character.h.
      * src/xrdb.c [USE_MOTIF]: Don’t include keyboard.h.
      * src/xselect.c: Don’t include dispextern.h, character.h,
      buffer.h, process.h.
      * src/xsmfns.c: Don’t include systime.h, sysselect.h.
      * src/xterm.c: Don’t include syssignal.h, charset.h, disptab.h,
      intervals.h process.h, keymap.h, xgselect.h.  Include composite.h.
  8. 05 Jan, 2015 1 commit
    • Paul Eggert's avatar
      Compute C decls for DEFSYMs automatically · 58f2d6ef
      Paul Eggert authored
      Fixes Bug#15880.
      This patch also makes Q constants (e.g., Qnil) constant addresses
      from the C point of view.
      * make-docfile.c: Revamp to generate table of symbols, too.
      Include <stdbool.h>.
      (xstrdup): New function.
      (main): Don't process the same file twice.
      (SYMBOL): New constant in enum global_type.
      (struct symbol): Turn 'value' member into a union, either v.value
      for int or v.svalue for string.  All uses changed.
      (add_global): New arg svalue, which overrides value, so that globals
      can have a string value.
      (close_emacs_global): New arg num_symbols; all uses changed.
      Output lispsym decl.
      (write_globals): Output symbol globals too.  Output more
      ATTRIBUTE_CONST, now that Qnil etc. are C constants.
      Output defsym_name table.
      (scan_c_file): Move most of guts into ...
      (scan_c_stream): ... new function.  Scan for DEFSYMs and
      record symbols found.  Don't read past EOF if file doesn't
      end in newline.
      * alloc.c, bidi.c, buffer.c, bytecode.c, callint.c, casefiddle:
      * casetab.c, category.c, ccl.c, charset.c, chartab.c, cmds.c, coding.c:
      * composite.c, data.c, dbusbind.c, decompress.c, dired.c, dispnew.c:
      * doc.c, editfns.c, emacs.c, eval.c, fileio.c, fns.c, font.c, fontset.c:
      * frame.c, fringe.c, ftfont.c, ftxfont.c, gfilenotify.c, gnutls.c:
      * image.c, inotify.c, insdel.c, keyboard.c, keymap.c, lread.c:
      * macfont.m, macros.c, minibuf.c, nsfns.m, nsfont.m, nsimage.m:
      * nsmenu.m, nsselect.m, nsterm.m, print.c, process.c, profiler.c:
      * search.c, sound.c, syntax.c, term.c, terminal.c, textprop.c, undo.c:
      * window.c, xdisp.c, xfaces.c, xfns.c, xftfont.c, xmenu.c, xml.c:
      * xselect.c, xsettings.c, xterm.c:
      Remove Q vars that represent symbols (e.g., Qnil, Qt, Qemacs).
      These names are now defined automatically by make-docfile.
      * alloc.c (init_symbol): New function.
      (Fmake_symbol): Use it.
      (c_symbol_p): New function.
      (valid_lisp_object_p, purecopy): Use it.
      * alloc.c (marked_pinned_symbols):
      Use make_lisp_symbol instead of make_lisp_ptr.
      (garbage_collect_1): Mark lispsym symbols.
      (mark_object): Use it.
      (sweep_symbols): Sweep lispsym symbols.
      (symbol_uses_obj): New function.
      (which_symbols): Use it.  Work for lispsym symbols, too.
      (init_alloc_once): Initialize Vpurify_flag here; no need to wait,
      since Qt's address is already known now.
      (syms_of_alloc): Add lispsym count to symbols_consed.
      * buffer.c (init_buffer_once): Compare to Qnil, not to make_number (0),
      when testing whether storage is all bits zero.
      * dispextern (struct image_type):
      * font.c (font_property_table):
      * frame.c (struct frame_parm_table, frame_parms):
      * keyboard.c (scroll_bar_parts, struct event_head):
      * xdisp.c (struct props):
      Use XSYMBOL_INIT (Qfoo) and struct Lisp_Symbol * rather than &Qfoo and
      Lisp_Object *, since Qfoo is no longer an object whose address can be
      taken.  All uses changed.
      * eval.c (run_hook): New function.  Most uses of Frun_hooks changed to
      use it, so that they no longer need to take the address of a Lisp sym.
      (syms_of_eval): Don't use DEFSYM on Vrun_hooks, as it's a variable.
      * frame.c (syms_of_frame): Add defsyms for the frame_parms table.
      * keyboard.c (syms_of_keyboard): Don't DEFSYM Qmenu_bar here.
      DEFSYM Qdeactivate_mark before the corresponding var.
      * keymap.c (syms_of_keymap): Use DEFSYM for Qmenu_bar and Qmode_line
      instead of interning their symbols; this avoids duplicates.
      New macros.
      (LISP_INITIALLY_ZERO): Use it.
      (enum symbol_interned, enum symbol_redirect, struct Lisp_Symbol)
      Move decls up, to avoid forward uses.  Include globals.h earlier, too.
      (make_lisp_symbol): New function.
      (XSETSYMBOL): Use it.
      (DEFSYM): Now just a placeholder for make-docfile.
      * lread.c (DEFINE_SYMBOLS): Define, for globals.h.
      (intern_sym): New function, with body taken from old intern_driver.
      (intern_driver): Use it.  Last arg is now Lisp integer, not ptrdiff_t.
      All uses changed.
      (define_symbol): New function.
      (init_obarray): Define the C symbols taken from lispsym.
      Use plain DEFSYM for Qt and Qnil.
      * syntax.c (init_syntax_once): No need to worry about
  9. 01 Jan, 2015 2 commits
  10. 01 Aug, 2014 1 commit
  11. 22 Jun, 2014 1 commit
    • Dmitry Antipov's avatar
      * xmenu.c (mouse_position_for_popup): · b0358ef8
      Dmitry Antipov authored
      * xselect.c (mouse_position_for_drop): Do not duplicate ...
      * xfns.c (x_relative_mouse_position): ... and prefer this function.
      * menu.c (Fx_popup_menu):
      * xselect.c (x_handle_dnd_message): Adjust users.
      * menu.h (mouse_position_for_popup): Remove prototype.
      * xterm.h (x_relative_mouse_position): Add prototype.
      * xterm.c (x_find_topmost_parent): Break from the loop and do not
      call XFree if XQueryTree returns zero.
  12. 08 Jun, 2014 1 commit
    • Paul Eggert's avatar
      If a C name must be extern on some platforms, make it extern on all. · ff2d0e83
      Paul Eggert authored
      * dispextern.h (set_vertical_scroll_bar, erase_phys_cursor)
      * font.h (ftxfont_driver) [HAVE_XFT]:
      * keyboard.h (menu_items_inuse, ignore_mouse_drag_p, make_ctrl_char):
      * lisp.h (get_frame_param):
      * menu.h (tty_menu_show):
      * process.h (conv_sockaddr_to_lisp, catch_child_signal):
      * termhooks.h (encode_terminal_code):
      * xterm.h (x_menu_wait_for_event):
      Always declare.
      * frame.c (get_frame_param):
      * fringe.c (max_used_fringe_bitmap):
      * ftxfont.c (ftxfont_driver):
      * keyboard.c (ignore_mouse_drag_p, make_ctrl_char):
      * menu.c (menu_items_inuse):
      * process.c (conv_sockaddr_to_lisp, catch_child_signal):
      * term.c (encode_terminal_code, tty_menu_show):
      * xdisp.c (set_vertical_scroll_bar, erase_phys_cursor):
      * xfaces.c (load_color):
      * xmenu.c (x_menu_wait_for_event):
      Now always extern.
  13. 07 Jun, 2014 1 commit
    • Eli Zaretskii's avatar
      Fix last commit. · 3f2f9b6a
      Eli Zaretskii authored
       src/term.c (tty_menu_show) [WINDOWSNT]: Make tty_menu_show extern
       only for WINDOWSNT.
       src/menu.h (tty_menu_show) [WINDOWSNT]: Declare extern only for WINDOWSNT.
  14. 06 Jun, 2014 1 commit
  15. 04 Jun, 2014 1 commit
    • Dmitry Antipov's avatar
      Use terminal-specific hooks to display menus. · cfd794af
      Dmitry Antipov authored
      * termhooks.h (struct terminal): New field menu_show_hook.
      * menu.h (<anonymous enum>): Bit flags for menu hooks.
      (x_menu_show, w32_menu_show, ns_menu_show, tty_menu_show):
      Adjust prototypes.
      * menu.c (Fx_popup_menu): Use bit flags and menu_show_hook.
      * nsmenu.m (ns_menu_show):
      * w32menu.c (w32_menu_show):
      * xmenu.c (x_menu_show):
      * term.c (tty_menu_show): Adjust to use bit flags.
      (set_tty_hooks): Set menu_show_hook.
      * xterm.c (x_create_terminal):
      * nsterm.m (ns_create_terminal):
      * msdos.c (initialize_msdos_display):
      * w32term.c (w32_create_terminal): Likewise.
  16. 03 Jun, 2014 2 commits
    • Paul Eggert's avatar
      Do not require libXt-devel when building with gtk. · 181f08a7
      Paul Eggert authored
      * lwlib/lwlib-widget.h: New file, with contents taken from lwlib.h.
      (widget_value) [HAVE_NTGUI]: New member 'title'.
      * lwlib/lwlib.h: Include lwlib-widget.h.
      (change_type, enum button_type, widget_value):
      Move to lwlib-widget.h.
      * src/gtkutil.h, src/menu.h: Include lwlib-widget.h, not lwlib-h, to avoid
      dependency on libXt-devel.
      * src/menu.h [HAVE_NTGUI]: Include lwlib-widget.h in this case too.
      (enum button_type, widget_value) [HAVE_NTGUI]: Remove, as
      lwlib-widget.h now does this.
      * src/nsmenu.m (ns_menu_show): "enabled" -> "enable" to fix typo.
    • Eli Zaretskii's avatar
      Fix MS-Windows build broken by menu changes on 2014-06-02. · 0031c953
      Eli Zaretskii authored
       src/w32menu.c (w32_menu_show): Fix a typo that broke compilation.
       src/menu.h (enum button_type, struct _widget_value) [HAVE_NTGUI]:
       Define instead of including ../lwlib/lwlib.h, which causes
       compilation errors due to missing X11 headers.
  17. 02 Jun, 2014 1 commit
    • Dmitry Antipov's avatar
      Use common memory management functions for lwlib and refactor users. · 5668fb88
      Dmitry Antipov authored
      * lwlib/lwlib.h (widget_value): Do not maintain a free list any more.
      (malloc_widget_value, free_widget_value): Remove prototypes.
      * lwlib/lwlib.c (malloc_widget_value, free_widget_value):
      (widget_value_free_list, malloc_cpt): Remove.
      (free_widget_value_tree, copy_widget_value_tree): Adjust users.
      * src/menu.h (xmalloc_widget_value): Replaced by ...
      (make_widget_value): ... new prototype.
      * src/menu.c (xmalloc_widget_value): Replaced by ...
      (make_widget_value): ... new function.
      (free_menubar_widget_value_tree, digest_single_submenu): Adjust users.
      * src/gtkutil.c (malloc_widget_value, free_widget_value):
      (widget_value_free_list, malloc_cpt): Remove old lwlib-compatible code.
      * src/keyboard.h (enum button_type, struct _widget_value):
      * src/gtkutil.h, src/nsgui.h, src/w32gui.h (malloc_widget_value):
      (free_widget_value): Likewise.
      * src/nsmenu.m (ns_update_menubar, ns_menu_show):
      * src/w32menu.c (set_frame_menubar, w32_menu_show, w32_dialog_show):
      * src/xmenu.c (set_frame_menubar, xmenu_show, x_dialog_show): Adjust users.
      * src/xterm.h (XtParent) [USE_GTK]: Remove unused macro.
  18. 04 Feb, 2014 1 commit
    • Eli Zaretskii's avatar
      Fix bug #16636 with simple dialogs on MS-Windows. · e139a33c
      Eli Zaretskii authored
       src/w32menu.c (w32_popup_dialog): Don't condition the whole function
       on HAVE_DIALOGS.  If the dialog is "simple", pop up a message box
       to show it; otherwise return 'unsupported--w32-dialog' to signal
       to the caller that emulation with menus is necessary.  This
       resurrects code inadvertently deleted by the 2013-10-08 commit.
       (syms_of_w32menu): DEFSYM Qunsupported__w32_dialog.
       src/w32term.h (w32_popup_dialog): Prototype is no longer conditioned
       by HAVE_DIALOGS.
       src/menu.c (Fx_popup_dialog): Don't condition the call to
       w32_popup_dialog on HAVE_DIALOGS.  If w32_popup_dialog returns a
       special symbol 'unsupported--w32-dialog', emulate the dialog with
       a menu by calling x-popup-menu.
       src/menu.h (Qunsupported__w32_dialog): New extern variable.
  19. 01 Jan, 2014 1 commit
  20. 06 Nov, 2013 1 commit
    • Paul Eggert's avatar
      Integer-related fixes for term.c etc. · 798aef02
      Paul Eggert authored
      * dispextern.h (face_tty_specified_color): New function.
      * term.c (turn_on_face): Don't rely on undefined behavior when
      assigning an out-of-range value to 'long'.  Simplify
      test for toggling highlight.
      (tty_capable_p): Omit last two (unused) args.  All callers changed.
      * term.c (tty_capable_p, tty_menu_display, tty_menu_add_selection)
      (read_menu_input, tty_menu_activate, tty_menu_show):
      * xfaces.c (x_supports_face_attributes_p)
      Use bool for boolean.  All callers changed.
      (tty_supports_face_attributes_p): Omit defaults for color indices;
      no longer needed.  Simplify tail call.
  21. 10 Oct, 2013 1 commit
    • Dmitry Antipov's avatar
      * keyboard.c (last_event_timestamp): Remove. For X selection and · 6bbe6da8
      Dmitry Antipov authored
      GTK popup menus, it may be obtained from per-frame X display info.
      (kbd_buffer_store_event_hold, kbd_buffer_get_event)
      (process_special_events): Adjust users.
      * keyboard.h (last_event_timestamp): Remove declaration.
      * xmenu.c (xmenu_show, create_and_show_popup_menu): Lost last arg.
      Use FRAME_DISPLAY_INFO (f)->last_user_time for gtk_menu_popup.
      * menu.h (xmenu_show): Adjust prototype.
      * menu.c (Fx_popup_menu): Adjust user.
      * xselect.c (x_own_selection, x_get_foreign_selection)
      (Fx_disown_selection_internal): Use dpyinfo->last_user_time.
  22. 08 Oct, 2013 2 commits
    • Paul Eggert's avatar
      Fix minor problems found by static checking. · 3b158d11
      Paul Eggert authored
      * dispnew.c (save_current_matrix): Omit unnecessary casts.
      * dispnew.c (update_frame_with_menu): Mark debug local as used.
      * keyboard.c, keyboard.h (Qmouse_movement): Now static.
      * keyboard.c (read_menu_command): Remove unused local.
      * lisp.h (read_menu_command): New decl.
      * menu.c, menu.h (menu_item_width): Arg is now unsigned char *, for
      benefit of STRING_CHAR_AND_LENGTH.  All uses changed.
      Return ptrdiff_t, not int.
      * term.c (tty_menu_struct): 'allocated' member is now ptrdiff_t,
      not int, for benefit of xpalloc.
      (tty_menu_create, tty_menu_make_room): Simplify by using xzalloc
      and xpalloc.
      (have_menus_p): Remove; unused.
      (tty_menu_add_pane, tty_menu_add_selection): Change signedness of
      local char * pointer to pacify STRING_CHAR_AND_LENGTH.
      (tty_menu_add_selection, tty_menu_locate, tty_meny_destroy):
      Now static.
      (save_and_enable_current_matrix): Omit unnecessary casts.
      (read_menu_input): Omit local extern decl (now in lisp.h).
      Don't access uninitialized storage if mouse_get_xy fails.
      (tty_menu_activate): Mark local as initialized, for lint.
      (tty_menu_activate, tty_meny_show): Remove unused locals.
    • Eli Zaretskii's avatar
      Horizontal keys in TTY menus work. · 4a48e94d
      Eli Zaretskii authored
  23. 05 Sep, 2013 1 commit
  24. 03 Aug, 2013 1 commit
    • Dmitry Antipov's avatar
      Drop FRAME_PTR typedef. · a10c8269
      Dmitry Antipov authored
      * composite.c, font.c, font.h, fontset.c, fontset.h, frame.c, frame.h:
      * ftfont.c, ftxfont.c, gtkutil.c, gtkutil.h, image.c, keyboard.c:
      * menu.c, menu.h, msdos.c, nsfns.m, nsfont.m, nsmenu.m, nsterm.h:
      * nsterm.m, scroll.c, term.c, w32fns.c, w32font.c, w32font.h:
      * w32inevt.c, w32inevt.h, w32menu.c, w32notify.c, w32term.c, w32term.h:
      * w32uniscribe.c, w32xfns.c, widget.c, window.c, xdisp.c, xfaces.c:
      * xfns.c, xfont.c, xftfont.c, xmenu.c, xselect.c, xterm.c:
      All related users changed.
  25. 01 Jan, 2013 1 commit
  26. 11 Oct, 2012 1 commit
    • Paul Eggert's avatar
      lread.c, macros.c, marker.c, menu.c, minibuf.c: Use bool for booleans. · 7cded46f
      Paul Eggert authored
      * lread.c (load_each_byte, new_backquote_flag, readchar)
      (read_filtered_event, lisp_file_lexically_bound_p)
      (safe_to_load_version, Fload, complete_filename_p, openp)
      (build_load_history, readevalloop, read_escape, read1)
      (string_to_number, read_vector, read_list):
      * macros.c (Fstart_kbd_macro):
      * marker.c (CONSIDER):
      * menu.c (parse_single_submenu, digest_single_submenu)
      (find_and_return_menu_selection, Fx_popup_menu):
      * minibuf.c (read_minibuf_noninteractive, read_minibuf)
      * nsmenu.m (ns_update_menubar, runMenuAt:forFrame:keymaps:):
      * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
      (xmenu_show, xdialog_show):
      Use bool for booleans.
      * lread.c (safe_to_load_version): Rename from safe_to_load_p,
      as it's not a predicate.  All uses changed.  Omit unnecessary
      buffer termination.
  27. 09 Jul, 2012 1 commit
  28. 02 Jun, 2012 1 commit
  29. 11 Jan, 2012 1 commit
  30. 05 Jan, 2012 1 commit
  31. 12 May, 2011 1 commit
    • Paul Eggert's avatar
      Be more systematic about user-interface timestamps. · 08dc5ae6
      Paul Eggert authored
      Before, the code sometimes used 'Time', sometimes 'unsigned long',
      and sometimes 'EMACS_UINT', to represent these timestamps.  This
      change causes it to use 'Time' uniformly, as that's what X uses.
      This makes the code easier to follow, and makes it easier to catch
      integer overflow bugs such as Bug#8664.
      * frame.c (Fmouse_position, Fmouse_pixel_position):
      Use Time, not unsigned long, for user-interface timestamps.
      * keyboard.c (last_event_timestamp, kbd_buffer_get_event): Likewise.
      (button_down_time, make_lispy_position, make_lispy_movement): Likewise.
      * keyboard.h (last_event_timestamp): Likewise.
      * menu.c (Fx_popup_menu) [!HAVE_X_WINDOWS]: Likewise.
      * menu.h (xmenu_show): Likewise.
      * term.c (term_mouse_position): Likewise.
      * termhooks.h (struct input_event.timestamp): Likewise.
      (struct terminal.mouse_position_hook): Likewise.
      * xmenu.c (create_and_show_popup_menu, xmenu_show): Likewise.
      * xterm.c (XTmouse_position, x_scroll_bar_report_motion): Likewise.
      * systime.h (Time): New decl.  Pull it in from <X11/X.h> if
      HAVE_X_WINDOWS, otherwise define it as unsigned long, which is
      what it was before.
      * menu.h, termhooks.h: Include "systime.h", for Time.
  32. 25 Jan, 2011 1 commit
  33. 18 Jan, 2011 1 commit
    • Tom Tromey's avatar
      Move all DEFVAR'd globals into a structure -- threading infrastructure · 29208e82
      Tom Tromey authored
      	* globals.h: New file.
      	* xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
      	* window.h (Vinitial_window_system, Vminibuf_scroll_window)
      	(Vwindow_system_version): Remove declaration.
      	* w32term.h (Vw32_enable_palette)
      	(Vx_pixel_size_width_font_regexp): Remove declaration.
      	* w32menu.c (Voverriding_local_map)
      	(Voverriding_local_map_menu_flag): Remove declaration.
      	* w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
      	(Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
      	(Vw32_enable_num_lock, Vw32_lwindow_modifier)
      	(Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
      	(Vw32_phantom_key_code, Vw32_recognize_altgr)
      	(Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
      	(w32_use_full_screen_buffer): Remove declaration.
      	* w32.c (Vsystem_configuration, Vw32_downcase_file_names)
      	(Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
      	(w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
      	* termopts.h (Vtruncate_partial_width_windows, inverse_video)
      	(no_redraw_on_reenter, visible_bell): Remove declaration.
      	* sysdep.c (Vsystem_name): Remove declaration.
      	* syntax.h (parse_sexp_lookup_properties): Remove declaration.
      	* menu.h (Vmenu_updating_frame): Remove declaration.
      	* macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
      	Remove declaration.
      	* lisp.h (Vafter_init_time, Vafter_load_alist)
      	(Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
      	(Vcompletion_regexp_list, Vcurrent_load_list)
      	(Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
      	(Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
      	(Vexec_directory, Vexec_path, Vexec_suffixes)
      	(Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
      	(Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
      	(Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
      	(Vinstallation_directory, Vinvocation_directory)
      	(Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
      	(Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
      	(Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
      	(Vpurify_flag, Vquit_flag, Vsaved_region_selection)
      	(Vscalable_fonts_allowed, Vselect_active_regions)
      	(Vshell_file_name, Vstandard_input, Vstandard_output)
      	(Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
      	(Vtop_level, Vtty_erase_char, Vundo_outer_limit)
      	(Vuser_login_name, Vwindow_scroll_functions)
      	(Vwindow_system_version, Vx_no_window_manager)
      	(Vx_resource_class, Vx_resource_name, baud_rate)
      	(completion_ignore_case, debug_on_next_call, gc_cons_threshold)
      	(history_delete_duplicates, inhibit_x_resources)
      	(last_nonmenu_event, load_in_progress, max_specpdl_size)
      	(minibuffer_auto_raise, print_escape_newlines, scroll_margin)
      	(use_dialog_box, use_file_dialog): Remove declaration.  Include
      	* keymap.h (Voverriding_local_map)
      	(Voverriding_local_map_menu_flag, meta_prefix_char): Remove
      	* keyboard.h (Vdouble_click_time, Vfunction_key_map)
      	(Vinput_method_function, Vkey_translation_map)
      	(Vlucid_menu_bar_dirty_flag, Vthis_original_command)
      	(do_mouse_tracking, extra_keyboard_modifiers)
      	(num_nonmacro_input_events): Remove declaration.
      	* intervals.h (Vchar_property_alias_alist)
      	(Vdefault_text_properties, Vinhibit_point_motion_hooks)
      	(Vtext_property_default_nonsticky): Remove declaration.
      	* gtkutil.h (x_gtk_file_dialog_help_text)
      	(x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
      	(x_gtk_whole_detached_tool_bar): Remove declaration.
      	* frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
      	(Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
      	(Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
      	(focus_follows_mouse): Remove declaration.
      	* fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
      	(Vignore_relative_composition, Votf_script_alist)
      	(Vuse_default_ascent, Vvertical_centering_font_regexp): Remove
      	* font.h (Vfont_log): Remove declaration.
      	* dosfns.h (Vdos_display_scancodes, Vdos_version)
      	(Vdos_windows_version, dos_codepage, dos_country_code)
      	(dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
      	(dos_keypad_mode, dos_super_key, dos_timezone_offset): Remove
      	* disptab.h (Vglyph_table, Vstandard_display_table): Remove
      	* dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
      	(Vmouse_autoselect_window, Voverflow_newline_into_fringe)
      	(Vshow_trailing_whitespace, Vtool_bar_button_margin)
      	(Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
      	(inverse_video, mode_line_in_non_selected_windows)
      	(tool_bar_button_relief, tool_bar_max_label_size)
      	(unibyte_display_via_language_environment, x_stretch_cursor_p):
      	Remove declaration.
      	* composite.h (Vauto_composition_function)
      	(Vcomposition_function_table): Remove declaration.
      	* commands.h (Vexecuting_kbd_macro)
      	(Vminibuffer_local_map, Vminibuffer_local_must_match_map)
      	(Vminibuffer_local_ns_map, Vthis_command)
      	(Vunread_command_events, cursor_in_echo_area)
      	(last_command_event, last_nonmenu_event, unread_command_char):
      	Remove declaration.
      	* coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
      	(Vdefault_process_coding_system, Vfile_name_coding_system)
      	(Vlast_coding_system_used, Vlocale_coding_system)
      	(Vtranslation_table_for_input, coding_system_require_warning)
      	(eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
      	(eol_mnemonic_unix, inherit_process_coding_system): Remove
      	* charset.h (Vcharset_list, Vcurrent_iso639_language): Remove
      	* character.h (Vauto_fill_chars, Vchar_direction_table)
      	(Vchar_script_table, Vchar_width_table, Vprintable_chars)
      	(Vscript_representative_chars, Vtranslation_table_vector)
      	(Vunicode_category_table): Remove declaration.
      	* ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
      	* buffer.h (Vafter_change_functions, Vbefore_change_functions)
      	(Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
      	(inhibit_modification_hooks): Remove declaration.
      	* xterm.c (syms_of_xterm): Update.
      	(Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
      	(Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
      	(x_use_underline_position_properties): Remove.
      	* xsmfns.c (syms_of_xsmfns): Update.
      	(Vx_session_id, Vx_session_previous_id): Remove.
      	* xsettings.c (syms_of_xsettings): Update.
      	(Vxft_settings, use_system_font): Remove.
      	* xselect.c (syms_of_xselect): Update.
      	(Vselection_converter_alist, Vx_lost_selection_functions)
      	(Vx_sent_selection_functions, x_selection_timeout): Remove.
      	* xfns.c (syms_of_xfns): Update.
      	(Vgtk_version_string, Vmotif_version_string)
      	(Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
      	(Vx_max_tooltip_size, Vx_mode_pointer_shape)
      	(Vx_no_window_manager, Vx_nontext_pointer_shape)
      	(Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
      	(Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
      	(x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
      	(x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
      	* xfaces.c (syms_of_xfaces): Update.
      	(Vface_default_stipple, Vface_font_rescale_alist)
      	(Vface_ignored_fonts, Vface_new_frame_defaults)
      	(Vface_remapping_alist, Vfont_list_limit)
      	(Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
      	* xdisp.c (syms_of_xdisp): Update.
      	(Vauto_resize_tool_bars, Vblink_cursor_alist)
      	(Vdisplay_pixels_per_inch, Vfontification_functions)
      	(Vframe_title_format, Vglobal_mode_string)
      	(Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
      	(Vicon_title_format, Vinhibit_redisplay)
      	(Vline_number_display_limit, Vline_prefix)
      	(Vmax_mini_window_height, Vmenu_bar_update_hook)
      	(Vmenu_updating_frame, Vmessage_log_max)
      	(Vmouse_autoselect_window, Vnobreak_char_display)
      	(Voverlay_arrow_position, Voverlay_arrow_string)
      	(Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
      	(Vresize_mini_windows, Vshow_trailing_whitespace)
      	(Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
      	(Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
      	(Vwindow_scroll_functions, Vwindow_size_change_functions)
      	(Vwindow_text_change_functions, Vwrap_prefix)
      	(auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
      	(debug_end_pos, display_hourglass_p, emacs_scroll_step)
      	(highlight_nonselected_windows, hscroll_margin)
      	(inhibit_eval_during_redisplay, inhibit_free_realized_faces)
      	(inhibit_menubar_update, inhibit_try_cursor_movement)
      	(inhibit_try_window_id, inhibit_try_window_reusing)
      	(make_cursor_line_fully_visible_p, message_truncate_lines)
      	(mode_line_inverse_video, multiple_frames, overline_margin)
      	(scroll_conservatively, scroll_margin, tool_bar_button_relief)
      	(tool_bar_max_label_size, underline_minimum_offset)
      	(unibyte_display_via_language_environment, x_stretch_cursor_p):
      	* window.c (syms_of_window): Update.
      	(Vminibuf_scroll_window, Vother_window_scroll_buffer)
      	(Vrecenter_redisplay, Vscroll_preserve_screen_position)
      	(Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
      	(Vwindow_point_insertion_type, auto_window_vscroll_p)
      	(mode_line_in_non_selected_windows, next_screen_context_lines)
      	(window_min_height, window_min_width): Remove.
      	(scroll_margin): Remove declaration.
      	* w32term.c (syms_of_w32term): Update.
      	(Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
      	(Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
      	(Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
      	(w32_use_visible_system_caret, x_underline_at_descent_line)
      	(x_use_underline_position_properties): Remove.
      	(Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
      	Remove declaration.
      	* w32select.c (syms_of_w32select): Update.
      	(Vnext_selection_coding_system, Vselection_coding_system): Remove.
      	* w32proc.c (syms_of_ntproc): Update.
      	(Vw32_downcase_file_names, Vw32_generate_fake_inodes)
      	(Vw32_get_true_file_attributes, Vw32_quote_process_args)
      	(Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
      	(Vsystem_name): Remove declaration.
      	* w32font.c (syms_of_w32font): Update.
      	(Vw32_charset_info_alist): Remove.
      	* w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
      	(Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
      	(Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
      	(Vw32_enable_palette, Vw32_lwindow_modifier)
      	(Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
      	(Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
      	(Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
      	(Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
      	(Vx_max_tooltip_size, Vx_mode_pointer_shape)
      	(Vx_no_window_manager, Vx_nontext_pointer_shape)
      	(Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
      	(Vx_window_horizontal_drag_shape, w32_ansi_code_page)
      	(w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
      	(w32_pass_multimedia_buttons_to_system, w32_quit_key)
      	(w32_strict_fontnames, w32_strict_painting): Remove.
      	(Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
      	(Vw32_recognize_altgr, Vwindow_system_version)
      	(w32_num_mouse_buttons, w32_use_visible_system_caret): Remove
      	* w32console.c (syms_of_ntterm): Update.
      	(w32_use_full_screen_buffer): Remove.
      	(Vtty_defined_color_alist): Remove declaration.
      	* w16select.c (syms_of_win16select): Update.
      	(Vnext_selection_coding_system, Vselection_coding_system): Remove.
      	* undo.c (syms_of_undo): Update.
      	(Vundo_outer_limit, Vundo_outer_limit_function)
      	(undo_inhibit_record_point, undo_limit, undo_strong_limit):
      	* textprop.c (syms_of_textprop): Update.
      	(Vchar_property_alias_alist, Vdefault_text_properties)
      	(Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
      	* terminal.c (syms_of_terminal): Update.
      	(Vdelete_terminal_functions, Vring_bell_function): Remove.
      	* term.c (syms_of_term): Update.
      	(Vresume_tty_functions, Vsuspend_tty_functions)
      	(no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
      	* syntax.c (syms_of_syntax): Update.
      	(Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
      	(parse_sexp_ignore_comments, parse_sexp_lookup_properties)
      	(words_include_escapes): Remove.
      	* search.c (syms_of_search): Update.
      	(Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
      	* process.c (syms_of_process): Update.
      	(Vprocess_adaptive_read_buffering, Vprocess_connection_type)
      	(delete_exited_processes): Remove.
      	* print.c (syms_of_print): Update.
      	(Vfloat_output_format, Vprint_charset_text_property)
      	(Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
      	(Vprint_length, Vprint_level, Vprint_number_table)
      	(Vstandard_output, print_escape_multibyte)
      	(print_escape_newlines, print_escape_nonascii, print_quoted):
      	* msdos.c (syms_of_msdos): Update.
      	(Vdos_unsupported_char_glyph): Remove.
      	(unibyte_display_via_language_environment): Remove declaration.
      	* minibuf.c (syms_of_minibuf): Update.
      	(Vcompletion_regexp_list, Vhistory_add_new_input)
      	(Vhistory_length, Vminibuffer_completing_file_name)
      	(Vminibuffer_completion_predicate, Vminibuffer_completion_table)
      	(Vminibuffer_exit_hook, Vminibuffer_help_form)
      	(Vminibuffer_history_position, Vminibuffer_history_variable)
      	(Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
      	(Vread_buffer_function, Vread_expression_map)
      	(completion_ignore_case, enable_recursive_minibuffers)
      	(history_delete_duplicates, minibuffer_allow_text_properties)
      	(minibuffer_auto_raise, read_buffer_completion_ignore_case):
      	* marker.c (syms_of_marker): Update.
      	(byte_debug_flag): Remove.
      	* macros.c (syms_of_macros): Update.
      	(Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
      	* lread.c (syms_of_lread): Update.
      	(Vafter_load_alist, Vbyte_boolean_vars)
      	(Vbytecomp_version_regexp, Vcurrent_load_list)
      	(Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
      	(Vload_history, Vload_path, Vload_read_function)
      	(Vload_source_file_function, Vload_suffixes, Vobarray)
      	(Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
      	(Vread_symbol_positions_list, Vread_with_symbol_positions)
      	(Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
      	(force_load_messages, load_convert_to_unibyte)
      	(load_dangerous_libraries, load_force_doc_strings)
      	(load_in_progress): Remove.
      	* keymap.c (syms_of_keymap): Update.
      	(Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
      	(Vminibuffer_local_map, Vminibuffer_local_must_match_map)
      	(Vminibuffer_local_ns_map, Vminor_mode_map_alist)
      	(Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
      	* keyboard.c (syms_of_keyboard): Update.
      	(Vauto_save_timeout, Vcommand_error_function)
      	(Vcommand_hook_internal, Vdeactivate_mark)
      	(Vdeferred_action_function, Vdeferred_action_list)
      	(Vdisable_point_adjustment, Vdouble_click_time)
      	(Vecho_keystrokes, Venable_disabled_menus_and_buttons)
      	(Vfunction_key_map, Vglobal_disable_point_adjustment)
      	(Vhelp_char, Vhelp_event_list, Vhelp_form)
      	(Vinput_method_function, Vinput_method_previous_message)
      	(Vkey_translation_map, Vlast_event_frame)
      	(Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
      	(Vminibuffer_message_timeout, Voverriding_local_map)
      	(Voverriding_local_map_menu_flag, Vpost_command_hook)
      	(Vpre_command_hook, Vprefix_help_command)
      	(Vsaved_region_selection, Vselect_active_regions)
      	(Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
      	(Vthis_command, Vthis_command_keys_shift_translated)
      	(Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
      	(Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
      	(Vtty_erase_char, Vunread_command_events)
      	(Vunread_input_method_events, Vunread_post_input_method_events)
      	(auto_save_interval, cannot_suspend, do_mouse_tracking)
      	(double_click_fuzz, extra_keyboard_modifiers)
      	(inhibit_local_menu_bar_menus, last_command_event)
      	(last_input_event, last_nonmenu_event, menu_prompt_more_char)
      	(menu_prompting, meta_prefix_char, num_input_keys)
      	(num_nonmacro_input_events, polling_period, unread_command_char):
      	* insdel.c (syms_of_insdel): Update.
      	(Vcombine_after_change_calls, check_markers_debug_flag): Remove.
      	* indent.c (syms_of_indent): Update.
      	(indent_tabs_mode): Remove.
      	* image.c (syms_of_image): Update.
      	(Vimage_cache_eviction_delay, Vimage_types)
      	(Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
      	(cross_disabled_images): Remove.
      	* fringe.c (syms_of_fringe): Update.
      	(Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
      	* frame.c (syms_of_frame): Update.
      	(Vdefault_frame_alist, Vdefault_frame_scroll_bars)
      	(Vdelete_frame_functions, Vframe_alpha_lower_limit)
      	(Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
      	(Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
      	(Vx_resource_class, Vx_resource_name, focus_follows_mouse):
      	* fontset.c (syms_of_fontset): Update.
      	(Valternate_fontname_alist, Vfont_encoding_charset_alist)
      	(Vfontset_alias_alist, Vignore_relative_composition)
      	(Votf_script_alist, Vuse_default_ascent)
      	(Vvertical_centering_font_regexp): Remove.
      	* font.c (syms_of_font): Update.
      	(Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
      	(Vfont_weight_table, Vfont_width_table): Remove.
      	* fns.c (syms_of_fns): Update.
      	(Vfeatures, use_dialog_box, use_file_dialog): Remove.
      	* filelock.c (syms_of_filelock): Update.
      	(Vtemporary_file_directory): Remove.
      	* fileio.c (syms_of_fileio): Update.
      	(Vafter_insert_file_functions, Vauto_save_include_big_deletions)
      	(Vauto_save_list_file_name, Vauto_save_visited_file_name)
      	(Vdefault_file_name_coding_system, Vfile_name_coding_system)
      	(Vfile_name_handler_alist, Vinhibit_file_name_handlers)
      	(Vinhibit_file_name_operation, Vset_auto_coding_function)
      	(delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
      	(Vw32_get_true_file_attributes): Remove declaration.
      	* eval.c (syms_of_eval): Update.
      	(Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
      	(Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
      	(Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
      	(debug_on_next_call, debug_on_quit, debugger_may_continue)
      	(max_lisp_eval_depth, max_specpdl_size): Remove.
      	* emacs.c (syms_of_emacs): Update.
      	(Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
      	(Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
      	(Vinstallation_directory, Vinvocation_directory)
      	(Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
      	(Vprevious_system_messages_locale, Vprevious_system_time_locale)
      	(Vsystem_configuration, Vsystem_configuration_options)
      	(Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
      	(inhibit_x_resources, noninteractive1): Remove.
      	* editfns.c (syms_of_editfns): Update.
      	(Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
      	(Voperating_system_release, Vsystem_name, Vuser_full_name)
      	(Vuser_login_name, Vuser_real_login_name): Remove.
      	* dosfns.c (syms_of_dosfns): Update.
      	(Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
      	(dos_codepage, dos_country_code, dos_decimal_point)
      	(dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
      	(dos_super_key, dos_timezone_offset): Remove.
      	* doc.c (syms_of_doc): Update.
      	(Vbuild_files, Vdoc_file_name): Remove.
      	* dispnew.c (syms_of_display): Update.
      	(Vglyph_table, Vinitial_window_system)
      	(Vredisplay_preemption_period, Vstandard_display_table)
      	(Vwindow_system_version, baud_rate, cursor_in_echo_area)
      	(inverse_video, redisplay_dont_pause, visible_bell): Remove.
      	* dired.c (syms_of_dired): Update.
      	(Vcompletion_ignored_extensions): Remove.
      	(Vw32_get_true_file_attributes): Remove declaration.
      	* dbusbind.c (syms_of_dbusbind): Update.
      	(Vdbus_debug, Vdbus_registered_buses)
      	(Vdbus_registered_objects_table): Remove.
      	* data.c (syms_of_data): Update.
      	(Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
      	* composite.c (syms_of_composite): Update.
      	(Vauto_composition_function, Vauto_composition_mode)
      	(Vcompose_chars_after_function, Vcomposition_function_table):
      	* coding.c (syms_of_coding): Update.
      	(Vcharset_revision_table, Vcoding_category_list)
      	(Vcoding_system_alist, Vcoding_system_for_read)
      	(Vcoding_system_for_write, Vcoding_system_list)
      	(Vdefault_process_coding_system, Venable_character_translation)
      	(Vfile_coding_system_alist, Vlast_code_conversion_error)
      	(Vlast_coding_system_used, Vlatin_extra_code_table)
      	(Vlocale_coding_system, Vnetwork_coding_system_alist)
      	(Vtranslation_table_for_input, coding_system_require_warning)
      	(eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
      	(eol_mnemonic_unix, inherit_process_coding_system)
      	(inhibit_eol_conversion, inhibit_iso_escape_detection)
      	(inhibit_null_byte_detection): Remove.
      	* cmds.c (syms_of_cmds): Update.
      	(Vpost_self_insert_hook): Remove.
      	* charset.c (syms_of_charset): Update.
      	(Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
      	(inhibit_load_charset_map): Remove.
      	* character.c (syms_of_character): Update.
      	(Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
      	(Vchar_width_table, Vprintable_chars)
      	(Vscript_representative_chars, Vtranslation_table_vector)
      	(Vunicode_category_table): Remove.
      	* ccl.c (syms_of_ccl): Update.
      	(Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
      	(Vtranslation_hash_table_vector): Remove.
      	* category.c (syms_of_category): Update.
      	(Vword_combining_categories, Vword_separating_categories): Remove.
      	* callproc.c (syms_of_callproc): Update.
      	(Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
      	(Vexec_directory, Vexec_path, Vexec_suffixes)
      	(Vinitial_environment, Vprocess_environment)
      	(Vshared_game_score_directory, Vshell_file_name): Remove.
      	* callint.c (syms_of_callint): Update.
      	(Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
      	(Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
      	* bytecode.c (syms_of_bytecode): Update.
      	(Vbyte_code_meter, byte_metering_on): Remove.
      	* buffer.c (syms_of_buffer): Update.
      	(Vafter_change_functions, Vbefore_change_functions)
      	(Vchange_major_mode_hook, Vfirst_change_hook)
      	(Vinhibit_read_only, Vkill_buffer_query_functions)
      	(Vtransient_mark_mode, inhibit_modification_hooks): Remove.
      	* alloc.c (syms_of_alloc): Update.
      	(Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
      	(Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
      	(cons_cells_consed, floats_consed, garbage_collection_messages)
      	(gc_cons_threshold, gcs_done, intervals_consed)
      	(misc_objects_consed, pure_bytes_used, string_chars_consed)
      	(strings_consed, symbols_consed, vector_cells_consed): Remove.
      	(DEFVAR_INT): Assume global is in `globals'.
      	* alloc.c (globals): Define.
  34. 15 Jan, 2011 1 commit
  35. 02 Jan, 2011 1 commit
  36. 11 Aug, 2010 1 commit
    • Jan D's avatar
      Fix -Wwrite_strings in general and for Gtk+ specific code. · 42ca4633
      Jan D authored
      * callproc.c (synch_process_death): Make const.
      (Fcall_process): Make signame const.
      * emacs.c (main): Pass char[] to putenv instead of literal.
      * floatfns.c (matherr): Use a const char* variable for x->name.
      * font.c (font_open_by_name): Make name const.
      * font.h (font_open_by_name): Make name const.
      * gtkutil.c (get_utf8_string): Always return an allocated string.
      Parameter is const.
      (create_dialog, xg_create_one_menuitem, create_menus)
      (xg_item_label_same_p, xg_update_menu_item): Free result from
      (xg_separator_p, xg_item_label_same_p): label is const.
      * gtkutil.h: Replace widget_value with struct _widget_value.
      (enum button_type, struct _widget_value): Remove and use the one from
      * keyboard.h (_widget_value): Add defined USE_GTK.  Replace Boolean
      with unsigned char and XtPointer with void *.
      * menu.c (Fx_popup_menu): error_name is const.
      * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
      is const char **.
      * w32menu.c (w32_menu_show):
      * nsmenu.m (ns_menu_show): error parameter is const char **.
      * process.h (synch_process_death): Is const char*.
      * xmenu.c (Fx_popup_dialog): error_name is const char*.
      (xmenu_show): error parameter is const char **. pane_string is const
      char *.
      (button_names): Is const char *.
      (xdialog_show): error_name and pane_string is const.
      * xrdb.c (get_system_app): Make path const and use char *p for non-const
      * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
      * xsmfns.c (NOSPLASH_OPT): Change to char[].
      (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
      props.  Free them at the end.
      * xterm.c (emacs_class): New char[] for EMACS_CLASS.
      (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
      (x_term_init): Use char[] display_opt and name_opt instead of
      string literal. file is const char*.
  37. 06 Aug, 2010 1 commit
    • Jan D's avatar
      Fix missing prototypes for HAVE_NS (caused crash) and vrious warnings. · 3d608a86
      Jan D authored
      * configure.in: Check for util.h.
      * src/bidi.c (bidi_dump_cached_states): Fix fprintf warning.
      * src/emacs.c: Include src/nsterm.h if HAVE_NS.
      * src/image.c (xpm_scan, xpm_make_color_table_v)
      (xpm_put_color_table_v, xpm_get_color_table_v)
      (xpm_make_color_table_h, xpm_put_color_table_h)
      (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
      (xpm_load): Convert to ANSI C prototypes.
      * src/lisp.h (fmod_float): Declare.
      * src/menu.h (x_set_menu_bar_line): Declare.
      (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
      * src/window.c: Include menu.h.
      * src/nsfns.m (have_menus_p, ns_display_info_for_name)
      (x_set_cursor_type, ns_appkit_version_str)
      (ns_appkit_version_int, ns_do_applescript)
      (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
      (syms_of_nsfns): Convert to ANSI C prototypes.
      * src/nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
      * src/nsimage.m (ns_load_image): Move NSTRACE after declarations.
      * src/nsmenu.m (popup_activated, name_is_separator)
      (syms_of_nsmenu): Convert to ANSI C prototypes.
      (runMenuAt): Prototypes and move declarations before code.
      * src/nsterm.h : Include sysselect.h.
      (x_sync, x_get_focus_frame, x_set_mouse_position)
      (x_set_mouse_pixel_position, x_make_frame_visible)
      (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
      (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
      (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
      (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
      * src/process.c: Check HAVE_UTIL_H. Include src/nsterm.h if HAVE_NS.
      * src/nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
      (ns_ring_bell, ns_defined_color, hide_hourglass)
      (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
      Convert to ANSI C prototypes.
      (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
      before code.
      * src/sysdep.c: Check HAVE_TERM_H
      * src/term.c: Check HAVE_SYS_IOCTL_H.
      * src/unexmacosx.c (print_region_list, print_regions)
      (build_region_list, find_emacs_zone_regions)
      (unexec_regions_merge, read_load_commands, dump_it)
      (unexec_init_emacs_zone): Convert to ANSI C prototypes.
      * src/xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.