1. 22 Aug, 2016 5 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
      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.
      7a6b3d0f
    • 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).
      14a86f83
    • 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
      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.
      578d9aaf
    • 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.
      1f730256
    • Paul Eggert's avatar
      ; Spelling fixes · 886b9ed8
      Paul Eggert authored
      886b9ed8
    • 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.
      b1601a95
    • 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:
      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.
      1a1062d6
  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
      narrow-to-region.
      43201d71
  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).
      a4ba426d
    • 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.
      4a80c8bb
    • 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)
      72ef0c8b
    • 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.
      a4fa3115
  5. 18 Aug, 2016 5 commits
  6. 17 Aug, 2016 6 commits
  7. 16 Aug, 2016 4 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.
      527bf164
    • 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.
      4b1b8dd8
    • 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:
      http://lists.gnu.org/archive/html/emacs-devel/2016-07/msg00610.html
      c7119916
    • 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.
      57839847
  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.
      15c16a5d
    • 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.
      ce1ed9c8
    • 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)
      9c2ce577
  9. 14 Aug, 2016 3 commits
    • Paul Eggert's avatar
      9c2ea5cd
    • Eli Zaretskii's avatar
      Another fix for scroll-conservatively and overlay strings · 7aaeb86f
      Eli Zaretskii authored
      * src/xdisp.c (redisplay_window): Handle also the case where the
      calculated window-start point has an overlay string touching it.
      (Bug#24179)
      7aaeb86f
    • Michael Albinus's avatar
      Improve handling of defcustoms in tramp · 59720dc1
      Michael Albinus authored
      * doc/misc/tramp.texi: Protect all multi-line examples by
      @group ... @end group.  Use proper `custom-set-variables'
      examples.  Use consequently @option for user options.  Remove
      superfluous @cindex and @vindex entries.
      (Top): Remove reference to outdated mail archives.
      (Configuration): Tune references.
      (Default Method): Make `tramp-default-method' and
      `tramp-default-method-alist' a @defopt.
      (Default User): Make `tramp-default-user' and
      `tramp-default-user-alist' a @defopt.
      (Default Host): Make `tramp-default-host' and
      `tramp-default-host-alist' a @defopt.
      
      * lisp/net/tramp.el (tramp-mode, tramp-verbose)
      (tramp-backup-directory-alist, tramp-auto-save-directory)
      (tramp-encoding-shell, tramp-encoding-command-switch)
      (tramp-encoding-command-interactive, tramp-default-method)
      (tramp-default-method-alist, tramp-default-user)
      (tramp-default-user-alist, tramp-default-host)
      (tramp-default-host-alist, tramp-default-proxies-alist)
      (tramp-save-ad-hoc-proxies)
      (tramp-restricted-shell-hosts-alist)
      (tramp-local-end-of-line, tramp-rsh-end-of-line)
      (tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
      (tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
      (tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
      (tramp-terminal-prompt-regexp)
      (tramp-operation-not-permitted-regexp)
      (tramp-copy-failed-regexp, tramp-process-alive-regexp)
      (tramp-syntax, tramp-chunksize)
      (tramp-process-connection-type, tramp-connection-timeout)
      (tramp-connection-min-time-diff)
      (tramp-completion-reread-directory-timeout):
      * lisp/net/tramp-adb.el (tramp-adb-program)
      (tramp-adb-connect-if-not-connected, tramp-adb-prompt):
      * lisp/net/tramp-cache.el (tramp-connection-properties)
      (tramp-persistency-file-name):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
      (tramp-gvfs-zeroconf-domain)
      (tramp-bluez-discover-devices-timeout):
      * lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
      (tramp-copy-size-limit, tramp-terminal-type)
      (tramp-histfile-override)
      (tramp-use-ssh-controlmaster-options, tramp-remote-path)
      (tramp-remote-process-environment, tramp-sh-extra-args):
      * lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
      (tramp-smb-conf, tramp-smb-winexe-program)
      (tramp-smb-winexe-shell-command)
      (tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
      59720dc1