1. 16 Nov, 2016 2 commits
    • Tino Calancha's avatar
      Update parameter :version to 26.1 in several defcustom · 5ffdbe0a
      Tino Calancha authored
      Following defcustom where added or modified for 25.2 release.
      In fact all these changes belong to 26.1 release.
      * lisp/battery.el (battery-linux-sysfs-regexp)
      * lisp/comint.el (comint-password-prompt-regexp)
      * lisp/dired.el (dired-always-read-filesystem)
      * lisp/image.el (image-scaling-factor)
      * lisp/ibuf-ext.el (ibuffer-never-search-content-name)
      (ibuffer-never-search-content-mode)
      * lisp/mouse.el (mouse-select-region-move-to-beginning)
      * lisp/net/net-utils.el (iwconfig-program, iwconfig-program-options)
      (netstat-program, route-program, route-program-options)
      * lisp/net/sieve-manage.el (sieve-manage-default-stream)
      * lisp/progmodes/grep.el (grep-save-buffers)
      * lisp/vc/add-log.el (change-log-directory-files)
      * lisp/url/url-vars.el (url-user-agent)
      * lisp/vc/vc-hg.el (vc-hg-symbolic-revision-styles)
      (vc-hg-use-file-version-for-mode-line-version)
      (vc-hg-parse-hg-data-structures)
      * lisp/wdired.el (wdired-create-parent-directories)
      * lisp/faces.el (homoglyph, nobreak-hyphen, read-multiple-choice-face)
      * lisp/gnus/gnus-art.el (gnus-article-encrypt-protocol)
      (gnus-button-url-regexp)
      * lisp/window.el (switch-to-buffer-preserve-window-point)
      * lisp/ibuffer.el (ibuffer-formats, ibuffer-locked-char)
      (ibuffer-locked-buffer)
      * lisp/textmodes/flyspell.el (flyspell-sort-corrections-function)
      * lisp/emacs-lisp/edebug.el (edebug-sit-on-break)
      * lisp/gnus/message.el (message-user-fqdn)
      * lisp/simple.el (shell-command-dont-erase-buffer)
      (extended-command-suggest-shorter)
      * lisp/net/shr.el (shr-use-fonts)
      * lisp/files.el (mounted-file-systems, kill-emacs-query-functions)
      5ffdbe0a
    • Glenn Morris's avatar
      Add --new-daemon, which runs in the foreground and does not fork · 36b99556
      Glenn Morris authored
      This is intended for modern init systems such as systemd,
      which manage many of the traditional aspects of daemon behavior
      themselves.  (Bug#2677)
      * src/emacs.c (daemon_type): New integer.
      (usage, standard_args): Add --old-daemon and --new-daemon.
      (main): Handle --old-daemon and --new-daemon arguments.
      Restrict all the forking and complicated daemon stuff to old-daemon.
      (Fdaemon_initialized): Handle new-style daemon.
      * src/lisp.h (IS_DAEMON, DAEMON_RUNNING) [!WINDOWNT]:
      Replace daemon_pipe with daemon_type.
      * doc/emacs/cmdargs.texi (Initial Options):
      * doc/emacs/glossary.texi (Glossary):
      * doc/emacs/misc.texi (Emacs Server):
      * doc/lispref/display.texi (Window Systems):
      * doc/lispref/os.texi (Startup Summary): Related doc updates.
      * etc/NEWS: Mention this.
      * etc/emacs.service: Use Type=simple and --new-daemon.
      36b99556
  2. 15 Nov, 2016 10 commits
  3. 14 Nov, 2016 9 commits
    • Eli Zaretskii's avatar
      Revert "Improve case-insensitive checks (Bug#24441)" · 4b870309
      Eli Zaretskii authored
      This reverts commit 2f5e0b1b.
      I see no reason for removing code, documentation, and comments
      in the original commit.
      4b870309
    • Wilson Snyder's avatar
      Update verilog-mode.el · eda171a9
      Wilson Snyder authored
      * verilog-mode.el (verilog-read-decls, verilog-calc-1): Fix
      "default clocking" indentation and preventing AUTOs from working,
      bug1084.  Reported by Alan Morgan.
      (verilog-diff-report): Fix `verilog-diff-report'
      not returning bad status on differences, bug1087.  Reported by
      Eric Jackowski.
      (verilog-auto-inst-param-value)
      (verilog-auto-inst-param-value-type, verilog-read-sub-decls)
      (verilog-read-sub-decls-expr, verilog-read-sub-decls-gate)
      (verilog-read-sub-decls-line, verilog-read-sub-decls-sig)
      (verilog-read-sub-decls-type): When
      `verilog-auto-inst-param-value-type' is set, which is now the
      default, AUTOINPUT etc will now substitute parameter types from
      submodules, bug1061.  Reported by Brad Dobbie.
      (verilog-auto-reset, verilog-backward-case-item)
      (verilog-extended-case-re, verilog-read-always-signals-recurse):
      Fix indentation of randcase, bug1072. Reported by David Rogoff.
      (verilog-read-sub-decls-expr)
      (verilog-sig-multidim-string): Fix AUTOINST ordering of dimensions
      in generated comments, bug1057. Reported by Kaushal Modi.
      (verilog-auto-wire-comment, verilog-insert-definition):
      Add `verilog-auto-wire-comment' to suppress wire comments. Reported by
      Eric Jackowski.
      (verilog-extended-complete-re): Fix indentation
      of class static functions, bug1053. Reported by Gregory
      Czajkowski.
      (verilog-module-filenames): Support tramp for
      finding verilog modules. Reported by Nevada Sanchez.
      eda171a9
    • Paul Eggert's avatar
      Improve case-insensitive checks (Bug#24441) · 2f5e0b1b
      Paul Eggert authored
      * doc/lispref/files.texi (Truenames): Simplify documentation,
      to avoid giving too much platform-specific information that
      may not be accurate anyway.
      * src/fileio.c (file_name_case_insensitive_p): Use pathconf with
      _PC_CASE_SENSITIVE if _PC_CASE_INSENSITIVE is not available.
      Otherwise if one approach fails (e.g., with errno == EINVAL), fall
      back on an alternative rather than returning false.  Try skipping
      the Darwin code, as it (1) no longer seems to be needed and (2)
      does not seem to match the Apple documentation.  Leave in two
      alternatives conditionally compiled based on
      DARWIN_OS_CASE_SENSITIVE_FIXME in case (1) or (2) is incorrect.
      2f5e0b1b
    • Eli Zaretskii's avatar
      Fix documentation changes of connection-local variables · 3625e6ce
      Eli Zaretskii authored
      * etc/NEWS: Fix last change.
      * doc/lispref/variables.texi (Connection Local Variables): Minor fixes.
      * doc/lispref/elisp.texi (Top): Update the master menu.
      3625e6ce
    • Michael Albinus's avatar
      Implement connection-local variables · 6647e051
      Michael Albinus authored
      * doc/lispref/variables.texi (Connection Local Variables): New section.
      
      * etc/NEWS: Mention connection-local variables.
      
      * lisp/files-x.el (enable-connection-local-variables)
      (connection-local-variables-alist, connection-local-class-alist)
      (connection-local-criteria-alist): New defvars.
      (connection-local-get-classes)
      (connection-local-get-class-variables): New defsubst.
      (connection-local-set-classes)
      (connection-local-set-class-variables)
      (hack-connection-local-variables)
      (hack-connection-local-variables-apply): New defuns.
      (with-connection-local-classes): New defmacro.
      
      * lisp/net/tramp.el (tramp-set-connection-local-variables): New defun.
      
      * lisp/net/tramp-adb.el (tramp-adb-maybe-open-connection):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
      * lisp/net/lisp/net/tramp-sh.el (tramp-maybe-open-connection):
      * lisp/net/tramp-smb.el (tramp-smb-maybe-open-connection): Use it.
      
      * test/lisp/files-x-tests.el: New file.
      6647e051
    • Tino Calancha's avatar
      tabulated-list: extend truncation into next align-right column · db436133
      Tino Calancha authored
      See discussion on:
      https://lists.gnu.org/archive/html/emacs-devel/2016-10/msg01101.html
      * lisp/emacs-lisp/tabulated-list.el
      (tabulated-list--near-rows): New variable.
      (tabulated-list-print, tabulated-list-set-col): Use it.
      (tabulated-list--col-local-max-widths): New defsubst.
      (tabulated-list-print-col): Use it.  If the next column is
      align-right, and has some space left then don't truncate to width,
      use some of the available space from the next column.
      db436133
    • Katsumi Yamaoka's avatar
    • Katsumi Yamaoka's avatar
      * lisp/net/shr.el (shr-tag-table): Avoid duplication of images. · 99e7b99e
      Katsumi Yamaoka authored
      (shr-collect-extra-strings-in-table): Render images as well.
      99e7b99e
    • Ken Brown's avatar
      Use the new 'file-name-case-insensitive-p' function · cbed4283
      Ken Brown authored
      * lisp/international/mule.el (auto-coding-alist-lookup):
      * lisp/files.el (file-truename):
      (abbreviate-file-name, set-auto-mode, file-relative-name):
      * package.el (package-untar-buffer): Use
      'file-name-case-insensitive-p' instead of 'system-type' to test
      case-insensitivity.
      cbed4283
  4. 13 Nov, 2016 6 commits
    • Glenn Morris's avatar
      Include a systemd user unit file. (Bug#16507) · 181bd848
      Glenn Morris authored
      * etc/emacs.service: New file.
      * doc/emacs/misc.texi (Emacs Server): Mention systemcl --user.
      * Makefile.in (libdir): New, set by configure.
      (systemdunitdir): New variable.
      (install-etc, uninstall): Handle the emacs.service file.
      181bd848
    • Paul Eggert's avatar
      Port --enable-gcc-warnings to Ubuntu 16.10 · 9b3a853a
      Paul Eggert authored
      * src/gmalloc.c: Include <stdlib.h>, so it declares
      hybrid_aligned_alloc (the definiens of the aligned_alloc macro),
      so that GCC doesn't complain that hybrid_aligned_alloc is
      defined without being declared.
      9b3a853a
    • Ken Brown's avatar
      Silence tramp warning · a611d7d7
      Ken Brown authored
      * lisp/net/tramp.el (tramp-file-name-for-operation): Add
      'file-name-case-insensitive-p' as a known file primitive.
      (Bug#24936)
      a611d7d7
    • Ken Brown's avatar
      Check case-sensitivity when renaming files · 2809012c
      Ken Brown authored
      * src/fileio.c (file_name_case_insensitive_p)
      (Ffile_name_case_insensitive_p):  New functions.
      (Frename_file): Allow renames that simply change case when the
      FILE argument is on a case-insensitive filesystem.  (Bug#24441)
      
      * lisp/dired-aux.el (dired-do-create-files): Use
      'file-name-case-insensitive-p' instead of 'system-type' to check
      for case-insensitivity.  (Bug#24441)
      
      * doc/lispref/files.texi (Truenames): Document
      'file-name-case-insensitive-p'.
      2809012c
    • Ken Brown's avatar
      Unbreak the build on Cygwin · 462804da
      Ken Brown authored
      * configure.ac (system_malloc) [CYGWIN]: Unset.
      462804da
    • Mark Oteiza's avatar
      ; Fix thinko · 3958002f
      Mark Oteiza authored
      * lisp/auth-source.el (auth-source-backend-parse-parameters): Contain
      cl-return within cl-dolist.
      3958002f
  5. 12 Nov, 2016 1 commit
    • Mark Oteiza's avatar
      Update chart.el · 05881644
      Mark Oteiza authored
      * lisp/emacs-lisp/chart.el (chart-mode): Derive from special-mode.
      (chart-draw): Wrap in with-silent-modifications.  Instead of inserting a
      fixed number of newlines, use window-height.
      (chart-bar):
      (chart-trim): Use dolist.
      (chart-file-count): The previous implementation was buggy and missed
      extensions.  Use file-name-extension instead to detect file extensions.
      Also use dolist and cl-incf to reduce verbosity.
      05881644
  6. 11 Nov, 2016 2 commits
  7. 09 Nov, 2016 3 commits
    • Eli Zaretskii's avatar
      Resurrect 'memory-limit' on MS-Windows · 2bb02a37
      Eli Zaretskii authored
      * nt/mingw-cfg.site (ac_cv_func_sbrk): Set to "yes", otherwise
      'memory-limit' will produce a trivial and useless result on Windows.
      2bb02a37
    • Mark Oteiza's avatar
      Update quickurl.el · 86cbd942
      Mark Oteiza authored
      * lisp/net/quickurl.el (quickurl-format-function):
      (quickurl-sort-function): Use named function.
      (quickurl-list-mode-map): Remove lines that are extraneous now that the
      parent mode is special-mode.
      (quickurl-format-url, quickurl-sort-urls): New functions.
      (quickurl-read, quickurl): Use defun, as no cl-defun feature appears to
      be used.
      (quickurl-list-mode): Derive from special-mode.  Nix setting
      buffer-read-only: special-mode does that.
      (quickurl-list-populate-buffer): Use dolist instead.
      (quickurl-list-quit): Use quit-window.  It looks like this was written
      before the quit-window rewrite.  quit-window is very useful now.
      86cbd942
    • Michael Albinus's avatar
      Refine multi-hop specs in Tramp · dba9bc97
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-tramp-file-p): Suppress "/:" and "/c:".
      
      * test/lisp/net/tramp-tests.el
      (tramp-test01-file-name-syntax): Multi-hop specs don't need a
      method.  "/h:" is allowed on non MS Windows.
      dba9bc97
  8. 08 Nov, 2016 7 commits
    • Daniel Colascione's avatar
      Avoid infloop in python · 112111c4
      Daniel Colascione authored
      Fix bug#24905
      
      * lisp/progmodes/python.el (python-info-docstring-p): Improve
      infloop avoidance: replace (bobp) with generic test for
      forward progress.
      * test/lisp/progmodes/python-tests.el (python-bob-infloop-avoid): Add
      test for bug#24905
      112111c4
    • Daniel Colascione's avatar
      Make gnus/message.el work correctly under lexical binding · 06cfaa3d
      Daniel Colascione authored
      * lisp/gnus/message.el (message-send-mail): Rename `arg' to
      `_' to shut up the byte compiler.
      (sha1-maximum-internal-length, smtpmail-smtp-server)
      (smtpmail-smtp-service): add missing defvars
      06cfaa3d
    • Michael Albinus's avatar
      Fix Bug#24889 · 39c0b8b6
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-file-name-regexp): Make it a
      defvar.  Fix docstring.
      (tramp-completion-file-name-handler-alist): Fix docstring.
      (tramp-register-file-name-handlers): Reassign
      `tramp-file-name-regexp' to the car of
      `tramp-file-name-structure'.  (Bug#24889)
      39c0b8b6
    • Paul Eggert's avatar
      Port to FreeBSD 11 AMD · 3b5e6774
      Paul Eggert authored
      Problem reported by Ashish Shukla (Bug#24892).  I tested
      this on FreeBSD 11 x86-64 with HAVE_SBRK manually undefined.
      * configure.ac (system_malloc): Set to 'yes' if there is no sbrk.
      (sbrk): Check whether it exists.
      * src/alloc.c (my_heap_start) [!GNU_LINUX]:
      Do not define, since this function is now used only on GNU/Linux,
      and sbrk might not exist on other platforms.
      (malloc_initialize_hook) [!GNU_LINUX]:
      Do not call my_heap_start, since its side effect will never be used.
      (Fmemory_limit) [!HAVE_SBRK]: Do not call sbrk.
      * src/unexelf.c (unexec) [!HAVE_SBRK]: Assume that nothing like
      sbrk exists.
      3b5e6774
    • Paul Eggert's avatar
      Port emacsclient to FreeBSD 11 etc. · 86baa208
      Paul Eggert authored
      * lib-src/emacsclient.c: Include <string.h>.  This is needed on
      platforms like FreeBSD 11 that use code involving strlen etc., and
      because <config.h> no longer includes string.h.
      86baa208
    • Mark Oteiza's avatar
      Prescribe history for read-regexp in query-replace · d3e22a12
      Mark Oteiza authored
      In the fix for bug#24580, the history argument for read-regexp was
      removed erroneously; read-regexp's history argument defaults to
      regexp-history, not minibuffer-history.
      * lisp/replace.el (query-replace-read-from): Tell read-regexp to use
      minibuffer-history.  Fixes bug#24873.
      d3e22a12
    • Mark Oteiza's avatar
      Remove obsolete default-FOO variables · 73d47d22
      Mark Oteiza authored
      * etc/NEWS: Indicate the removed variables.
      * lisp/emacs-lisp/edebug.el (edebug-outside-mark): Fix comment.
      * lisp/subr.el (default-mode-line-format, default-header-line-format):
      (default-line-spacing, default-abbrev-mode, default-ctl-arrow):
      (default-truncate-lines, default-left-margin, default-tab-width):
      (default-case-fold-search, default-left-margin-width):
      (default-right-margin-width, default-left-fringe-width):
      (default-right-fringe-width, default-fringes-outside-margins):
      (default-scroll-bar-width, default-vertical-scroll-bar):
      (default-indicate-empty-lines, default-indicate-buffer-boundaries):
      (default-fringe-indicator-alist, default-fringe-cursor-alist):
      (default-scroll-up-aggressively, default-scroll-down-aggressively):
      (default-fill-column, default-cursor-type):
      (default-cursor-in-non-selected-windows):
      (default-buffer-file-coding-system, default-major-mode):
      (default-enable-multibyte-characters): Remove obsolete declarations.
      * src/buffer.c (default-mode-line-format, default-header-line-format):
      (default-line-spacing, default-abbrev-mode, default-ctl-arrow):
      (default-truncate-lines, default-left-margin, default-tab-width):
      (default-case-fold-search, default-left-margin-width):
      (default-right-margin-width, default-left-fringe-width):
      (default-right-fringe-width, default-fringes-outside-margins):
      (default-scroll-bar-width, default-vertical-scroll-bar):
      (default-indicate-empty-lines, default-indicate-buffer-boundaries):
      (default-fringe-indicator-alist, default-fringe-cursor-alist):
      (default-scroll-up-aggressively, default-scroll-down-aggressively):
      (default-fill-column, default-cursor-type):
      (default-cursor-in-non-selected-windows):
      (default-buffer-file-coding-system, default-major-mode):
      (default-enable-multibyte-characters): Remove.
      * src/fileio.c (choose_write_coding_system): Fix comment.
      * src/lisp.h (DEFVAR_BUFFER_DEFAULTS): Remove.
      73d47d22