]> git.eshelyaron.com Git - emacs.git/log
emacs.git
8 years agobuff-menu: Add command to unmark all buffers
Tino Calancha [Tue, 22 Nov 2016 06:23:50 +0000 (15:23 +0900)]
buff-menu: Add command to unmark all buffers

Bind 'U' in buff-menu, bs and electric-buff-menu to commands
to unmark all buffers (Bug#24880).
* lisp/emacs-lisp/tabulated-list.el (tabulated-list-header-overlay-p):
New predicate; return non-nil if tabulated-list has a fake header.
* lisp/buff-menu.el (Buffer-menu-unmark-all-buffers):
New command; remove all flags that use a particular mark from all the lines.
Bind it to 'M-DEL'.
(Buffer-menu-unmark-all):
New command; remove all flags from all the lines.  Bind it to 'U'.
(Buffer-menu-marker-char, Buffer-menu-del-char): New variables.
(Buffer-menu-delete, Buffer-menu-mark): Use them.
(Buffer-menu-mode-map): Update menus.
(Buffer-menu-mode): Update mode doc.
* lisp/bs.el (bs-unmark-all, bs-unmark-previous): New commands.
(bs-mode-map): Bind them to 'U' and '<backspace>' respectively.
(bs-mode): Update mode doc.
* lisp/ebuff-menu.el (electric-buffer-menu-mode-map):
Bind Buffer-menu-unmark-all to 'U' and Buffer-menu-unmark-all-buffers
to 'M-DEL'.
(bs--down, bs-down, bs--up, bs-up, bs-unmark-current, bs-mark-current):
Use point instead of cursor in doc string.
(electric-buffer-list): Update mode doc.
* doc/emacs/buffers.texi (Several Buffers): Mention Buffer-menu-unmark-all
and Buffer-menu-unmark-all-buffers.
; * etc/NEWS: Add an entry per each new feature.

8 years agoRevert "* lisp/htmlfontify.el (hfy-force-fontification): Use font-lock-ensure."
Mark Oteiza [Tue, 22 Nov 2016 04:05:47 +0000 (23:05 -0500)]
Revert "* lisp/htmlfontify.el (hfy-force-fontification): Use font-lock-ensure."

This reverts commit 10efaf718c5258af0ba62077cf4e2aaf9fb90227.

8 years agoPort htmlfontify to cl-lib
Mark Oteiza [Mon, 21 Nov 2016 19:50:15 +0000 (14:50 -0500)]
Port htmlfontify to cl-lib

* lisp/htmlfontify.el: (hfy-box-to-border-assoc, hfy-box-to-style):
(hfy-decor, hfy-face-to-style-i, hfy-face-at, hfy-merge-adjacent-spans):
(hfy-fontify-buffer, htmlfontify-string, hfy-mark-tag-names): Replace
instances of cl aliases with their cl-lib counterparts.

8 years ago* lisp/htmlfontify.el (hfy-force-fontification): Use font-lock-ensure.
Mark Oteiza [Mon, 21 Nov 2016 17:56:15 +0000 (12:56 -0500)]
* lisp/htmlfontify.el (hfy-force-fontification): Use font-lock-ensure.

8 years agoFix another CANNOT_DUMP problem
Paul Eggert [Mon, 21 Nov 2016 16:42:12 +0000 (08:42 -0800)]
Fix another CANNOT_DUMP problem

Reported by Robert Pluim in:
http://lists.gnu.org/archive/html/emacs-devel/2016-11/msg00468.html
* src/emacs.c (might_dump) [CANNOT_DUMP]: Move enum decl from here ...
* src/lisp.h: ... to here.

8 years agoAdd further consideration to string-width (Bug#24972)
Mark Oteiza [Mon, 21 Nov 2016 09:19:51 +0000 (04:19 -0500)]
Add further consideration to string-width (Bug#24972)

* lisp/ibuffer.el (ibuffer-compile-make-eliding-form):
(ibuffer-compile-make-substring-form): Use truncate-string-to-width.

8 years agoDon't collect strings existing out of <tr>...</tr>
Katsumi Yamaoka [Mon, 21 Nov 2016 08:21:27 +0000 (08:21 +0000)]
Don't collect strings existing out of <tr>...</tr>

* lisp/net/shr.el (shr-collect-extra-strings-in-table):
Don't collect strings existing out of <tr>...</tr> to avoid
duplication with what `shr-tag-table' renders.

8 years ago* lisp/gnus/gnus-mh.el (gnus-summary-save-in-folder): Slightly change
Katsumi Yamaoka [Mon, 21 Nov 2016 06:40:01 +0000 (06:40 +0000)]
* lisp/gnus/gnus-mh.el (gnus-summary-save-in-folder): Slightly change
the last commit.

8 years agoAdd a variable to pass additional options to rcvstore
Mike Kupfer [Mon, 21 Nov 2016 06:10:13 +0000 (06:10 +0000)]
Add a variable to pass additional options to rcvstore

* lisp/gnus/gnus-mh.el (gnus-rcvstore-options): New variable.
(gnus-summary-save-in-folder): Include gnus-rcvstore-options in
the arguments that are passed to rcvstore.

cf. <nntp://news.gmane.org/gmane.emacs.gnus.general/87263>
and followups, i.e., ding mailing list.

8 years agoFix undefined refs on some GNU/Linux hosts
Paul Eggert [Mon, 21 Nov 2016 04:55:35 +0000 (20:55 -0800)]
Fix undefined refs on some GNU/Linux hosts

Problem reported by Ken Raeburn in:
http://lists.gnu.org/archive/html/emacs-devel/2016-11/msg00463.html
* src/emacs.c (heap_bss_diff) [CANNOT_DUMP]: Remove, as this is
not needed in the CANNOT_UNDUMP case.  All uses removed.  This
removes unwanted references to my_endbss and my_endbss_static,
which are not optimized away on some platforms.

8 years agoMake CANNOT_DUMP work better on GNU/Linux
Paul Eggert [Mon, 21 Nov 2016 00:57:17 +0000 (16:57 -0800)]
Make CANNOT_DUMP work better on GNU/Linux

Clean up some of the bitrot affecting the CANNOT_DUMP code.  This
lets the build succeed again, and fixes the testing framework so
that most test cases now pass.  About twenty test cases still
fail, though, and we still have Bug#24974.
* configure.ac (CANNOT_DUMP): Now empty if CANNOT_DUMP.
(SYSTEM_MALLOC): Now true if CANNOT_DUMP.  There should no longer
be any point to messing with a private memory allocator unless
Emacs is dumping.
* src/alloc.c (alloc_unexec_pre, alloc_unexec_post, check_pure_size):
* src/image.c (reset_image_types):
* src/lastfile.c (my_endbss, _my_endbss, my_endbss_static):
Do not define if CANNOT_DUMP.
* src/emacs.c (might_dump) [CANNOT_DUMP]: Now always false and local.
(daemon_pipe) [!WINDOWSNT]: Now static.
* test/Makefile.in (mostlyclean): Remove *.tmp files.
(make-test-deps.mk): Elide CANNOT_DUMP chatter.

8 years ago* src/xdisp.c (block_buffer_flips, unblock_buffer_flips): Now static.
Paul Eggert [Mon, 21 Nov 2016 00:33:40 +0000 (16:33 -0800)]
* src/xdisp.c (block_buffer_flips, unblock_buffer_flips): Now static.

8 years agoPacify --enable-gcc-warnings CANNOT_DUMP=yes
Paul Eggert [Sun, 20 Nov 2016 21:24:53 +0000 (13:24 -0800)]
Pacify --enable-gcc-warnings CANNOT_DUMP=yes

* src/editfns.c (dump_tz_string) [CANNOT_DUMP || !HAVE_TZSET]:
Do not define.  If defining, do it in a smaller scope.

8 years ago* lisp/ibuffer.el (ibuffer-compile-format): Use string-width instead of length
Mark Oteiza [Sun, 20 Nov 2016 18:55:28 +0000 (13:55 -0500)]
* lisp/ibuffer.el (ibuffer-compile-format): Use string-width instead of length

8 years agoFix redrawing non-selected frame after resize on MS-Windows
Eli Zaretskii [Sun, 20 Nov 2016 17:28:37 +0000 (19:28 +0200)]
Fix redrawing non-selected frame after resize on MS-Windows

* src/xdisp.c (redisplay_internal): If all the frames were
successfully updated, reset the "garbaged" flag of each frame, to
make sure it doesn't stay set.

* src/w32term.c (w32_read_socket): Don't clear the frame if it's
"garbaged", since expose_frame won't redraw the foreground then.
(Bug#24642)

8 years agoAdd file-local-name
Michael Albinus [Sun, 20 Nov 2016 15:29:47 +0000 (16:29 +0100)]
Add file-local-name

* doc/lispref/files.texi (Magic File Names): Add `file-local-name'.
(Unique File Names): Use it.

* etc/NEWS: Mention `file-local-name'.

* lisp/files.el (file-local-name): New defun.
(file-expand-wildcards):
* lisp/eshell/em-tramp.el (eshell/su, eshell/sudo):
* lisp/eshell/esh-ext.el (eshell-remote-command):
* lisp/eshell/esh-proc.el (eshell-gather-process-output):
* lisp/org/ob-core.el (org-babel-local-file-name):
* lisp/progmodes/gud.el (gud-common-init, gud-format-command):
* lisp/progmodes/python.el (python-shell-send-file):
* lisp/shell.el (shell):
* lisp/vc/ediff-diff.el (ediff-same-file-contents):
* lisp/vc/vc-git.el (vc-git-checkin): Use it.

8 years ago* lisp/ibuffer.el (ibuffer-formats): Mention locked column in doc string.
Tino Calancha [Sun, 20 Nov 2016 14:03:36 +0000 (23:03 +0900)]
* lisp/ibuffer.el (ibuffer-formats): Mention locked column in doc string.

8 years ago* src/editfns.c (format-time-string): Mention %q in doc string.
Tino Calancha [Sun, 20 Nov 2016 06:38:11 +0000 (15:38 +0900)]
* src/editfns.c (format-time-string): Mention %q in doc string.

8 years agoDocument format-time-string %q
Paul Eggert [Sun, 20 Nov 2016 00:15:29 +0000 (16:15 -0800)]
Document format-time-string %q

* doc/lispref/os.texi (Time Parsing):
* etc/NEWS: Document new %q functionality taken from gnulib.

8 years agoMerge from gnulib
Paul Eggert [Sun, 20 Nov 2016 00:00:57 +0000 (16:00 -0800)]
Merge from gnulib

This incorporates:
2016-11-15 sys_time: add gnulib::timeval for C++
2016-11-14 snippet/c++defs: fix real-floating arg functions in C++ mode
2016-11-13 strftime: don't use __THROW
2016-11-12 strftime: tune %q
2016-11-12 Merge strftime.c changes from glibc
2016-11-09 manywarnings: fix -Wno-missing-field-initializers detection
2016-11-05 strftime,strptime: support %q to represent the quarter

The glibc changes in turn incorporate the following strftime.c changes:
2015-10-20 Convert misc function definitions to prototype style
2015-09-26 [BZ #18985] out of range data to strftime() causes segfault
2010-01-09 Add support for XPG7 testing
2009-10-30 Implement Burmese language locale for Myanmar
2008-06-13 [BZ #6612] pass reference to tzset_called around
2007-10-16 [BZ #5184] Add tzset_called argument

* build-aux/snippet/c++defs.h, lib/strftime.c, lib/sys_time.in.h:
* m4/manywarnings.m4: Copy from gnulib.

8 years ago; Spelling fixes
Paul Eggert [Sat, 19 Nov 2016 22:57:40 +0000 (14:57 -0800)]
; Spelling fixes

8 years agoMerge from origin/emacs-25
Paul Eggert [Sat, 19 Nov 2016 22:43:25 +0000 (14:43 -0800)]
Merge from origin/emacs-25

07f45d7 ; Spelling fix
1a210f0 * admin/release-process: Update versions and blocking bug num...
36bafc9 Improve documentation of functions that accept time values

# Conflicts:
# admin/release-process
# src/editfns.c

8 years ago; Merge from origin/emacs-25
Paul Eggert [Sat, 19 Nov 2016 22:31:06 +0000 (14:31 -0800)]
; Merge from origin/emacs-25

The following commit was skipped:

a37c08d Speed up initialization by preferring /dev/urandom to GnuTLS

8 years agoMerge from origin/emacs-25
Paul Eggert [Sat, 19 Nov 2016 22:31:05 +0000 (14:31 -0800)]
Merge from origin/emacs-25

4af5981 Add a comment in generated refcards about the source
ef880a5 ; * etc/refcards/calccard.tex: Remove obsolete comment.
4887e7c js-mode: Fix indent problem after a regexp
e992ac0 Fix sluggish display of symbols in UTF-8 language environment
1fc101b Don't confuse how Texinfo outputs @var with the input
91aa5d1 * doc/lispref/display.texi (Scroll Bars): * doc/lispref/frame...
f758fcd * doc/emacs/cmdargs.texi (Initial Options): Copyedit for --da...
5b0cddd More fixes in copyright notices in etc/refcards/
f994c20 Update copyright text in refcards
9ad2ae7 Fix Outline command names
26c3554 Send text received by bracketed paste to process
db0b58d Correct the statement about programming modes always running ...
78aece4 Improve documentation of 'occur'
eb364fd Do call debugger on failed cl-assert
3ef4ee8 Avoid infloop in python
8da810f Don't refer to obsolete FEATURE-unload-hook
4f478ca Improve documentation of dabbrevs
7272e5d * lisp/chistory.el (list-command-history): Doc fix.  (Bug#24890)
89b7482 * lisp/simple.el (set-mark-command): Doc fix.  (Bug#24890)
3b199f7 Improve documentation of some Help commands
93d3a0e Fix documentation of yes-or-no prompts
af04919 Fix documentation of partial completion style
ed80184 Fix documentation of the mode line on emacsclient frames
e6be855 Fix description of 'C-z' in User manual
16f7007 Improve and clarify documentation of Outline Mode
31d93aa Add Emacs version number to nt/README.W32
0b6b815 Fix python-mode hideshow regexp
dc152c5 Modernize usage of 'macOS' in doc and comments
84c5343 Prefer comments /* like this */ in C code
bb61e50 * doc/lispref/loading.texi (Autoload): Better link (Bug#24845).
3ef86fd Clarify documentation of face attribute functions
de51d59 ; * nt/README.W32: Minor copyedits.
db436e9 Don't call debug on failed cl-assert

# Conflicts:
# doc/emacs/cmdargs.texi
# etc/NEWS
# etc/PROBLEMS
# lisp/auth-source.el
# lisp/net/tramp-sh.el

8 years ago; Spelling fix
Paul Eggert [Sat, 19 Nov 2016 22:11:08 +0000 (14:11 -0800)]
; Spelling fix

8 years agoPort RefTeX to cl-lib
Mark Oteiza [Sat, 19 Nov 2016 18:34:24 +0000 (13:34 -0500)]
Port RefTeX to cl-lib

* lisp/textmodes/reftex-auc.el:
* lisp/textmodes/reftex-cite.el: Use cl-lib.
(reftex-do-citation, reftex-create-bibtex-file): Substitute cl-lib
macros.
* lisp/textmodes/reftex-dcr.el: Use cl-lib.
(reftex-view-regexp-match): Substitute cl-lib macro.
* lisp/textmodes/reftex-global.el: Use cl-lib.
(reftex-find-duplicate-labels, reftex-renumber-simple-labels):
(reftex-translate): Substitute cl-lib macros.
* lisp/textmodes/reftex-index.el: Use cl-lib.
(reftex-index, reftex-index-select-tag, reftex-index-mode-map):
(reftex-index-next-phrase, reftex-index-phrases-info):
(reftex-query-index-phrase): Substitute cl-lib macros.
* lisp/textmodes/reftex-parse.el: Use cl-lib.
(reftex-parse-from-file, reftex-where-am-I, reftex-what-macro):
(reftex-nth-arg, reftex-init-section-numbers, reftex-section-number):
Substitute cl-lib macros.
* lisp/textmodes/reftex-ref.el: Use cl-lib.
(reftex-uniquify-label, reftex-offer-label-menu): Substitute cl-lib
macros.
* lisp/textmodes/reftex-sel.el: Use cl-lib.
(reftex-select-shared-map): Set keymap parent to special-mode-map.
Flatten loop and remove digits and hyphen definitions from the map.
(reftex-select-label-mode-map):
(reftex-select-bib-mode-map): Use cl-lib macro, and flatten other loop.
(reftex-insert-docstruct, reftex-select-unmark): Use cl-lib macros.
* lisp/textmodes/reftex-vars.el (reftex-vref-is-default): Use
cl-pushnew.
* lisp/textmodes/reftex.el: Use cl-lib.
(reftex-docstruct-symbol): Use cl-incf.
(reftex-ref-style-toggle): Replace add-to-list with append.
(reftex-compile-variables): Use cl-lib macros, and functions with
compiler macros. cl-first is just an alias.
(reftex-parse-args, reftex-scanning-info-available-p):
(reftex-select-external-document, reftex-get-file-buffer-force): Use
cl-lib macros.
(reftex-isearch-minor-mode): Replace add-to-list with append.

8 years agoibuffer-exchange-filters: Simplify code
Tino Calancha [Sat, 19 Nov 2016 11:48:17 +0000 (20:48 +0900)]
ibuffer-exchange-filters: Simplify code

* lisp/ibuf-ext.el (ibuffer-exchange-filters): Use cl-rotatef.

8 years agoImplement getrlimit and setrlimit for MS-Windows
Eli Zaretskii [Sat, 19 Nov 2016 10:17:23 +0000 (12:17 +0200)]
Implement getrlimit and setrlimit for MS-Windows

* src/w32heap.c (getrlimit, setrlimit): New functions.
Include w32.h.
* src/emacs.c (main): Use 'rlim_t', not 'long', for values that
should be compatible with 'struct rlimit' members.

* nt/inc/sys/resource.h: New header file.

* nt/mingw-cfg.site (ac_cv_func_getrlimit, ac_cv_func_setrlimit):
Set to "yes".

8 years ago* admin/release-process: Update versions and blocking bug numbers.
Eli Zaretskii [Sat, 19 Nov 2016 07:23:33 +0000 (09:23 +0200)]
* admin/release-process: Update versions and blocking bug numbers.

8 years agoMove key mappings into reftex-mode-map defvar
Mark Oteiza [Sat, 19 Nov 2016 01:19:17 +0000 (20:19 -0500)]
Move key mappings into reftex-mode-map defvar

* lisp/textmodes/reftex.el (reftex-mode-map): Assimilate top-level
key mappings.
(reftex-reset-mode): Just use dolist.

8 years agoDerive reftex-index-mode from special-mode
Mark Oteiza [Sat, 19 Nov 2016 01:06:05 +0000 (20:06 -0500)]
Derive reftex-index-mode from special-mode

* lisp/textmodes/reftex-index.el (reftex-index-mode-map): Flatten
loop.  Remove digit keys and hyphen, as reftex-index-mode is derived
from special-mode now.
(reftex-index-mode): Derive from special-mode.
(reftex-index-phrases-mode-map): Flatten loop. Fix erroneous docstring.

8 years agoClean up reftex-toc-mode-map
Mark Oteiza [Sat, 19 Nov 2016 00:36:18 +0000 (19:36 -0500)]
Clean up reftex-toc-mode-map

* lisp/textmodes/reftex-toc.el: Remove cl.
(reftex-toc-mode-map): Flatten loop.  Remove mapping digit keys and
hyphen, as reftex-toc-mode is derived from special-mode nowadays.

8 years agoPrevent dubious argument lists
Philipp Stephani [Wed, 9 Nov 2016 22:13:52 +0000 (23:13 +0100)]
Prevent dubious argument lists

See Bug#24912 and Bug#24913.

* src/eval.c (funcall_lambda): Detect more dubious argument lists.
* lisp/emacs-lisp/bytecomp.el (byte-compile-check-lambda-list): Detect
more dubious argument lists.
* test/src/eval-tests.el (eval-tests--bugs-24912-and-24913): Add unit
test.

8 years agoAdd test suite for buff-menu.el
Tino Calancha [Fri, 18 Nov 2016 15:17:50 +0000 (00:17 +0900)]
Add test suite for buff-menu.el

* test/lisp/buff-menu-tests.el: New file.
(buff-menu-24962): Add test for Bug#24962.

8 years agoImprove documentation of functions that accept time values
Eli Zaretskii [Fri, 18 Nov 2016 11:02:34 +0000 (13:02 +0200)]
Improve documentation of functions that accept time values

* doc/lispref/os.texi (Time Calculations): Mention the meaning of
'nil' or a scalar number as the time-value argument.  Add a
cross-reference to 'float-time' for computing a time difference as
a scalar number of seconds.

* src/editfns.c (Fformat_time_string, Ftime_less_p)
(Ftime_subtract, Ftime_add, Fdecode_time, Fcurrent_time_string)
(Fcurrent_time_zone): Mention in the doc strings the meaning of
nil argument and the fact that a time value can be a scalar number
of seconds since the epoch.
(Ftime_subtract): Mention 'float-time'.

8 years agoAdd cyrillic-tuvan input method
Wojciech Gac [Fri, 18 Nov 2016 09:58:36 +0000 (11:58 +0200)]
Add cyrillic-tuvan input method

* lisp/leim/quail/cyrillic.el ("cyrillic-tuvan"): New input
method.  (Bug#24942)

* etc/NEWS: Mention addition of 'cyrillic-tuvan' input method.

Copyright-paperwork-exempt: yes

8 years agoExtend 'indent-relative' when its arg is non-nil
Alex [Fri, 18 Nov 2016 09:02:55 +0000 (11:02 +0200)]
Extend 'indent-relative' when its arg is non-nil

* lisp/indent.el (indent-relative-maybe): New obsolete alias.
(indent-relative-first-indent-point): Renamed from
'indent-relative-maybe'.
(indent-relative): Now accepts an additional optional argument.
The first argument was renamed to FIRST-ONLY.  Doc fix.  Support
the additional arg.  (Bug#24766)

8 years agoSpeed up initialization by preferring /dev/urandom to GnuTLS
Daniel Colascione [Thu, 6 Oct 2016 19:46:36 +0000 (12:46 -0700)]
Speed up initialization by preferring /dev/urandom to GnuTLS

* src/sysdep.c (init_random): Try /dev/urandom before GnuTLS.

(cherry picked from commit a37eba849eddc41375ad73974f6fcb1258aa8eba)

8 years agoAdd a comment in generated refcards about the source
Glenn Morris [Fri, 18 Nov 2016 07:24:03 +0000 (23:24 -0800)]
Add a comment in generated refcards about the source

* etc/refcards/calccard.tex, etc/refcards/cs-dired-ref.tex:
* etc/refcards/cs-refcard.tex, etc/refcards/cs-survival.tex:
* etc/refcards/de-refcard.tex, etc/refcards/dired-ref.tex:
* etc/refcards/fr-dired-ref.tex, etc/refcards/fr-refcard.tex:
* etc/refcards/fr-survival.tex, etc/refcards/gnus-refcard.tex:
* etc/refcards/orgcard.tex, etc/refcards/pl-refcard.tex:
* etc/refcards/pt-br-refcard.tex, etc/refcards/refcard.tex:
* etc/refcards/ru-refcard.tex, etc/refcards/sk-dired-ref.tex:
* etc/refcards/sk-refcard.tex, etc/refcards/sk-survival.tex:
* etc/refcards/survival.tex, etc/refcards/vipcard.tex:
* etc/refcards/viperCard.tex: Add comment about the source.

8 years ago; * etc/refcards/calccard.tex: Remove obsolete comment.
Glenn Morris [Fri, 18 Nov 2016 06:59:36 +0000 (22:59 -0800)]
; * etc/refcards/calccard.tex: Remove obsolete comment.

8 years ago; Replace "25.2" with "26.1" where appropriate, which is almost everywhere
Glenn Morris [Fri, 18 Nov 2016 06:50:40 +0000 (22:50 -0800)]
; Replace "25.2" with "26.1" where appropriate, which is almost everywhere

Ref:
http://lists.gnu.org/archive/html/emacs-devel/2016-09/msg00692.html
http://lists.gnu.org/archive/html/emacs-devel/2016-01/msg01215.html

8 years agoAdd example for bug#24854
Dmitry Gutov [Fri, 18 Nov 2016 00:12:02 +0000 (02:12 +0200)]
Add example for bug#24854

* test/manual/indent/js.js: Add example for bug#24854.

8 years agoPort registry.el the rest of the way to cl-lib
Mark Oteiza [Thu, 17 Nov 2016 23:27:38 +0000 (18:27 -0500)]
Port registry.el the rest of the way to cl-lib

This file already is using cl-lib functions at runtime; eieio ultimately
loads cl-lib, which explains why doing so wasn't an issue.
* lisp/registry.el: Require cl-lib.
(registry-db, registry--match, registry-search, registry-delete):
(registry-insert, registry-reindex): Replace cl macros with cl-lib ones.
(registry-collect-prune-candidates): Replace cl function with cl-lib one.

8 years agoFix arglist in python.el (Bug#24762)
Mark Oteiza [Thu, 17 Nov 2016 22:58:20 +0000 (17:58 -0500)]
Fix arglist in python.el (Bug#24762)

* lisp/progmodes/python.el: Remove unneeded second args.
(python-define-auxiliary-skeleton): DOC arg should be &optional.

8 years agoAdd tests for rot13.el
Simen Heggestøyl [Thu, 17 Nov 2016 18:19:59 +0000 (19:19 +0100)]
Add tests for rot13.el

* lisp/rot13.el (rot13): Docstring correction.

* test/lisp/rot13-tests.el: New file with tests for rot13.el.

8 years agoFix Bug#24947 (Tramp + ido)
Michael Albinus [Thu, 17 Nov 2016 11:38:58 +0000 (12:38 +0100)]
Fix Bug#24947 (Tramp + ido)

* lisp/ido.el (ido-read-internal): Prevent eager Tramp connection.

* lisp/net/tramp.el (tramp-handle-file-name-case-insensitive-p):
Run remote tests only if a connection is established only.  (Bug#24947)

8 years agojs-mode: Fix indent problem after a regexp
Dmitry Gutov [Wed, 16 Nov 2016 23:58:59 +0000 (01:58 +0200)]
js-mode: Fix indent problem after a regexp

* lisp/progmodes/js.el (js--looking-at-operator-p): Check that the
slash is not ending a regexp (bug#24854).

8 years agoUnbreak the build on Darwin (Bug#24957)
Ken Brown [Wed, 16 Nov 2016 23:24:41 +0000 (18:24 -0500)]
Unbreak the build on Darwin (Bug#24957)

* src/fileio.c (file_name_case_insensitive_p) [DARWIN_OS]: Fix
mistakes in recent commit.

8 years agoDo not use map.el in seq-tests.el
Nicolas Petton [Wed, 16 Nov 2016 17:37:26 +0000 (18:37 +0100)]
Do not use map.el in seq-tests.el

* test/lisp/emacs-lisp/seq-tests.el: Do not use map.el.  map.el was
introduced in Emacs 25.1, but seq.el is also available in GNU ELPA for
Emacs 24.5.

8 years agoFix sluggish display of symbols in UTF-8 language environment
Eli Zaretskii [Wed, 16 Nov 2016 16:11:33 +0000 (18:11 +0200)]
Fix sluggish display of symbols in UTF-8 language environment

* lisp/international/fontset.el (setup-default-fontset): Make sure
Symbola and FreeMono are set up in the default fontset as belonging
to the "iso10646-1" registry.  In the UTF-8 locale, this avoids a
long and futile search for a suitable font, whose side effect is a
lot of consing, which then hits the font-cache compacting issue,
and causes very sluggish redisplay of characters displayed by
these fonts.  All this happens because the default for the
registry is "iso8859-1".  (Bug#24953)

8 years agoUpdate parameter :version to 26.1 in several defcustom
Tino Calancha [Wed, 16 Nov 2016 15:39:43 +0000 (00:39 +0900)]
Update parameter :version to 26.1 in several defcustom

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)

8 years agoAdd --new-daemon, which runs in the foreground and does not fork
Glenn Morris [Wed, 16 Nov 2016 07:28:47 +0000 (23:28 -0800)]
Add --new-daemon, which runs in the foreground and does not fork

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.

8 years agoDon't confuse how Texinfo outputs @var with the input
Glenn Morris [Wed, 16 Nov 2016 00:18:28 +0000 (19:18 -0500)]
Don't confuse how Texinfo outputs @var with the input

* doc/emacs/rmail.texi (Movemail):
* doc/lispref/control.texi (Pattern matching case statement):
* doc/lispref/frames.texi (Size and Position):
* doc/lispref/processes.texi (Asynchronous Processes):
* doc/lispref/text.texi (Document Object Model):
* doc/lispref/windows.texi (Coordinates and Windows):
Do not upper-case the argument of @var.

8 years ago* doc/lispref/display.texi (Scroll Bars):
Glenn Morris [Wed, 16 Nov 2016 00:07:36 +0000 (19:07 -0500)]
* doc/lispref/display.texi (Scroll Bars):
* doc/lispref/frames.texi (Size and Position):
* doc/lispref/windows.texi (Window Sizes): Fix arglist typos.

8 years ago* doc/emacs/cmdargs.texi (Initial Options): Copyedit for --daemon.
Glenn Morris [Tue, 15 Nov 2016 23:53:25 +0000 (18:53 -0500)]
* doc/emacs/cmdargs.texi (Initial Options): Copyedit for --daemon.

8 years ago* src/emacs.c (usage_message): Mention named daemon. (Bug#24949)
Glenn Morris [Tue, 15 Nov 2016 23:21:06 +0000 (18:21 -0500)]
* src/emacs.c (usage_message): Mention named daemon.  (Bug#24949)
* doc/man/emacs.1.in: Likewise.

8 years agoSimplify case-insensitivity checks on Mac OS X
Ken Brown [Mon, 14 Nov 2016 22:26:12 +0000 (17:26 -0500)]
Simplify case-insensitivity checks on Mac OS X

* src/fileio.c (file_name_case_insensitive_p): Try skipping the
Darwin code and instead using pathconf with _PC_CASE_SENSITIVE.
Leave in two alternatives conditionally compiled based on
DARWIN_OS_CASE_SENSITIVE_FIXME in case pathconf doesn't work.

* etc/PROBLEMS: Mention the possible problem with pathconf on
Mac OS X.

8 years ago* src/emacs.c (sort_args): Warn about multiple matches.
Glenn Morris [Tue, 15 Nov 2016 22:14:27 +0000 (17:14 -0500)]
* src/emacs.c (sort_args): Warn about multiple matches.

8 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Michael Albinus [Tue, 15 Nov 2016 19:51:20 +0000 (20:51 +0100)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

8 years agoImplement file name handler for `file-name-case-insensitive-p'
Michael Albinus [Tue, 15 Nov 2016 19:50:49 +0000 (20:50 +0100)]
Implement file name handler for `file-name-case-insensitive-p'

* doc/lispref/files.texi (Truenames): `file-name-case-insensitive-p'
is also applicable for remote hosts.

* lisp/net/tramp.el (tramp-methods): Improve docstring.
(tramp-file-name-for-operation): Add `file-name-case-insensitive-p'.
(tramp-handle-file-name-case-insensitive-p): New defun.

* lisp/net/tramp-smb.el (tramp-methods) <smb>:
Add `tramp-case-insensitive' entry.

* lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist)
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
* lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist)
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
<file-name-case-insensitive-p>: Add handler.  (Bug#22300, Bug#24441)

8 years agoNix more uses of default-FOO variables (Bug#24946)
Mark Oteiza [Tue, 15 Nov 2016 18:31:31 +0000 (13:31 -0500)]
Nix more uses of default-FOO variables (Bug#24946)

* lisp/cedet/semantic/util-modes.el (semantic-stickyfunc-mode):
Check for header-line-format instead.
* lisp/emulation/viper.el (viper-load-custom-file): Reference
major-mode instead.
* lisp-mail-feedmail.el (feedmail-fill-to-cc-fill-column): Use
fill-column instead.

8 years agoComplete the name of PostgreSQL databases
Simen Heggestøyl [Tue, 15 Nov 2016 18:08:22 +0000 (19:08 +0100)]
Complete the name of PostgreSQL databases

* lisp/progmodes/sql.el (sql-postgres-login-params): Complete database
name.
(sql-postgres-list-databases): New function returning a list of
available PostgreSQL databases.

* test/lisp/progmodes/sql-tests.el: New file with tests for sql.el.

8 years agoMore fixes in copyright notices in etc/refcards/
Eli Zaretskii [Tue, 15 Nov 2016 17:01:07 +0000 (19:01 +0200)]
More fixes in copyright notices in etc/refcards/

* etc/refcards/calccard.tex:
* etc/refcards/cs-dired-ref.tex:
* etc/refcards/cs-refcard.tex:
* etc/refcards/cs-survival.tex:
* etc/refcards/de-refcard.tex:
* etc/refcards/dired-ref.tex:
* etc/refcards/fr-dired-ref.tex:
* etc/refcards/fr-refcard.tex:
* etc/refcards/fr-survival.tex:
* etc/refcards/orgcard.tex:
* etc/refcards/pl-refcard.tex:
* etc/refcards/pt-br-refcard.tex:
* etc/refcards/refcard.tex:
* etc/refcards/ru-refcard.tex:
* etc/refcards/sk-dired-ref.tex:
* etc/refcards/sk-refcard.tex:
* etc/refcards/sk-survival.tex:
* etc/refcards/survival.tex:
* etc/refcards/vipcard.tex:
* etc/refcards/viperCard.tex: Change "GNU Emacs" to "this
document" in copyright notices.  (Bug#24520)

8 years agoadd `vc-git-print-log-follow' and use it in `vc-git-print-log'
Sam Steingold [Tue, 15 Nov 2016 04:37:33 +0000 (23:37 -0500)]
add `vc-git-print-log-follow' and use it in `vc-git-print-log'

When `vc-git-print-log-follow' is true and all files are
non-directory, pass "--follow" to "git log".
This works around bug#8756 and bug#16422.

8 years ago`toggle-truncate-lines' obsoletes `gnus-summary-toggle-truncation'
Sam Steingold [Tue, 15 Nov 2016 00:13:20 +0000 (19:13 -0500)]
`toggle-truncate-lines' obsoletes `gnus-summary-toggle-truncation'

8 years agovc-git-print-log: pass "--follow" to "log" to handle renamed files
Sam Steingold [Tue, 15 Nov 2016 00:08:54 +0000 (19:08 -0500)]
vc-git-print-log: pass "--follow" to "log" to handle renamed files

8 years agoRevert "Improve case-insensitive checks (Bug#24441)"
Eli Zaretskii [Mon, 14 Nov 2016 19:25:44 +0000 (21:25 +0200)]
Revert "Improve case-insensitive checks (Bug#24441)"

This reverts commit 2f5e0b1bf7b0ac4f450847db34d599a072020600.
I see no reason for removing code, documentation, and comments
in the original commit.

8 years agoUpdate verilog-mode.el
Wilson Snyder [Mon, 14 Nov 2016 18:47:31 +0000 (13:47 -0500)]
Update verilog-mode.el

* 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.

8 years agoImprove case-insensitive checks (Bug#24441)
Paul Eggert [Mon, 14 Nov 2016 17:08:06 +0000 (09:08 -0800)]
Improve case-insensitive checks (Bug#24441)

* 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.

8 years agoFix documentation changes of connection-local variables
Eli Zaretskii [Mon, 14 Nov 2016 16:13:09 +0000 (18:13 +0200)]
Fix documentation changes of connection-local variables

* etc/NEWS: Fix last change.
* doc/lispref/variables.texi (Connection Local Variables): Minor fixes.
* doc/lispref/elisp.texi (Top): Update the master menu.

8 years agoImplement connection-local variables
Michael Albinus [Mon, 14 Nov 2016 12:56:58 +0000 (13:56 +0100)]
Implement connection-local variables

* 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.

8 years agotabulated-list: extend truncation into next align-right column
Tino Calancha [Mon, 14 Nov 2016 08:31:44 +0000 (17:31 +0900)]
tabulated-list: extend truncation into next align-right column

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.

8 years ago* lisp/net/shr.el (shr-collect-extra-strings-in-table): Fix indentation.
Katsumi Yamaoka [Mon, 14 Nov 2016 06:56:01 +0000 (06:56 +0000)]
* lisp/net/shr.el (shr-collect-extra-strings-in-table): Fix indentation.

8 years ago* lisp/net/shr.el (shr-tag-table): Avoid duplication of images.
Katsumi Yamaoka [Mon, 14 Nov 2016 06:48:06 +0000 (06:48 +0000)]
* lisp/net/shr.el (shr-tag-table): Avoid duplication of images.
(shr-collect-extra-strings-in-table): Render images as well.

8 years agoUse the new 'file-name-case-insensitive-p' function
Ken Brown [Mon, 14 Nov 2016 03:00:24 +0000 (22:00 -0500)]
Use the new 'file-name-case-insensitive-p' function

* 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.

8 years agoInclude a systemd user unit file. (Bug#16507)
Glenn Morris [Sun, 13 Nov 2016 23:46:31 +0000 (15:46 -0800)]
Include a systemd user unit file.  (Bug#16507)

* 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.

8 years agoPort --enable-gcc-warnings to Ubuntu 16.10
Paul Eggert [Sun, 13 Nov 2016 20:15:25 +0000 (12:15 -0800)]
Port --enable-gcc-warnings to Ubuntu 16.10

* 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.

8 years agoSilence tramp warning
Ken Brown [Sun, 13 Nov 2016 16:33:27 +0000 (11:33 -0500)]
Silence tramp warning

* lisp/net/tramp.el (tramp-file-name-for-operation): Add
'file-name-case-insensitive-p' as a known file primitive.
(Bug#24936)

8 years agoUpdate copyright text in refcards
Eli Zaretskii [Sun, 13 Nov 2016 16:20:59 +0000 (18:20 +0200)]
Update copyright text in refcards

* etc/refcards/viperCard.tex:
* etc/refcards/vipcard.tex:
* etc/refcards/survival.tex:
* etc/refcards/sk-survival.tex:
* etc/refcards/sk-dired-ref.tex:
* etc/refcards/sk-refcard.tex:
* etc/refcards/ru-refcard.tex:
* etc/refcards/refcard.tex:
* etc/refcards/pt-br-refcard.tex:
* etc/refcards/pl-refcard.tex:
* etc/refcards/orgcard.tex:
* etc/refcards/gnus-refcard.tex:
* etc/refcards/fr-survival.tex):
* etc/refcards/fr-refcard.tex:
* etc/refcards/fr-dired-ref.tex:
* etc/refcards/dired-ref.tex:
* etc/refcards/de-refcard.tex:
* etc/refcards/cs-survival.tex:
* etc/refcards/cs-refcard.tex:
* etc/refcards/cs-dired-ref.tex:
* etc/refcards/calccard.tex: Update the copyright blurb.  (Bug#24520)

8 years agoCheck case-sensitivity when renaming files
Ken Brown [Sun, 13 Nov 2016 00:00:35 +0000 (19:00 -0500)]
Check case-sensitivity when renaming files

* 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'.

8 years agoUnbreak the build on Cygwin
Ken Brown [Sun, 13 Nov 2016 02:45:24 +0000 (21:45 -0500)]
Unbreak the build on Cygwin

* configure.ac (system_malloc) [CYGWIN]: Unset.

8 years ago; Fix thinko
Mark Oteiza [Sun, 13 Nov 2016 00:04:36 +0000 (19:04 -0500)]
; Fix thinko

* lisp/auth-source.el (auth-source-backend-parse-parameters): Contain
cl-return within cl-dolist.

8 years agoFix Outline command names
Eli Zaretskii [Sat, 12 Nov 2016 19:40:33 +0000 (21:40 +0200)]
Fix Outline command names

* doc/emacs/text.texi (Foldout): Use the outline-* names instead
of the obsolete aliases.  (Bug#24890)

8 years agoUpdate chart.el
Mark Oteiza [Sat, 12 Nov 2016 00:05:23 +0000 (19:05 -0500)]
Update chart.el

* 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.

8 years ago* lisp/net/shr.el (shr--preferred-image): Add CR to whitespace regexps.
Katsumi Yamaoka [Fri, 11 Nov 2016 08:17:41 +0000 (08:17 +0000)]
* lisp/net/shr.el (shr--preferred-image): Add CR to whitespace regexps.
(shr-collect-extra-strings-in-table):
Render extra tables in an invalid html as well.

8 years ago* lisp/net/shr.el (shr--preferred-image): Ignore whitespace (bug#24893).
Katsumi Yamaoka [Fri, 11 Nov 2016 00:27:48 +0000 (00:27 +0000)]
* lisp/net/shr.el (shr--preferred-image): Ignore whitespace (bug#24893).

8 years agoSend text received by bracketed paste to process
Philipp Stephani [Sun, 6 Nov 2016 18:21:10 +0000 (19:21 +0100)]
Send text received by bracketed paste to process

See Bug#24639.

* term.el (term--xterm-paste): New function.
(term-raw-map): Use it.
(xterm--pasted-text): Declare function from xterm.el.

8 years agoCorrect the statement about programming modes always running prog-mode-hook.
Alan Mackenzie [Thu, 10 Nov 2016 21:22:05 +0000 (21:22 +0000)]
Correct the statement about programming modes always running prog-mode-hook.

doc/emacs/modes.texi (Major Modes): Amend the statement about programming
modes running prog-mode-hook to say that it applies to many (not all) such
modes, and specifying exactly which modes.

8 years agoImprove documentation of 'occur'
Eli Zaretskii [Thu, 10 Nov 2016 16:25:21 +0000 (18:25 +0200)]
Improve documentation of 'occur'

* doc/emacs/search.texi (Other Repeating Search): Clarify how to
use Occur with search strings from last Isearch.  (Bug#24890)

8 years agoResurrect 'memory-limit' on MS-Windows
Eli Zaretskii [Wed, 9 Nov 2016 18:45:38 +0000 (20:45 +0200)]
Resurrect 'memory-limit' on MS-Windows

* nt/mingw-cfg.site (ac_cv_func_sbrk): Set to "yes", otherwise
'memory-limit' will produce a trivial and useless result on Windows.

8 years agoUpdate quickurl.el
Mark Oteiza [Wed, 9 Nov 2016 17:54:36 +0000 (12:54 -0500)]
Update quickurl.el

* 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.

8 years agoRefine multi-hop specs in Tramp
Michael Albinus [Wed, 9 Nov 2016 14:34:40 +0000 (15:34 +0100)]
Refine multi-hop specs in Tramp

* 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.

8 years agoDo call debugger on failed cl-assert
Noam Postavsky [Tue, 8 Nov 2016 01:03:48 +0000 (20:03 -0500)]
Do call debugger on failed cl-assert

"Don't call debug on failed cl-assert..." removed the call to `debug' in
cl--assertion-failed because `debug' calls `kill-emacs' in batch mode,
thus messing up ert test runs.  However, calling the debugger is useful
because it allows catching failed assertions even inside
`condition-case' calls.  The problem with ert can be avoided by calling
`debugger' instead of `debug' directly, since ert installs its own
debugger while running tests.

* lisp/emacs-lisp/cl-preloaded.el (cl--assertion-failed): Call
`debugger' if `debug-on-error' is non-nil.

8 years agoAvoid infloop in python
Daniel Colascione [Tue, 8 Nov 2016 23:26:43 +0000 (15:26 -0800)]
Avoid infloop in python

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

8 years agoAvoid infloop in python
Daniel Colascione [Tue, 8 Nov 2016 23:26:43 +0000 (15:26 -0800)]
Avoid infloop in python

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

8 years agoMake gnus/message.el work correctly under lexical binding
Daniel Colascione [Tue, 8 Nov 2016 20:37:30 +0000 (12:37 -0800)]
Make gnus/message.el work correctly under lexical binding

* 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

8 years agoFix Bug#24889
Michael Albinus [Tue, 8 Nov 2016 19:45:59 +0000 (20:45 +0100)]
Fix Bug#24889

* 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)

8 years agoPort to FreeBSD 11 AMD
Paul Eggert [Tue, 8 Nov 2016 17:48:53 +0000 (09:48 -0800)]
Port to FreeBSD 11 AMD

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.

8 years agoPort emacsclient to FreeBSD 11 etc.
Paul Eggert [Tue, 8 Nov 2016 16:54:23 +0000 (08:54 -0800)]
Port emacsclient to FreeBSD 11 etc.

* 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.

8 years agoPrescribe history for read-regexp in query-replace
Mark Oteiza [Tue, 8 Nov 2016 03:11:39 +0000 (22:11 -0500)]
Prescribe history for read-regexp in query-replace

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.