Permalink
Commits on Aug 25, 2016
  1. Fix an infinite loop in C++ Mode when we have "{ .... [ .... }"

    * lisp/progmodes/cc-fonts.el (c-font-lock-c++-lambda-captures): In the inner
    `while' form's condition, check for "\\s)" rather than merely "\\]", so that
    the loop won't hang at a "terminating" paren of a different type (due to the
    c-syntactic-re-search-forward at the end of the loop stopping at such
    characters).
    Alan Mackenzie committed Aug 25, 2016
  2. @calancha

    call-shell-region: New defun

    Suggested by Stefan Monnier in Bug#22679.
    * lisp/subr.el (call-shell-region): New defun; execute a command
    in an inferior shell with the buffer region as input.
    * lisp/simple.el (shell-command-on-region): Use it.
    * lisp/gnus/message.el (message-do-fcc): Idem.
    * doc/lispref/processes.texi: Document call-shell-region in the manual.
    ;* etc/NEWS: Add entry for this new function.
    calancha committed Aug 25, 2016
  3. In ‘clone-indirect-buffer’ fix argument mixup (Bug#24306)

    * lisp/simple.el (clone-indirect-buffer): Add value for ACTION
    argument in `pop-to-buffer' call (Bug#24306).
    Martin Rudalics committed Aug 25, 2016
  4. Some fixes around `delete-other-frames' and `next-frame'

    * src/frame.c (Fdelete_frame): Clarify doc-string.
    * lisp/frame.el (delete-other-frames): Delete other frames on
    FRAME's terminal instead of the current terminal.  Delete
    non-minibuffer-only surrogate frames too.  See
    http://lists.gnu.org/archive/html/emacs-devel/2016-08/msg00467.html
    * doc/lispref/frames.texi (Deleting Frames): Minor fixes for
    docs of `delete-frame' and `frame-live-p'.  Add entry for
    `delete-other-frames'.
    (Finding All Frames): Fix doc of `next-frame'.
    Martin Rudalics committed Aug 25, 2016
