1. 24 May, 2015 3 commits
  2. 23 May, 2015 22 commits
    • Glenn Morris's avatar
      Remove charset map files from repository, generate in first bootstrap · 9f89ea1f
      Glenn Morris authored
      * admin/charsets/Makefile.in (${srcdir}/charsets.stamp): New.
      (all): Create the stamp file.
      (extraclean): Delete the stamp file.
      * src/Makefile.in (lispintdir, charsets): New variables.
      (${lispintdir}/cp51932.el, ${lispintdir}/eucjp-ms.el, ${charsets}):
      New rules.
      (emacs$(EXEEXT), temacs$(EXEEXT)): Depend on $charsets.
      * lisp/international/cp51932.el, lisp/international/eucjp-ms.el:
      * etc/charsets/*.map: Remove from repository.
      ; * admin/charsets/mapconv: Fix typo in output comment.
      ; * etc/charsets/README: Small update.
      ; * .gitignore: Update for charset changes.
      9f89ea1f
    • Paul Eggert's avatar
      Cleanup etags.c to use locale-independent code · fb11a5e1
      Paul Eggert authored
      Although this doesn't alter behavior (as etags doesn't use
      setlocale), the new version is more clearly locale-independent and
      the executable is a bit smaller on my platform.
      * lib-src/etags.c: Include <limits.h>, for UCHAR_MAX.
      Include <c-ctype.h> instead of <ctype.h>.
      (CHARS, CHAR, init, _wht, _nin, _itk, _btk, _etk, white, nonam, endtk)
      (begtk, midtk):
      Remove; no longer needed.
      (iswhite, ISALNUM, ISALPHA, ISDIGIT, ISLOWER, lowcase): Remove.
      All callers changed to use c_isspace, c_isalnum, c_isalpha, c_isdigit,
      c_islower, c_tolower, respectively.
      (notinname, begtoken, intoken, endtoken): Rewrite as functions
      instead of macros, and initialize the tables at compile-time
      rather than at run-time.
      fb11a5e1
    • Paul Eggert's avatar
      Put default action first in src/Makefile · fa658b2e
      Paul Eggert authored
      * src/Makefile.in (all): Put this rule before lisp.mk.
      That way, plain 'make' works in the src directory again.
      fa658b2e
    • Glenn Morris's avatar
      * Makefile.in: Fix extraclean rule. · 126b0d98
      Glenn Morris authored
      (extraclean_dirs): New.
      (extraclean): Use it.
      126b0d98
    • Eli Zaretskii's avatar
      Avoid compiler warning in image.c on MS-Windows · 85d94d65
      Eli Zaretskii authored
      * src/w32term.h (x_query_color): Add prototype, to avoid compiler
      warning in image.c.
      85d94d65
    • Glenn Morris's avatar
      Fix --without-toolkit-scroll-bars builds. · 238e8b66
      Glenn Morris authored
      * src/xterm.c (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]:
      Add new argument to x_clear_area1.
      (XTset_horizontal_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
      Update x_clear_area arguments.
      238e8b66
    • Glenn Morris's avatar
      * admin/charsets/glibc/: New directory, imported from glibc 2.21. · 49fa1919
      Glenn Morris authored
      * admin/charsets/Makefile.in (GLIBC_CHARMAPS):
      Change to included version.
      (LOCAL, local, totalclean): Remove.
      (extraclean): Delete all generated files.
      49fa1919
    • Stefan Monnier's avatar
    • Stefan Monnier's avatar
    • Stefan Monnier's avatar
      tags-completion-at-point-function: Don't trust the find-tag function · 669e01b5
      Stefan Monnier authored
      * lisp/progmodes/etags.el (tags-completion-at-point-function):
      Don't trust the find-tag function.
      669e01b5
    • Paul Eggert's avatar
      Pacify --enable-gcc-warnings · 22191349
      Paul Eggert authored
      * src/frame.h (x_query_color): Remove redundant extern decl.
      * src/ftcrfont.c (ftcrfont_glyph_extents, ftcrfont_list)
      (ftcrfont_match, ftcrfont_open, ftcrfont_close)
      (ftcrfont_text_extents, ftcrfont_draw):
      * src/xterm.c (x_set_window_size_1, *x_color_cells, x_update_end)
      (XTframe_up_to_date, x_clear_area1, x_clear_frame)
      (x_ins_del_lines, frame_highlight, frame_unhighlight)
      (x_new_focus_frame, x_focus_changed, XTframe_rehighlight)
      (x_draw_hollow_cursor, x_draw_bar_cursor, x_flush, x_update_begin)
      (x_update_window_begin, x_connection_closed)
      (x_set_clip_rectangles, x_reset_clip_rectangles, x_fill_rectangle)
      (x_draw_rectangle, x_fill_trapezoid_for_relief, x_clear_window)
      (*x_gc_get_ext_data, x_extension_initialize)
      (x_cr_accumulate_data):
      Remove redundant static decl.  Many of these GCC doesn't complain
      about, but we might as well clean out the duplication while we're
      in the neighborhood.
      * src/xterm.c (x_fill_trapezoid_for_relief):
      Remove decl of nonexistent function.
      22191349
    • Paul Eggert's avatar
      78c9b2e8
    • Stefan Monnier's avatar
      Replace gui-method macros with cl-generic with &context · 919281dd
      Stefan Monnier authored
      * lisp/frame.el (gui-method--name, gui-method, gui-method-define)
      (gui-method-declare, gui-call): Remove.
      (frame-creation-function): Use cl-defgeneric.
      (make-frame): Adjust callers.
      
      * lisp/menu-bar.el (menu-bar-edit-menu):
      Use gui-backend-selection-exists-p.
      
      * lisp/select.el (x-get-clipboard): Use gui-backend-get-selection.
      (gui-backend-get-selection): New cl-generic to replace
      gui-get-selection method.
      (gui-backend-set-selection): New cl-generic to replace
      gui-set-selection method.
      (gui-selection-owner-p): New cl-generic to replace
      gui-selection-owner-p method.
      (gui-backend-selection-exists-p): New cl-generic to replace
      gui-selection-exists-p method.  Adjust all callers.
      
      * lisp/server.el (server-create-window-system-frame): Don't ignore
      window-system spec even when unsupported.
      
      * lisp/simple.el (deactivate-mark): Use new gui-backend-* functions.
      
      * lisp/startup.el (handle-args-function, window-system-initialization):
      Use cl-defgeneric.
      (command-line): Adjust calls accordingly.
      
      * lisp/term/ns-win.el (ns-window-system-initialization): Turn into
      a window-system-initialization method.
      (handle-args-function, frame-creation-function): Use cl-defmethod.
      (gui-set-selection, gui-selection-owner-p, gui-selection-exists-p)
      (gui-get-selection): Use cl-defmethod on the new functions instead.
      
      * lisp/term/pc-win.el (w16-get-selection-value): Turn into
      a gui-backend-get-selection method.
      (gui-selection-exists-p, gui-selection-owner-p, gui-set-selection):
      Use cl-defmethod on the new functions instead.
      (msdos-window-system-initialization): Turn into
      a window-system-initialization method.
      (frame-creation-function, handle-args-function): Use cl-defmethod.
      
      * lisp/term/w32-win.el (w32-window-system-initialization): Turn into
      a window-system-initialization method.
      (handle-args-function, frame-creation-function): Use cl-defmethod.
      (gui-set-selection, gui-selection-owner-p, gui-selection-exists-p)
      (gui-get-selection): Use cl-defmethod on the new functions instead.
      
      * lisp/term/x-win.el (x-window-system-initialization): Turn into
      a window-system-initialization method.
      (handle-args-function, frame-creation-function): Use cl-defmethod.
      (gui-set-selection, gui-selection-owner-p, gui-selection-exists-p)
      (gui-get-selection): Use cl-defmethod on the new functions instead.
      
      * lisp/term/xterm.el (xterm--set-selection): Turn into
      a gui-backend-set-selection method.
      
      * src/nsselect.m (Fns_selection_exists_p): Remove unused arg `terminal'.
      (Fns_selection_owner_p): Remove unused arg `terminal'.
      (Fns_get_selection): Remove unused args `time_stamp' and `terminal'.
      919281dd
    • Eli Zaretskii's avatar
      Revert "Fix etags Bug#20629 that broke C++ support." · dc4484ec
      Eli Zaretskii authored
      This reverts commit 13dd9d4f.
      dc4484ec
    • Jan D's avatar
      Fix etags Bug#20629 that broke C++ support. · 13dd9d4f
      Jan D authored
      * etags.el (etags-xref-find-definitions-tag-order): Revert commit
      from Sun May 10 (Bug#20629).
      13dd9d4f
    • Jan D's avatar
      Merge branch 'cairo'. · c03c7304
      Jan D authored
      Main work done by YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>.
      Small fixes and image work by Jan D. <jan.h.d@swipnet.se>.
      c03c7304
    • Jan D's avatar
      Merge branch 'master' into cairo · 6aaa489d
      Jan D authored
      6aaa489d
    • Jan D's avatar
      Fixes to compile cairo branch without cairo. · ee14727c
      Jan D authored
      * src/gtkutil.c (xg_update_scrollbar_pos): x_clear_area takes frame as
      first argument.
      
      * src/xterm.c (handle_one_xevent): Surround x_cr_destroy_surface with
      USE_CAIRO.
      ee14727c
    • Artur Malabarba's avatar
      * lisp/emacs-lisp/package.el: Always update selected-packages · 7ac84a25
      Artur Malabarba authored
      (package--update-selected-packages): New function.
      (package-menu-execute): Use it before starting the transaction,
      this way the list of selected packages is updated even when the
      transaction fails.
      (package-menu--perform-transaction): Don't edit selected-packages.
      7ac84a25
    • Eli Zaretskii's avatar
      Fix etags reading of compressed files · 1f83c3e5
      Eli Zaretskii authored
      * lib-src/etags.c (O_CLOEXEC) [WINDOWSNT]: Define.
      Include fcntl.h, for O_CLOEXEC.
      (process_file_name): Don't use 'popen', whose streams cannot be
      rewound.  Instead, uncompress the file to a temporary file,
      created by 'etags_mktmp', and read from that as usual.
      (etags_mktmp): New function.
      
      * test/etags/ETAGS.good_1:
      * test/etags/ETAGS.good_2:
      * test/etags/ETAGS.good_3:
      * test/etags/ETAGS.good_4:
      * test/etags/ETAGS.good_5: Update to be consistent with latest
      changes in etags.c regarding reading compressed files.
      1f83c3e5
    • Eli Zaretskii's avatar
      Improve documentation of 'set-fontset-font' · b8e18b63
      Eli Zaretskii authored
      * doc/lispref/display.texi (Fontsets): Document the value of nil
      for the 3rd argument of 'set-fontset-font'.
      b8e18b63
    • Eli Zaretskii's avatar
      Fix documentation of forward-line · d6dfefe4
      Eli Zaretskii authored
      * src/cmds.c (Fforward_line): Clarify the return value if the line
      at end of accessible portion of the buffer has no newline.
      * doc/lispref/positions.texi (Text Lines): Document what happens
      if the line at end of accessible portion of buffer has no newline.
      
      (Bug#20587)
      d6dfefe4
  3. 22 May, 2015 8 commits
    • Glenn Morris's avatar
    • Glenn Morris's avatar
      fa560755
    • Glenn Morris's avatar
      * Makefile.in: Add admin/charsets into top-level clean rules. · 50ecfcd6
      Glenn Morris authored
      (clean): Add admin/charsets.
      (maybeclean_dirs): New variable.
      (distclean, bootstrap-clean, maintainer-clean): Use $maybeclean_dirs.
      50ecfcd6
    • Glenn Morris's avatar
      2bf7996a
    • Artur Malabarba's avatar
    • Glenn Morris's avatar
      Generate admin/charsets Makefile via configure, and make more portable. · e7bc85db
      Glenn Morris authored
      * configure.ac (SUBDIR_MAKEFILES): Add admin/charsets/Makefile.
      (admin/charsets/Makefile): Generate it.
      * admin/charsets/Makefile.in: Rename from Makefile.
      (AWK, srcdir, top_srcdir, AM_DEFAULT_VERBOSITY):
      New variables, set by configure.
      (charsetdir, lispintdir, mapfiledir, AM_V_GEN, am__v_GEN_)
      (am__v_GEN_0, am__v_GEN_1, AM_V_at, am__v_at_, am__v_at_0)
      (am__v_at_1, LOCAL, mapconv, run_mapconv, big5, compact, cp51932)
      (cp932, eucjp_ms, gb180302, gb180304, kuten): New variables.
      (TRANS_TABLE, CHARSETS): Add directory prefix to value.
      (all): Declare PHONY.
      (local): New PHONY target.
      (map_template): New template.  Use to define short PHONY aliases.
      (*.map): Add directory prefixes to targets and prerequisites.
      Respect make verbosity.
      (JISC6226.map): Replace non-portable sed append without newline.
      (install): Remove rule.
      (clean): Only delete temporary sedscript.
      (bootstrap-clean, distclean, maintainer-clean, extraclean)
      (totalclean): New PHONY rules.
      * admin/charsets/mapconv (BASE): Replace basename with expr.
      (FILE): Add "mapfiles" subdirectory.
      (AWK): New variable.  Use throughout in place of "awk".
      (main): Use "gunzip -c" in place of "zcat".
      Don't leave whitespace before "p", for older sed.
      * admin/charsets/mapfiles/PTCP154: Add final newline,
      to make older sed versions happy.
      ; * .gitignore: Ignore admin/charsets/Makefile.
      e7bc85db
    • Stefan Monnier's avatar
      * lisp/autorevert.el: Use lexical-binding. Fix hook usage. · 9e41e0bc
      Stefan Monnier authored
      (global-auto-revert-ignore-buffer, auto-revert-notify-modified-p)
      (auto-revert-notify-watch-descriptor): Use defvar-local.
      (find-file-hook, auto-revert-tail-mode, )
      (auto-revert-notify-add-watch): Use setq-local.
      (auto-revert-notify-add-watch): Don't call make-local-variable on
      kill-buffer-hook (bug#20601).
      9e41e0bc
    • Stefan Monnier's avatar
      Change defgeneric so it doesn't completely redefine the function · ea925919
      Stefan Monnier authored
      * lisp/emacs-lisp/cl-generic.el (cl-generic-define): Don't throw away
      previously defined methods.
      (cl-generic-define-method): Let-bind purify-flag instead of using `fset'.
      (cl--generic-prefill-dispatchers): Only define during compilation.
      (cl-method-qualifiers): Remove redundant alias.
      (help-fns-short-filename): Silence byte-compiler.
      * test/automated/cl-generic-tests.el: Adjust to new defgeneric semantics.
      ea925919
  4. 21 May, 2015 7 commits