1. 25 May, 2015 14 commits
    • Philipp Stephani's avatar
      * lisp/term/xterm.el: Add gui-get-selection support via OSC-52 · 816a2b36
      Philipp Stephani authored
      (xterm--extra-capabilities-type): Add `getSelection'.
      (xterm--query): Add `no-async' argument.
      (xterm--init-activate-get-selection): New function.
      (terminal-init-xterm): Use it.
      (xterm--init-modify-other-keys): Rename from
      terminal-init-xterm-modify-other-keys.
      (xterm--init-bracketed-paste-mode): Rename from
      terminal-init-xterm-bracketed-paste-mode.
      (xterm--init-activate-set-selection): Rename from
      terminal-init-xterm-activate-set-selection.
      (xterm--selection-char): New function.
      (gui-backend-set-selection): Use it.  Use the &context to only apply
      this method in terminals where we enabled the feature.
      (gui-backend-get-selection): New method.
      816a2b36
    • Daniel Colascione's avatar
      Add C-language keyword constants to C++ · 49c8458d
      Daniel Colascione authored
      * lisp/progmodes/cc-langs.el (c-constant-kwds): Add C-language
      keyword constants to C++.
      49c8458d
    • Paul Eggert's avatar
      Make TAGS files more portable to MS-Windows · 1efdf7fe
      Paul Eggert authored
      * etc/NEWS: Document this.
      * lib-src/etags.c (readline_internal) [DOS_NT]:
      Don't treat CRs differently from GNUish hosts.
      * lisp/progmodes/etags.el (etags-goto-tag-location):
      Adjust STARTPOS to account for the skipped CRs in dos-style files.
      1efdf7fe
    • Michael Albinus's avatar
      175a07a1
    • Eli Zaretskii's avatar
      Fix a typo in last commit · ac59d538
      Eli Zaretskii authored
      * lib-src/etags.c (C_entries): Fix a typo.
      
      * 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:
      * test/etags/CTAGS.good: Update due to the change in etags.c.
      ac59d538
    • Eli Zaretskii's avatar
      Fix tagging of class members in C-like OO languages · 9c66c5a0
      Eli Zaretskii authored
      * lib-src/etags.c (longopts): Add new option --class-qualify and
      its shorthand -Q.
      (print_help): Add help text for --class-qualify.
      (main): Add handling of -Q.
      (consider_token, C_entries) <omethodparm>: Append argument types
      to Objective C methods only if --class-qualify was specified.
      Qualify C++, Objective C, and Java class members with their class
      names only if --class-qualify was specified.
      (C_entries): If --class-qualify was not specified, remove the
      namespace and class qualifiers from tag names of C++ methods.
      This allows to use etags.el as xref back-end without the
      tag-symbol-match-p method, which greatly increases the number of
      potentially false positives.  (Bug#20629)
      
      * doc/man/etags.1: Update to document the new --class-qualify
      option.
      
      * 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:
      * test/etags/CTAGS.good: Update due to changes in etags.c.
      9c66c5a0
    • Stefan Monnier's avatar
      (cl-generic-define-method): Side effects are evil (bug#20644) · 9b995d55
      Stefan Monnier authored
      * lisp/emacs-lisp/cl-generic.el (cl-generic-define-method): Don't reuse
      cons-cells that might be used as keys in an `equal' hash-table.
      9b995d55
    • Lars Magne Ingebrigtsen's avatar
      Make erc timestamps visible again · 969f3fb2
      Lars Magne Ingebrigtsen authored
      * lisp/erc/erc-stamp.el (erc-munge-invisibility-spec): Make
      timestamps visible again (if requested).
      969f3fb2
    • Eli Zaretskii's avatar
      Fix last change in etags.c that broke tagging compresed files · adc846ad
      Eli Zaretskii authored
      * lib-src/etags.c (process_file_name) [MSDOS || DOS_NT]: Fix
      quoting of decompression shell command for MS-Windows/MS-DOS.
      adc846ad
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/cl-macs.el (cl-tagbody): Scope cl--tagbody-alist · b15c6395
      Stefan Monnier authored
      Fixes: debbugs:20639
      b15c6395
    • Michael Albinus's avatar
      Fix typo in 89035e24 · 6b442df4
      Michael Albinus authored
      6b442df4
    • Orivej Desh's avatar
      Fix IPv6 addresses in Tramp · 93760219
      Orivej Desh authored
      * lisp/net/tramp-sh.el (tramp-make-copy-program-file-name):
      Add sqare brackets around host name.
      
      Copyright-paperwork-exempt: yes
      93760219
    • Michael Albinus's avatar
      Inhibit `epa-file-handler' in Tramp · 89035e24
      Michael Albinus authored
      Fixes: debbugs:20634
      
      * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-via-buffer)
      (tramp-sh-handle-insert-file-contents-literally): Inhibit also
      `epa-file-handler'.
      89035e24
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/pcase.el: Use PAT rather than UPAT in docstring · dde09cdb
      Stefan Monnier authored
      (pcase-let): Document the behavior in case the pattern doesn't match.
      dde09cdb
  2. 24 May, 2015 8 commits
    • Artur Malabarba's avatar
      * lisp/emacs-lisp/tabulated-list.el: New optional print method · c205098b
      Artur Malabarba authored
      (tabulated-list-print): New optional argument, UPDATE.  If
      non-nil, the list is printed by only adding and deleting the
      changed entries, instead of erasing the whole buffer.  This method
      is much faster when few or no entries have changed.
      
      * doc/lispref/modes.texi (Tabulated List Mode): Document it.
      
      * etc/NEWS: Document it.
      c205098b
    • Artur Malabarba's avatar
      * lisp/emacs-lisp/tabulated-list.el: Improve printing · d3835098
      Artur Malabarba authored
      (tabulated-list--get-sorter): New function.
      (tabulated-list-print): Restore window-line when remember-pos is
      passed and optimize away the `nreverse'.
      d3835098
    • Paul Eggert's avatar
      Simpilify etags TEX mode scanning · 675c90a3
      Paul Eggert authored
      * lib-src/etags.c (TEX_mode, TEX_esc, TEX_opgrp, TEX_clgrp):
      Remove static vars.
      (TeX_commands): Deduce escapes here instead.
      (TEX_LESC, TEX_SESC, TEX_mode): Remove; all uses removed.
      This removes the need for a reset_input call.
      675c90a3
    • Paul Eggert's avatar
      Improve etags I/O error reporting · 379d77df
      Paul Eggert authored
      * lib-src/etags.c:
      Don't include sys/types.h and sys/stat.h; no longer needed.
      (infilename): New static var.
      (process_file_name): Don't call 'stat'.  Instead, just open the
      file for reading and report any errors.  Don't bother making
      a copy of the file argument; it's not needed.  Be more careful to
      use the failing errno when reporting an error.
      Quote the real name better (though no perfectly)
      when passing it to the shell.
      (reset_input): New function, which reports I/O errors.
      All uses of 'rewind' changed to use this function.
      (perhaps_more_input): New function, which also checks for
      I/O errors.  All uses of 'feof' changed to use this function.
      (analyze_regex): Report an error if fclose fails.
      (readline_internal): Report an error if getc fails.
      (etags_mktmp): Return an error if close fails.
      379d77df
    • Paul Eggert's avatar
      etags.c: avoid side effects in 'if' · 3441b0cc
      Paul Eggert authored
      * lib-src/etags.c (process_file_name, Perl_functions)
      (TEX_decode_env): Hoist side effects into previous statement.
      3441b0cc
    • Paul Eggert's avatar
      .gitignore tweaks · efa6f10a
      Paul Eggert authored
      * .gitignore: Ignore all *.stamp files.  Sort.
      Ignore [0-9]*.txt (commonly used name for git patches)
      and /vc-dwim-log-* (vc-dwim temporary).
      efa6f10a
    • Glenn Morris's avatar
      ; Auto-commit of ChangeLog files. · 319d65c7
      Glenn Morris authored
      319d65c7
    • Eli Zaretskii's avatar
      Fix last change in etags.c, which failed the test suite · b98a2ef7
      Eli Zaretskii authored
      * lib-src/etags.c (intoken): Add '$' to the set, as it was there
      before the last change.
      b98a2ef7
  3. 23 May, 2015 18 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