1. 22 Aug, 2016 6 commits
  2. 21 Aug, 2016 7 commits
    • Noah Friedman's avatar
      Fix interpretation of signed vs unsigned values when retrieving X · 7a6b3d0f
      Noah Friedman authored
      Window properties, and make sure the full value is returned when not
      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.
    • Noam Postavsky's avatar
      Improve error when installing non-package dirs · 14a86f83
      Noam Postavsky authored
      * lisp/emacs-lisp/package.el (package-dir-info): Throw meaningful error
      when no file with package info is found (Bug #19851).
    • Alan Mackenzie's avatar
      Adapt CC Mode for C++11 uniform initialization. · 578d9aaf
      Alan Mackenzie authored
      For fontification, introduce a new "context", 'non-decl, to be used for
      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.
    • Paul Eggert's avatar
      Update from gnulib · 1f730256
      Paul Eggert authored
      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.
    • Paul Eggert's avatar
      ; Spelling fixes · 886b9ed8
      Paul Eggert authored
    • Paul Eggert's avatar
      Minor text-quoting-style fixes · b1601a95
      Paul Eggert authored
      * 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.
    • Martin Rudalics's avatar
      Fix semantics of 'minibuffer' frame parameter · 1a1062d6
      Martin Rudalics authored
      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:
      * 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
      * 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.
  3. 20 Aug, 2016 2 commits
    • Alan Mackenzie's avatar
    • Alan Mackenzie's avatar
      In c-\(go-\)?-\(up-\|down-\)?list-\(forward\|backward\) check limit isn't nil · 43201d71
      Alan Mackenzie authored
      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
  4. 19 Aug, 2016 4 commits
    • Robert Cochran's avatar
      * lisp/emacs-lisp/map.el (map--dispatch): Fix docstring · a4ba426d
      Robert Cochran authored
      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).
    • Alan Mackenzie's avatar
      Amend hack-local-variables-prop-line not always to return any mode on line 1. · 4a80c8bb
      Alan Mackenzie authored
      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.
    • Daiki Ueno's avatar
      Improve doc string of epg-*-program · 72ef0c8b
      Daiki Ueno authored
      * lisp/epg-config.el (epg-gpg-program, epg-gpgsm-program):
      Suggest to use Customize when setting.  (Bug#24229)
    • Tino Calancha's avatar
      Add tests for Bug#24264 · a4fa3115
      Tino Calancha authored
      * test/lisp/emacs-lisp/cl-seq-tests.el (cl-seq-test-bug24264):
      Add test for Bug#24264.
      (cl-seq-fill-test, cl-seq-replace-test)
      (cl-seq-remove-test ,cl-seq-delete-test)
      (cl-seq-remove-duplicates-test, cl-seq-substitute-test)
      (cl-seq-nsubstitute-test, cl-seq-position-test)
      (cl-seq-count-test, cl-seq-mismatch-test)
      (cl-seq-search-test, cl-seq-test-bug24264):
      Add tests for all functions in the file; test all keywords.
  5. 18 Aug, 2016 5 commits
  6. 17 Aug, 2016 6 commits
  7. 16 Aug, 2016 6 commits
    • Karl Fogel's avatar
      Improve doc string. · 527bf164
      Karl Fogel authored
      * src/fileio.c (Ffile_name_as_directory): Be precise about the
      conditions under which a slash is appended.
    • Paul Eggert's avatar
      Omit substitute-command-keys code no longer needed · 4b1b8dd8
      Paul Eggert authored
      * src/doc.c (Fsubstitute_command_keys):
      Remove duplicate initializations.
    • Martin Rudalics's avatar
      In NEWS describe new handling of window margins (Bug#24193) · 8c2946e2
      Martin Rudalics authored
      * etc/NEWS: Describe new handling of margins when splitting or
      resizing windows (Bug#24193).
    • Tino Calancha's avatar
      Allow not erase output buffer in shell commands · c7119916
      Tino Calancha authored
      * lisp/simple.el (shell-command-not-erase-buffer): New option to allow
      not erasing the output buffer between shell commands.  Defaults to nil.
      (shell-command-on-region): Use it.
      (shell-command--save-pos-or-erase): New defun; store a buffer position
      if 'shell-command-not-erase-buffer' is non-nil; otherwise
      erase the output buffer of the shell command.
      (shell-command, shell-command-on-region): Use it.
      (shell-command--set-point-after-cmd): New defun;
      if 'shell-command-not-erase-buffer' is non-nil, set point
      in the output buffer to the position in 'shell-command-saved-pos'.
      (shell-command-sentinel, shell-command-on-region): Use it.
      * doc/emacs/misc.texi (shell-command-not-erase-buffer):
      Document this feature in the manual.
      ; * etc/NEWS: Add entry for this new feature.
      See discussion on:
    • Michael Albinus's avatar
      Rearrange Tramp manual title page · 57839847
      Michael Albinus authored
      * doc/misc/tramp.texi: Move @insertcopying out of the title
      page.  Do not use @ifnottex anymore.
    • Martin Rudalics's avatar
      Facultatively ignore margins when splitting and resizing windows (Bug#24193) · 0cee66c3
      Martin Rudalics authored
      Provide a new window parameter 'min-margins' which allows to
      ignore the actual widths of a window's margins when splitting or
      resizing that window horizontally.  This should serve as a
      workaround for handling the problems raised by Bug#24193.
      * lisp/window.el (window--min-size-1): Handle new window
      parameter 'min-margins'.
      (split-window): Fix text of error messages.
      * doc/lispref/windows.texi (Window Parameters): Describe new
      parameter 'min-margins'.
  8. 15 Aug, 2016 4 commits
    • Glenn Morris's avatar
    • Alan Mackenzie's avatar
      Fix minor bug in c-syntactic-re-search-forward. · 15c16a5d
      Alan Mackenzie authored
      Bug was: when NOERROR is neither nil nor t, BOUND is non-nil, PAREN-LEVEL is
      non-nil, and the first internal search attempt fails, point wrongly ends up at
      BOUND, rather than just before the next closing paren.
      * lisp/progmodes/cc-engine.el (c-syntactic-re-search-forward): Guard against
      the above situation.
    • Alan Mackenzie's avatar
      Handle C++11 lambda functions. · ce1ed9c8
      Alan Mackenzie authored
      * lisp/progmodes/cc-engine.el (c-looking-at-inexpr-block): Enhance also to
      handle C++ lambda functions.
      (c-looking-at-c++-lambda-capture-list): New function.
      * lisp/progmodes/cc-fonts.el (c-font-lock-declarations): Recognize the
      parameter list of a lambda function and set `context' and
      `c-restricted-<>-arglists' suitably for it.
      (c-font-lock-c++-lambda-captures): New function.
      (c-complex-decl-matchers): Insert c-font-lock-c++-lambda-captures into it.
      * lisp/progmodes/cc-langs.el (c-pre-lambda-tokens, c-pre-lambda-tokens-re):
      New language constants/variables.
      (c-paren-nontype-kwds): Include "noexcept" in the C++ value.
      * lisp/progmodes/cc-mode.el (c-fl-decl-start): Handle being in a C++ lambda
      function capture list.
    • Michael Albinus's avatar
      Fix stale cache problem in Tramp · 9c2ce577
      Michael Albinus authored
      * lisp/net/tramp-cache.el (tramp-get-connection-property):
      Check, that a process as key is still running.  (Bug#22478)