1. 23 May, 2015 11 commits
    • 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
  2. 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
  3. 21 May, 2015 9 commits
  4. 20 May, 2015 12 commits