Commits on Aug 24, 2016
  1. @larsmagne

    Find message.el thumbnail toggling

    * lisp/gnus/message.el (message-toggle-image-thumbnails):
    Don't infloop when toggling thumbnails.
    larsmagne committed Aug 24, 2016
  2. @alanthird

    Fix macOS 12 deprecation notices

    * src/nsterm.h: Add #defines to allow older versions of macOS to use the
    new constant names.
    * src/nsmenu.m: Replace old constant names with
    new.
    (fillWithWidgetValue): Remove calls to deprecated
    setMenuChangedMessagesEnabled.
    * src/nsterm.m: Replace old constant names with new.
    * src/nsfns.m: Replace old constant names with new.
    alanthird committed Aug 18, 2016
  3. Analyze and fontify correctly a C++ `enum' with colon, but lacking a …

    …tag.
    
    * lisp/progmodes/cc-engine.el (c-backward-typed-enum-colon): Check for "enum"
    directly preceding the colon, and handle it.
    Alan Mackenzie committed Aug 24, 2016
  4. @noahfriedman

    * src/xfns.c (Fx_change_window_property): Modify previous change.

    Instead of forcing format to 8 for strings, check that the length of
    the string is appropriate for whatever format given.
    (Fx_window_property_attributes): If prop isn't found on frame's inner window,
    try its outer window.  This mimics the behavior of Fx_window_property.
    noahfriedman committed Aug 24, 2016
Commits on Aug 23, 2016
  1. @larsmagne

    Fix invalid image rotations

    * lisp/image.el (image-rotate): Limit rotation to 360 degrees.
    larsmagne committed Aug 23, 2016
  2. @calancha

    call-process instead of call-process-region with empty region

    * lisp/calc/calc-graph.el (calc-graph-show-tty):
    Use call-process and shell-command-switch.
    calancha committed Aug 23, 2016
Commits on Aug 22, 2016
  1. @eggert

    Merge from origin/emacs-25

    927afa1 ; Update ChangeLog.2 and ldef-boot.el for Emacs 25.1 RC2
    6bf83b5 * etc/AUTHORS: Update the AUTHORS file
    73cbb81 ; ChangeLog spelling fixes
    9b99772 Some assorted documentation clarifications
    37d4723 Improve commentary in src/character.h
    5ccd593 ; Fix typo in /etc/NEWS
    96e3d16 * etc/NEWS: Mention the change in json-encode-string.
    2e52403 ; * etc/NEWS: Mention incompatible change in url-http-create...
    2e4e74e Merge branch 'emacs-25' of git.savannah.gnu.org:/srv/git/emac...
    66dea65 ; * doc/lispref/windows.texi (Window Parameters): Grammar twe...
    
    # Conflicts:
    #	ChangeLog.2
    #	lisp/ldefs-boot.el
    eggert committed Aug 22, 2016
  2. @eggert

    ; Merge from origin/emacs-25

    The following commit was skipped:
    
    7d639f3 * src/doc.c (Fsubstitute_command_keys): Another fix for smart...
    eggert committed Aug 22, 2016
  3. @eggert

    Merge from origin/emacs-25

    66dea65 ; * doc/lispref/windows.texi (Window Parameters): Grammar twe...
    eggert committed Aug 22, 2016
  4. @eggert

    ; Merge from origin/emacs-25

    The following commit was skipped:
    
    4225b78 Avoid segfaults due to quoting in 'substitute-command-keys'
    eggert committed Aug 22, 2016
  5. @eggert

    Merge from origin/emacs-25

    8c2946e In NEWS describe new handling of window margins (Bug#24193)
    0cee66c Facultatively ignore margins when splitting and resizing wind...
    8d68147 Document CATEGORY arg to modify-category-entry
    8342e74 Document char-script-table's effect on word motion
    e9ff485 Further fix for 'url-http-create-request' and multibyte strings
    0695235 Fix docstring of eval-expression
    98b01dd Clarify when 'cursor' property is in effect
    75f1882 Convert the remaining strings to unibyte before concatenating
    d2db5dd Fix bug with handling the bidi cache
    ccd0e92 * doc/lispref/text.texi (Change Hooks): Minor copyedits.
    f785ff4 Clarify documentation of before/after-change-functions
    3c9cb57 Document use of vectors in keymaps
    
    # Conflicts:
    #	src/xdisp.c
    eggert committed Aug 22, 2016
  6. @albinus

    Handle remote file names in gdb-mi.el

    * lisp/progmodes/gdb-mi.el (gdb-jsonify-buffer):
    If `default-directory' is remote, full file names are adapted
    accordingly.  (Bug#23608)
    albinus committed Aug 22, 2016
  7. @Eli-Zaretskii

    Display mini-window resized even when there are several frames

    * src/xdisp.c (x_consider_frame_title): Bind inhibit-redisplay to
    t to avoid resizing back the mini-window as result of considering
    the title of other frames.  (Bug#24285)
    (redisplay_window): No need to bind inhibit-redisplay here.
    Eli-Zaretskii committed Aug 22, 2016
  8. @albinus

    Explain gdb warning on remote hosts

    * doc/misc/tramp.texi (Remote processes): Explain gdb warning
    on remote hosts.  (Bug#4604, Bug#6360, Bug#622569)
    albinus committed Aug 22, 2016
  9. Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

    Martin Rudalics committed Aug 22, 2016
  10. Fix (next-frame nil t) crash (Bug#24281)

    * src/frame.c (candidate_frame): Check minibuf argument before
    comparing it to zero (Bug#24281).
    Martin Rudalics committed Aug 22, 2016
Commits on Aug 21, 2016
  1. @NicolasPetton
  2. @NicolasPetton
  3. @noahfriedman

    Fix interpretation of signed vs unsigned values when retrieving X

    Window properties, and make sure the full value is returned when not
    parsed.
    
    New subr to export type and format information about X Window
    properties to lisp.
    
    * src/xselect.c (selection_data_to_lisp_data): Treat any data as
    unsigned unless its actual type is INTEGER.
    CARDINALs, in particular, are unsigned.
    
    * src/xfns.c (Fx_change_window_property): If value is a string, ignore
    any provided format and force to 8.
    (x_window_property_intern): If returning value as a string, the length
    is actual_size times the actual format of each element, which is not
    necessarily bytes.
    (Fx_window_property_attributes): New subr.
    (syms_of_xfns): Declare it.
    noahfriedman committed Aug 21, 2016
  4. Improve error when installing non-package dirs

    * lisp/emacs-lisp/package.el (package-dir-info): Throw meaningful error
    when no file with package info is found (Bug #19851).
    Noam Postavsky committed Jun 25, 2016
  5. Adapt CC Mode for C++11 uniform initialization.

    For fontification, introduce a new "context", 'non-decl, to be used for
    brace
    lists; also a new value for the property 'c-type, called 'c-not-decl.
    
    * lisp/progmodes/cc-engine.el (c-back-over-compound-identifier): Check that
    an ostensible symbol we're going to move over isn't a keyword.
    (c-forward-decl-or-cast-1): CASE 1: Where we have two consecutive identifiers
    (hence a declaration), and an unmatched open paren, perform
    c-fdoc-shift-type-backwards to recognize the partial construct correctly.
    Whilst checking a type decl expression, check for and handle C++11's "copy
    initialization", where we have <type>(<constant>).  Recognize
    <id><id>(... (where the paren is unclosed) as a declaration.
    (c-looking-at-or-maybe-in-bracelist): New function, extracted from
    c-inside-bracelist-p.  Recognize as bracelists "{"s which are preceded by
    valid tokens other than "=".  Recognize a bracelist when preceded by a
    template declaration.
    (c-inside-bracelist-p): Call c-looking-at-or-maybe-in-bracelist in place of
    much inline code.
    (c-looking-at-inexpr-block): Amend so that it won't wrongly recognise an
    initialization starting "({" as an in-expression block, by checking for
    semicolons, as opposed to commas, separating elements inside it.
    (c-guess-continued-construct): (CASE B-2): Recognize a brace-list-open by
    calling c-looking-at-or-maybe-in-bracelist rather than checking for a
    preceding "=".  (CASE B-5): New code to recognize new construct "return {
    ...}".
    (c-guess-basic-syntax): (CASE 5A.3): Additionally recognize a "{" preceded by
    "return", or "{" preceded by <type><identifier> as a bracelist.
    
    * lisp/progmodes/cc-fonts.el (c-font-lock-declarations): Recognize brace
    lists, giving them `context' 'non-decl.  Pass over elements of one by regexp
    search for "," rather than calling c-forward-decl-or-cast-1.
    
    * lisp/progmodes/cc-langs.el (c-return-kwds, c-return-key): New lang
    constants/variables to recognize "return".
    (c-pre-id-bracelist-key): New lang constant/variable to recognize tokens
    which, when preceding an identifier followed by a brace, signify the brace as
    a bracelist.
    
    * lisp/progmodes/cc-mode.el (c-fl-decl-start): When searching outwards for
    the start of a "local" declaration, move out from an enclosing brace when
    that is the start of a brace list.
    Alan Mackenzie committed Aug 21, 2016
  6. @eggert

    Update from gnulib

    This incorporates:
    2016-08-17 maint: preprocessor changes to support z/OS
    2016-08-17 string: rename to avoid '__string'
    * doc/misc/texinfo.tex, lib/alloca.in.h, lib/string.in.h:
    Copy from gnulib.
    eggert committed Aug 21, 2016
  7. @eggert

    ; Spelling fixes

    eggert committed Aug 21, 2016
  8. @eggert

    ; ChangeLog spelling fixes

    eggert committed Aug 21, 2016
  9. @eggert

    Minor text-quoting-style fixes

    * src/charset.c (check_iso_charset_parameter):
    * src/frame.c (store_frame_param):
    * src/xselect.c (x_fill_property_data):
    Use grave accent for left single quote in ‘error’ format strings.
    eggert committed Aug 21, 2016
  10. Fix semantics of 'minibuffer' frame parameter

    The 'minibuffer' frame parameter is now t for a normal frame
    (a frame with a root window plus a minibuffer window) and the
    frame's minibuffer window for a minibuffer-less frame (a frame
    whose minibuffer window is on another frame).  See also:
    https://lists.gnu.org/archive/html/emacs-devel/2016-07/msg01259.html
    
    * src/frame.c (make_frame, make_frame_without_minibuffer)
    (make_minibuffer_frame): When assigning the frame's minibuffer
    window also store corresponding 'minibuffer' frame parameter.
    (store_frame_param): Move the 'minibuffer' parameter checks to
    the beginning so we can silently override the value before it
    gets stored in the parameter alist.  Fix error handling.
    (Fframe_parameters): Return value of 'minibuffer' parameter
    unmodified.
    
    * lisp/frameset.el (frameset-filter-minibuffer): When the cdr of
    the parameter is a minibuffer window, save (minibuffer . nil)
    instead of (minibuffer . t).
    (frameset--reuse-frame): To find a non-minibuffer-only frame
    look out for a frame whose 'minibuffer' parameter is t instead
    of that frame's minibuffer window.
    (frameset-minibufferless-first-p): To find a minibuffer-less
    frame look out for a frame whose 'minibuffer' parameter is a
    window instead of nil.
    Martin Rudalics committed Aug 21, 2016
Commits on Aug 20, 2016
  1. * lisp/progmodes/cc-defs.el (c-safe-scan-lists): Resolve overelaborat…

    …e "nil"
    Alan Mackenzie committed Aug 20, 2016
  2. @phst

    Some assorted documentation clarifications

    * src/fileio.c (Fwrite_region): Clarify that END is ignored if
    START is nil.
    * src/editfns.c (Fbuffer_size): Add short discussion about
    narrowing.
    * src/callproc.c (Fcall_process_region): Discuss behavior when
    START and END are not buffer positions.
    phst committed Aug 19, 2016
  3. In c-\(go-\)?-\(up-\|down-\)?list-\(forward\|backward\) check limit i…

    …sn't nil
    
    Check the limit both at macro expansion time (for a hard coded nil) and at run
    time in the generated code.  Tidy up these macros generally.
    
    * lisp/progmodes/cc-defs.el (c-safe-scan-lists): Check `limit' is present and
    not identically nil before generating a narrow-to-region call.  Generate code
    to check `limit' is not nil at run time.
    (c-go-list-forward, c-go-list-backward): Remove the generation of redundant
    narrow-to-region, instead calling c-safe-scan-lists directly.
    (c-go-up-list-forward, c-go-up-list-backward, c-go-down-list-forward)
    (c-go-down-list-backward): Invoke the corresponding macros without the "go-"
    to determine the destination position instead of generating a redundant
    narrow-to-region.
    Alan Mackenzie committed Aug 20, 2016
Commits on Aug 19, 2016
  1. @RobertCochran @NicolasPetton

    * lisp/emacs-lisp/map.el (map--dispatch): Fix docstring

    The docstring referenced a non-existant parameter, as well as a
    parameter that has been renamed since the docstring was written. Fix
    both errors, fixing (Bug#24182).
    RobertCochran committed with NicolasPetton Aug 19, 2016
  2. Amend hack-local-variables-prop-line not always to return any mode on…

    … line 1.
    
    This fixes bug #24266.
    
    * lisp/files.el (hack-local-variables-prop-line): Change the name of the
    parameter mode-only to handle-mode.  Change its meaning, such that it being
    set to a value non-nil and not t removes any mode parameter from the result
    list.  Leave its values nil and t with the same meanings they had.
    (hack-local-variables): Call hack-local-variables-prop-line appropriately.
    Alan Mackenzie committed Aug 19, 2016