1. 17 Nov, 2015 7 commits
    • Paul Eggert's avatar
      Fix docstring quoting problems with ‘ '’ · ac16149b
      Paul Eggert authored
      Problem reported by Artur Malabarba in:
      Most of these fixes are to documentation; many involve fixing
      longstanding quoting glitches that are independent of the
      recent substitute-command-keys changes.  The changes to code are:
      * lisp/cedet/mode-local.el (mode-local-augment-function-help)
      Substitute docstrings before displaying them.
      * lisp/emacs-lisp/cl-macs.el (cl--transform-lambda):
      Quote the generated docstring for later substitution.
    • Eli Zaretskii's avatar
      Improve configure --help text for wide ints · abf673af
      Eli Zaretskii authored
      * configure.ac (wide-int): Clarify user-level advantages and
    • Stephen Leake's avatar
      Improve doc string · ce4eeca8
      Stephen Leake authored
      * lisp/progmodes/xref.el (xref-backend-references): Improve doc string.
    • Paul Eggert's avatar
      eval_sub followed dangling pointer when debugging · 54beeef1
      Paul Eggert authored
      Problem reported by Pip Cet (Bug#21245).
      This bug could occur in eval_sub if the C compiler reused
      storage associated with the ‘argvals’ local after ‘argvals’
      went out of scope, and if the Elisp debugger stopped on Elisp
      function exit and accessed ‘argvals’.  It could also occur if
      a variadic function was called with so many arguments (over
      2048 args on x86-64) that SAFE_ALLOCA_LISP called malloc, then
      SAFE_FREE freed the arguments, then the memory manager used
      the storage for other purposes, then the debugger accessed the
      * src/eval.c (eval_sub): Declare ‘argvals’ at top level of
      function body.	Simplify local decls.
      When allocating args via SAFE_ALLOCA, call
      debugger before invoking SAFE_FREE, as the debugger needs
      access to the args.
      (eval_sub, apply_lambda): Rework to avoid need for
      set_backtrace_debug_on_exit hack.  This is cleaner,
      and should work better with buggy custom debuggers.
    • Daiki Ueno's avatar
      * lisp/image-mode.el: Support encrypted file · 1721600d
      Daiki Ueno authored
      (image-toggle-display-image): Read content from the buffer instead
      of the file, if the buffer holds a decrypted data.  (Bug#21870)
    • Paul Eggert's avatar
      ELF unexec: align section header · c9fd597a
      Paul Eggert authored
      This ports the recent unexelf.c changes to Fedora x86-64
      when configured with GCC’s -fsanitize=undefined option.
      * src/unexelf.c (unexec): Align new_data2_size to a multiple
      of ElfW (Shdr)’s alignment, so that NEW_SECTION_H returns a
      pointer aligned appropriately for its type.
    • Juanma Barranquero's avatar
  2. 16 Nov, 2015 7 commits
  3. 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.
  4. 14 Nov, 2015 10 commits