1. 16 Nov, 2015 1 commit
  2. 15 Nov, 2015 16 commits
    • Vasily Korytov's avatar
      Recognize .rbw and .pyw files (bug#18753) · dbc090ae
      Vasily Korytov authored
      * lisp/progmodes/python.el (auto-mode-alist):
      Recognize .pyw files.
      * lisp/progmodes/ruby-mode.el (auto-mode-alist):
      Recognize .rbw files.
    • Dmitry Gutov's avatar
      Fix ruby-mode auto-mode-alist entry · 2edfc40a
      Dmitry Gutov authored
      * lisp/progmodes/ruby-mode.el (auto-mode-alist): Add grouping
      around the extensions (bug#21257).
    • Dmitry Gutov's avatar
      Fix etags completion near eob · f60a3b08
      Dmitry Gutov authored
      * lisp/progmodes/etags.el (tags-completion-at-point-function):
      Use `goto-char', to avoid the end-of-buffer error (bug#20061).
    • Alan Mackenzie's avatar
      De-pessimize detection of C++ member initialization lists. · 4765d24e
      Alan Mackenzie authored
      list/progmodes/cc-engine.el (c-back-over-list-of-member-inits): New macro.
      (c-back-over-member-initializers): Reformulate such that c-at-toplevel-p
      is only called when a construct "looks right" rather than continually.
      (c-guess-basic-syntax, CASE 5R): Add a check for the mode being C++ Mode.
    • Artur Malabarba's avatar
      Backport: * lisp/emacs-lisp/package.el: Fix a decoding issue. · d99ccd6d
      Artur Malabarba authored
      * lisp/url/url-handlers.el (url-insert-file-contents): Move some code to
      (url-insert-buffer-contents): New function
      (package--with-response-buffer): Use `url-insert-buffer-contents'.
      The previous code had some issues with decoding. Refactoring that
      function allows us to use the decoding from url-handlers while still
      treating both sync and async requests the same.
    • Stephen Leake's avatar
      Improve a few doc strings, comments · a6843cce
      Stephen Leake authored
      * lisp/cedet/cedet-global.el (cedet-gnu-global-expand-filename):
      * lisp/cedet/ede/locate.el (ede-locate-base):
      * lisp/cedet/semantic/symref.el (semantic-symref-calculate-rootdir):
      * src/fns.c (Fdelq): Improve doc string.
      * lisp/progmodes/elisp-mode.el (elisp--xref-find-definitions): Add FIXME.
    • Anders Lindgren's avatar
      Enhance NSTRACE (trace output for NextStep). · ae16894d
      Anders Lindgren authored
      Trace can be disabled for groups of functions. By default, event
      functions and functions that generate lots of output are disabled.
      Trace output of Objective-C functions now use the "[ClassName
      parameter:]" form.
      controlling in which function groups trace should be active.
      (NSTRACE_WHEN): Support for silencing a function, this also
      silencing all called functions.
      (NSTRACE_UNSILENCE): New macro, used to re-enable trace.
      (NSTRACE_FMT_FSTYPE, NSTRACE_ARG_FSTYPE): New macros, used to
      print the full screen state in NSTRACE functions.
      * src/nsterm.m (nstrace_depth, nstrace_num): Made volatile as they
      can be accessed from multiple threads.
      (nstrace_enabled_global): New variable, when FALSE, trace is
      (nstrace_restore_global_trace_state): New function, used to
      restore `nstrace_enabled_global' at end of block.
      ([EmacsView setFrame:], [EmacsWindow setFrame:display:])
      ([EmacsWindow setFrame:display:animation:])
      ([EmacsWindow setFrameTopLeftPoint:]): New functions, print trace
      and call corresponding super function.
      (Many functions): Add or enhance trace output.
      * src/nsimage.m (ns_image_from_file): Enhanced trace output.
      * src/nsfns.m (x_set_tool_bar_lines): Add trace output.
      * src/nsmenu.m ([EmacsToolbar setVisible:]): New function, print trace
      and call corresponding super function.
    • Anders Lindgren's avatar
    • Anders Lindgren's avatar
      Fixed a toolbar related issue on OS X. · b36ba568
      Anders Lindgren authored
      Earlier, when toggling the tool-bar in a maximized frame, the
      frame size didn't match the number of text lines, leaving an
      unused area at the bottom of the frame.
      * nsfns.m (x_set_tool_bar_lines): Exit maximized and full height
      fullscreen modes when tool bar is disabled.
    • Anders Lindgren's avatar
      Fixed OS X 10.6.8 build issue (bug#21862). · 63e6f4c8
      Anders Lindgren authored
      * src/nsterm.h (EmacsView): Add missing declarations.
      * src/nsterm.m ([EmacsView windowDidBecomeKey]): New method, like
      the standard method but without the notification parameter.
      Intended to be used for direct calls.
      ([EmacsView windowDidEnterFullScreen]): Call the non-notification
      version of `windowDidBecomeKey'. Made the notification method call
      the non-notification method instead of the vice versa.
      (NSWindowDidEnterFullScreenNotification): Deleted, no longer
    • Artur Malabarba's avatar
      * lisp/faces.el (faces--attribute-at-point): Fix an issue · 4f19767d
      Artur Malabarba authored
      Previous code would signal an error when the face at point was
      a manually built list of attributes such as '(:foregroud "white").
      * test/automated/faces-tests.el (faces--test-color-at-point): Add a test
    • Paul Eggert's avatar
      Fix regex abort when it tries to reenter itself · 8121757b
      Paul Eggert authored
      Problem reported by Ken Raeburn.
      Solution suggested by Stefan Monnier (Bug#21688).
      * src/regex.c (re_match_2_internal):
      Use new _FAST functions to avoid regex code reentering itself.
      * src/syntax.c (update_syntax_table_forward): New arg PROPERTIZE.
      All callers changed.
      (UPDATE_SYNTAX_TABLE_FAST): New inline functions.
    • Dmitry Gutov's avatar
      Improve Ruby 1.9-style keyword keys highlighting · 3a1a220b
      Dmitry Gutov authored
      * lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords):
      Handle required keyword arguments (bug#21367).
      And highlight the colon together with the name.
    • Dmitry Gutov's avatar
      Unify the absolutely equal xref-backend-references implementations · a4c6f55b
      Dmitry Gutov authored
      * lisp/progmodes/elisp-mode.el (xref-backend-references):
      * lisp/progmodes/etags.el (xref-backend-references):
      * lisp/progmodes/xref.el (xref-backend-references):
      Define the default implementation.
    • Dmitry Gutov's avatar
      Update project-find-regexp for the new xref API · 1a3c4541
      Dmitry Gutov authored
      * lisp/progmodes/project.el (project--read-regexp):
      Update to use the new xref API methods.
      * lisp/progmodes/xref.el (xref-find-backend): Autoload.
    • Dmitry Gutov's avatar
      Fix replacing a match with a shorter string · bc2cec6b
      Dmitry Gutov authored
      In effect, partially reverting fe973fc2.
      * lisp/progmodes/xref.el (xref-query-replace): Store the end
      of each match as a marker again, instead of length.
      (xref--query-replace-1): Update accordingly.
  3. 14 Nov, 2015 15 commits
  4. 13 Nov, 2015 8 commits
    • Juri Linkov's avatar
      Support rectangular regions for more commands · 31f6e939
      Juri Linkov authored
      * lisp/simple.el (region-extract-function): Handle the arg value ‘bounds’.
      (region-insert-function): New function.
      (shell-command-on-region): Add arg ‘region-noncontiguous-p’.
      If non-nil, operate on multiple chunks.
      (region-noncontiguous-p): New function.
      * lisp/rect.el: Add function rectangle--insert-region
      around region-insert-function.
      (extract-rectangle-bounds): New function.
      (rectangle--extract-region): Handle the arg value ‘bounds’.
      (rectangle--insert-region): New function.
      * lisp/emulation/cua-rect.el: Add function cua--insert-rectangle
      around region-insert-function.
      (cua--extract-rectangle-bounds): New function.
      (cua--rectangle-region-extract): Handle the arg value ‘bounds’.
      * lisp/replace.el (query-replace, query-replace-regexp): Add arg
      ‘region-noncontiguous-p’.  Use ‘use-region-p’.
      (query-replace-regexp-eval, map-query-replace-regexp)
      (replace-string, replace-regexp): Use ‘use-region-p’.
      (keep-lines, flush-lines, how-many): Use ‘use-region-p’.
      (perform-replace): Add arg ‘region-noncontiguous-p’.
      If non-nil, operate on multiple chunks.
      * src/casefiddle.c (Fdowncase_region): Add arg ‘region-noncontiguous-p’.
      If non-nil, operate on multiple chunks. (Bug#19829)
    • Dmitry Gutov's avatar
      Handle multiple matches on the same line; add highlighting · f103a277
      Dmitry Gutov authored
      * lisp/progmodes/xref.el (xref-location-marker): Interpret the
      column value in characters.
      (xref--collect-matches): Rename from `xref--collect-match'.
      Search for all matches in the hit line.  Add `highlight' face to
      the matched region in the summary.  Update both callers.
    • Dmitry Gutov's avatar
      Replace xref-match-bounds with xref-match-length · fe973fc2
      Dmitry Gutov authored
      Relying on xref-location-marker to point to the beginning of the match
      * lisp/progmodes/xref.el (xref-match-bounds): Remove.
      (xref-match-length): Add.
      (xref-make-match): Change the arguments.
      (xref--match-buffer-bounds): Remove.
      (xref-match-item): Store length, instead of end-column.
      (xref--query-replace-1): Update accordingly.
      (xref-query-replace): Ditto.  And check that the search results
      are up-to-date.
    • John Wiegley's avatar
    • l3thal's avatar
      Merge branch 'erc-async-reconnect' into emacs-25 · 51644c33
      l3thal authored
    • l3thal's avatar
      Reconnect asynchronously. · 68cdc4bd
      l3thal authored
    • Paul Eggert's avatar
      Merge from gnulib · 92a50102
      Paul Eggert authored
      This incorporates:
      2015-11-13 xalloc-oversized: improve performance with GCC 5
      * lib/xalloc-oversized.h: Copy from gnulib.
    • Paul Eggert's avatar
      Spruce up ftfont.c memory allocation · 04ac097f
      Paul Eggert authored
      * src/ftfont.c (setup_otf_gstring):
      Avoid O(N**2) behavior when reallocating.
      (ftfont_shape_by_flt): Prefer xpalloc to xrealloc when
      reallocating buffers; this simplifies the code.  Do not trust
      mflt_run to leave the output areas unchanged on failure, as
      this isn’t part of its interface spec.