Artur Malabarba [Sat, 12 Dec 2015 21:43:34 +0000 (21:43 +0000)]
* lisp/emacs-lisp/package.el (package-unpack): Security check
Check that we received the package we were offered.
Artur Malabarba [Sat, 12 Dec 2015 21:39:19 +0000 (21:39 +0000)]
* lisp/emacs-lisp/package.el (package--compile): Don't activate
`package-unpack' takes care of all activations now (other than
`package-initialize). `package--compile' now only compiles.
Eli Zaretskii [Sat, 12 Dec 2015 14:49:47 +0000 (16:49 +0200)]
Document the new bindings of <UP> and <DOWN> in the minibuffer
* doc/emacs/mini.texi (Minibuffer History): Describe the new
bindings of <UP> and <DOWN> in the minibuffer.
Eli Zaretskii [Sat, 12 Dec 2015 14:26:29 +0000 (16:26 +0200)]
Document new features of Ido
* doc/misc/ido.texi (Misc): Document 'C-S-b'.
Martin Rudalics [Sat, 12 Dec 2015 13:38:11 +0000 (14:38 +0100)]
Fix frame height calculations with added menu bar on Windows (Bug#22105)
* doc/lispref/frames.texi (Parameter Access): Mention pitfalls
when simultaneously specifying multiple parameters for
`modify-frame-parameters' that all may change the frame's size.
* src/w32fns.c (x_set_menu_bar_lines): Don't set
windows_or_buffers_changed here.
(my_create_tip_window, Fx_show_tip): Call AdjustWindowRect
with third argument false.
* src/w32menu.c (set_frame_menubar): Set
windows_or_buffers_changed here.
* src/w32term.c (x_set_window_size): Determine third argument of
AdjustWindowRect from whether the frame has a menu bar and not
from whether it wants one.
Eli Zaretskii [Sat, 12 Dec 2015 13:26:53 +0000 (15:26 +0200)]
Document the change in interactive shell mode
* doc/emacs/misc.texi (Interactive Shell): Document that the
'*shell*' buffer by default displays in a new window.
Eli Zaretskii [Sat, 12 Dec 2015 13:17:14 +0000 (15:17 +0200)]
Document new features of package.el
* doc/emacs/package.texi (Package Menu): Document the 'external'
status and the new menu commands.
(Package Installation): Document archive priorities.
* lisp/emacs-lisp/package.el (package-archive-priorities): Doc fix.
(package-menu-hide-low-priority): Doc fix.
Eli Zaretskii [Sat, 12 Dec 2015 12:18:41 +0000 (14:18 +0200)]
Update and document new features of xterm support
* doc/emacs/frames.texi (Text-Only Mouse): Document that
track-mouse is supported by newer xterm versions.
Eli Zaretskii [Sat, 12 Dec 2015 12:07:09 +0000 (14:07 +0200)]
; * etc/NEWS: Update and fix the entry for ERC.
Eli Zaretskii [Sat, 12 Dec 2015 12:04:13 +0000 (14:04 +0200)]
; * etc/NEWS: Update the entry for 'save-place-mode'.
Eli Zaretskii [Sat, 12 Dec 2015 11:59:54 +0000 (13:59 +0200)]
; * etc/NEWS: Update and fix entry for 'xterm-screen-extra-capabilities'.
Eli Zaretskii [Sat, 12 Dec 2015 11:51:21 +0000 (13:51 +0200)]
Document new features of Prettify Mode
* doc/emacs/programs.texi (Misc for Programs): Document
'prettify-symbols-compose-predicate' and
'prettify-symbols-unprettify-at-point'.
* lisp/progmodes/prog-mode.el (prettify-symbols-alist)
(prettify-symbols-default-compose-p)
(prettify-symbols-compose-predicate)
(prettify-symbols--compose-symbol): Doc fixes.
Eli Zaretskii [Sat, 12 Dec 2015 10:53:35 +0000 (12:53 +0200)]
Document multi-mode indentation facilities
* doc/lispref/text.texi (Mode-Specific Indent): Document
'prog-indentation-context', 'prog-first-column', and 'prog-widen'.
* lisp/progmodes/prog-mode.el (prog-indentation-context)
(prog-widen): Doc fixes.
Eli Zaretskii [Sat, 12 Dec 2015 09:17:25 +0000 (11:17 +0200)]
Document 'vc-refresh-state'
* doc/emacs/maintaining.texi (Version Control): Document
'vc-refresh-state'.
* lisp/vc/vc-hooks.el (vc-refresh-state): Doc fix.
Eli Zaretskii [Sat, 12 Dec 2015 08:05:26 +0000 (10:05 +0200)]
Fix echo for "C-u"
* src/keyboard.c (command_loop_1): Undo last change. It caused
duplicate echo of C-u. (Bug#22107)
Eli Zaretskii [Fri, 11 Dec 2015 10:50:53 +0000 (12:50 +0200)]
Avoid errors when creating files under SVN in new directory
* lisp/vc/vc-svn.el (vc-svn-registered): Use
file-accessible-directory-p, to avoid cd'ing to a non-existing
directory, which signals an error on some systems. (Bug#21984)
(vc-svn-checkin): Call log-edit-extract-headers with 2 arguments.
Use declare-function to avoid byte-compiler warnings.
Eli Zaretskii [Fri, 11 Dec 2015 10:07:26 +0000 (12:07 +0200)]
Improve Lua support in etags
* lib-src/etags.c (Lua_functions): Skip spaces before looking for
"function".
* etc/NEWS: Mention improved Lua support by 'etags'.
* test/etags/lua-src/test.lua (test): Add tests for indented
function definitions.
* test/etags/ETAGS.good_1:
* test/etags/ETAGS.good_2:
* test/etags/ETAGS.good_3:
* test/etags/ETAGS.good_4:
* test/etags/ETAGS.good_5:
* test/etags/ETAGS.good_6:
* test/etags/CTAGS.good: Adapt to the modified Lua tests.
Eli Zaretskii [Fri, 11 Dec 2015 09:53:53 +0000 (11:53 +0200)]
Fix 'this-command-keys' wrt prefix argument
* src/keyboard.c (command_loop_1): Restore the feature whereby C-u
was part of this-command-keys, but not of this-single-command-keys.
(Bug#22107)
* lisp/simple.el (internal-echo-keystrokes-prefix): Add
commentary about the function's return value.
Eli Zaretskii [Fri, 11 Dec 2015 09:30:18 +0000 (11:30 +0200)]
* lisp/files.el (load-library): Doc fix. (Bug#22140)
Eli Zaretskii [Fri, 11 Dec 2015 09:17:31 +0000 (11:17 +0200)]
Improve and document Ruby support in 'etags'
* lib-src/etags.c (Ruby_suffixes): Add ".ruby".
(Ruby_functions): Support "module" and overloaded operators.
(Ruby_help): Mention "module".
* test/etags/ruby-src/test.rb:
* test/etags/ruby-src/test1.ruby: New files.
* test/etags/Makefile (RBSRC): New tests.
(SRCS): Add ${RBSRC}.
* test/etags/ETAGS.good_1:
* test/etags/ETAGS.good_2:
* test/etags/ETAGS.good_3:
* test/etags/ETAGS.good_4:
* test/etags/ETAGS.good_5:
* test/etags/ETAGS.good_6:
* test/etags/CTAGS.good: Adapt to the new Ruby tests.
* doc/man/etags.1: Mention Ruby support.
* etc/NEWS: Mention Ruby support.
Xi Lu [Fri, 11 Dec 2015 08:52:08 +0000 (10:52 +0200)]
Initial support for Ruby in 'etags'
* lib-src/etags.c <Ruby_suffixes>: New variable.
(lang_names): Add an entry for Ruby.
(Ruby_functions): New function. (Bug#22116)
Eli Zaretskii [Fri, 11 Dec 2015 08:46:18 +0000 (10:46 +0200)]
Clarify documentation of 'modify-frame-parameters'
* doc/lispref/frames.texi (Parameter Access): Clarify what "ignored
PARMs" mean for 'modify-frame-parameters'.
* src/frame.c (Fmodify_frame_parameters): Clarify what "ignored
PARMs" mean for this function. (Bug#22104)
Eli Zaretskii [Fri, 11 Dec 2015 08:25:37 +0000 (10:25 +0200)]
Fix setting buffer unibyte when reading from a device
* src/fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
to make a (possibly non-empty) buffer unibyte. (Bug#22096)
Eli Zaretskii [Fri, 11 Dec 2015 08:20:16 +0000 (10:20 +0200)]
Clarify documentation of 'values'
* doc/lispref/eval.texi (Eval): Clarify that 'values' are not
updated by any evaluation commands in 'lisp-interaction-mode'.
(Bug#22056)
Anders Lindgren [Fri, 11 Dec 2015 06:16:02 +0000 (07:16 +0100)]
Fixed subversion vc error when opening file in new directory (bug#21984).
* lisp/vc/vc-svn.el (vc-svn-registered): Check if directory exists.
Anders Lindgren [Fri, 11 Dec 2015 05:46:19 +0000 (06:46 +0100)]
; Restore selector `member' accidentally drooped in ert rewrite.
; `test/automated/ert.el' and `test/automated/ert-x.el' now run
; without errors.
* lisp/emacs-lisp/ert.el (ert--insert-human-readable-selector): Add
the `member' selector. This was accidentally dropped when code was
converted from `cl-typecase' (where `member' has a special meaning)
and `cl-ecase' (where it doesn't) to `pcase'.
Eli Zaretskii [Wed, 9 Dec 2015 18:03:54 +0000 (20:03 +0200)]
Yet another fix for when point ends up in invisible text
* src/xdisp.c (redisplay_window): When someone forced
window-start, and honoring that failed to show the cursor, try
moving out of invisible text, before falling back to the middle of
the window. (Bug#22098)
Michael Albinus [Wed, 9 Dec 2015 11:17:15 +0000 (12:17 +0100)]
Fix error in Tramp perl script for cygwin
* lisp/net/tramp-sh.el (tramp-perl-file-truename): Do not raise an
error if file doesn't exist.
YAMAMOTO Mitsuharu [Wed, 9 Dec 2015 09:16:09 +0000 (18:16 +0900)]
Remove font workaround for limited outdated versions
* src/macfont.m (mac_font_descriptor_get_adjusted_weight): Remove
workaround for HiraginoSans-W7 on OS X 10.11 and 10.11.1.
Anders Lindgren [Wed, 9 Dec 2015 05:35:12 +0000 (06:35 +0100)]
Don't add "." to load path (bug#21104)
When configured with --enable-locallisppath=no, which is the
default for OS X, the load-path incorrectly was populated with ".".
* src/lread.c (init_lread): Don't call `decode_env_path' when
PATH_SITELOADSEARCH is empty.
Artur Malabarba [Tue, 8 Dec 2015 12:49:20 +0000 (12:49 +0000)]
* lisp/emacs-lisp/package.el (package--with-response-buffer):
Search for the blank-line in the right buffer.
Glenn Morris [Tue, 8 Dec 2015 08:01:31 +0000 (00:01 -0800)]
* test/automated/simple-test.el (undo-auto-boundary-timer): Update
for recent change.
Glenn Morris [Tue, 8 Dec 2015 07:28:18 +0000 (23:28 -0800)]
Fix some display-warning usage.
* lisp/files.el (hack-local-variables, hack-dir-local-variables):
* lisp/calendar/diary-lib.el (diary-include-files, diary-sexp-entry):
* lisp/calendar/holidays.el (calendar-holiday-list):
* lisp/mail/rmailout.el (rmail-output-read-file-name):
Fix display-warning usage.
Glenn Morris [Tue, 8 Dec 2015 02:05:35 +0000 (21:05 -0500)]
* lisp/calendar/cal-html.el: Require diary-lib.
(cal-html-list-diary-entries): Handle no diary. (Bug#21994)
Thomas Fitzsimmons [Mon, 7 Dec 2015 23:57:04 +0000 (18:57 -0500)]
Add Obsolete-since header to eudcb-ph.el
* eudcb-ph.el: Add Obsolete-since header.
Paul Eggert [Mon, 7 Dec 2015 16:35:53 +0000 (08:35 -0800)]
Spelling fixes
* doc/misc/calc.texi (Predefined Units): Use the bland modern
scientific style for spelling the units “ampere” and
“angstrom” rather than the older style “Ampere” and
“Ångstrom”. The latter spelling was wrong anyway (it should
have been “Ångström”).
* lisp/emacs-lisp/ert.el (ert--explain-equal-rec):
Fix misspelling of ‘atom’ in code.
Eli Zaretskii [Mon, 7 Dec 2015 16:32:00 +0000 (18:32 +0200)]
; * etc/DEBUG: Improve newbie instructions. Fix a typo.
Eli Zaretskii [Mon, 7 Dec 2015 16:20:43 +0000 (18:20 +0200)]
Improve documentation of kill commands
* lisp/simple.el (region-extract-function, delete-backward-char)
(delete-forward-char, kill-region, copy-region-as-kill)
(kill-ring-save): Better document the optional argument REGION in
the doc strings. Mention in the doc strings that text put in the
kill-ring can be filtered by 'filter-buffer-substring'.
* doc/lispref/text.texi (Kill Functions): Mention that functions
described in this subsection can filter text they put in the
kill-ring. Add a cross-reference to "Buffer Contents" and an
index entry. Document the optional argument 'region' and its
effect.
(Bug#21315)
Michael Albinus [Mon, 7 Dec 2015 08:15:27 +0000 (08:15 +0000)]
Fix an utf8 problem for Tramp on BSD
* lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Make lax check for utf8.
(tramp-get-remote-locale): Add "en_US.UTF-8" as candidate.
Thomas Fitzsimmons [Mon, 7 Dec 2015 00:33:24 +0000 (19:33 -0500)]
Make eudcb-ph.el obsolete
* doc/misc/eudc.texi: Bump version to 1.40.0.
Remove PH/QI sections and mentions.
* lisp/obsolete/eudcb-ph.el: Make obsolete.
* lisp/net/eudc-vars.el (eudc-known-protocols): Remove ph.
(eudc-ph-bbdb-conversion-alist): Make obsolete.
* etc/NEWS: Mention this. (Bug#21191)
Paul Eggert [Sun, 6 Dec 2015 23:07:19 +0000 (15:07 -0800)]
Remove overenthusiastic eassert
* src/lisp.h (XSYMBOL): Remove eassert incorrectly added in
previous change. It breaks on MS-Windows --with-wide-int.
Problem reported by Eli Zaretskii in:
http://lists.gnu.org/archive/html/emacs-devel/2015-12/msg00275.html
Paul Eggert [Sun, 6 Dec 2015 22:58:24 +0000 (14:58 -0800)]
Pacify gcc -Wparentheses
* src/xdisp.c (row_containing_pos): Reparenthesize.
Paul Eggert [Sun, 6 Dec 2015 22:54:29 +0000 (14:54 -0800)]
Port mod-test to 32-bit Emacs --without-wide-int
* modules/mod-test/test.el (mod-test-sum-test):
Bring back the 2**29 tests, but port them to 32-bit Emacs
--without-wide-int.
Michael Albinus [Sun, 6 Dec 2015 17:55:50 +0000 (18:55 +0100)]
Fix minor Tramp problems found on BSD
* lisp/net/tramp-sh.el (tramp-perl-file-truename): Do not append
trailing slash. Quote apostrophes.
(tramp-sh-handle-file-truename): Do not append trailing slash in
the "ls" case.
(tramp-get-ls-command-with-w-option): New defun.
(tramp-do-file-attributes-with-ls)
(tramp-do-directory-files-and-attributes-with-stat): Use it.
* test/automated/tramp-tests.el
(tramp-test31-special-characters-with-perl)
(tramp-test31-special-characters-with-ls)
(tramp-test32-utf8-with-perl, tramp-test32-utf8-with-ls):
Suppress also readlink.
Eli Zaretskii [Sun, 6 Dec 2015 17:27:12 +0000 (19:27 +0200)]
Fix cursor display when invisible text is at line beginning
* src/xdisp.c (redisplay_window): When scrolling fails to show
point, prefer using the desired matrix if possible for finding the
fallback glyph row for displaying the cursor. (Bug#22098)
(row_containing_pos): Exit the loop as soon as we hit the first
disabled glyph row. Otherwise we risk accessing garbled data and
departing to the no-no land.
Paul Eggert [Sun, 6 Dec 2015 17:09:07 +0000 (09:09 -0800)]
Improve module interface when WIDE_EMACS_INT
* src/emacs-module.c (plain_values): New constant.
(module_nil): Now a constant.
(Finternal_module_call, value_to_lisp_bits, lisp_to_value_bits)
(syms_of_module): Use if, not #ifdef, so that both sides are
checked at compile-time, and so that GCC doesn’t complain
about an unused var in the typical case. Also, depend on
plain_values, not on WIDE_EMACS_INT; the code shouldn’t assume
that WIDE_EMACS_INT implies !USE_LSB_TAG.
(value_to_lisp_bits, lisp_to_value_bits): New functions.
Sign-extend integers rather than zero-extending them, as small
negative integers are more likely.
(value_to_lisp, lisp_to_value): Rewrite in terms of the new *_bits
functions.
(HAVE_STRUCT_ATTRIBUTE_ALIGNED): Define to 0 if not already defined.
(mark_modules): Remove. All uses removed.
(lisp_to_value): Don’t assume Fcons returns a pointer aligned
to GCALIGNMENT.
(syms_of_module): Check that module_nil converts to Qnil.
* src/lisp.h (lisp_h_XSYMBOL, XSYMBOL): Use signed conversion, since
we prefer signed to unsigned when either will do.
(TAG_PTR): Sign-extend pointers when USE_LSB_TAG, as this is
a bit better for emacs-module.c.
Paul Eggert [Sun, 6 Dec 2015 16:55:30 +0000 (08:55 -0800)]
Port mod-test to x86-64 GNU/Linux running 32-bit
* modules/mod-test/test.el (mod-test-sum-test):
Don’t attempt to match descriptions to operating systems.
It didn’t work on Fedora x86-64 running a 32-bit executable,
and it’s not worth the trouble anyway.
Port to 32-bit platforms by removing an assumption about
fixnum widths.
Michael Albinus [Sun, 6 Dec 2015 09:40:23 +0000 (09:40 +0000)]
Fix auto-revert-tests.el when filenotify isn't used
* test/automated/auto-revert-tests.el (auto-revert--wait-for-revert):
Make it working also when filenotify isn't used.
Juri Linkov [Sun, 6 Dec 2015 00:20:12 +0000 (02:20 +0200)]
* lisp/textmodes/ispell.el (ispell-highlight-spelling-error-overlay):
Let-bind isearch-regexp-function to nil. (Bug#22097)
Artur Malabarba [Sat, 5 Dec 2015 16:37:01 +0000 (16:37 +0000)]
* lisp/emacs-lisp/package.el: Don't install bad signatures (bug#22089)
(package--with-response-buffer): NOERROR and ERROR-FORM only
handle connection errors.
(bad-signature): New error type.
(package--check-signature-content): Use it.
(package--check-signature): Properly distinguish connection errors
from bad-signature errors. Do the check for
`package-check-signature' `allow-unsigned' here instead of forcing
the callbacks to do it. Add a new argument, UNWIND.
(package--download-one-archive, package-install-from-archive):
Update usage of `package--check-signature'.
Ulf Jasper [Sat, 5 Dec 2015 15:55:49 +0000 (16:55 +0100)]
Fix Bug#22092.
* lisp/calendar/icalendar.el (icalendar--get-unfolded-buffer):
Clean up inconsistent line endings. (Bug#22092)
(icalendar--clean-up-line-endings): New.
* test/automated/icalendar-tests.el (icalendar-real-world): Add test
for Bug#22092.
Eli Zaretskii [Sat, 5 Dec 2015 12:23:43 +0000 (14:23 +0200)]
; * etc/NEWS: Fix whitespace.
Eli Zaretskii [Sat, 5 Dec 2015 12:21:00 +0000 (14:21 +0200)]
Document 'bookmark-set-no-overwrite'
* doc/emacs/regs.texi (Bookmarks): Document the new command
'bookmark-set-no-overwrite' and its keybinding.
Glenn Morris [Sat, 5 Dec 2015 12:17:55 +0000 (07:17 -0500)]
; Auto-commit of loaddefs files.
Eli Zaretskii [Sat, 5 Dec 2015 12:09:40 +0000 (14:09 +0200)]
Document new binding of 'mouse-buffer-menu'
* doc/emacs/buffers.texi (Buffer Menus): 'mouse-buffer-menu' is
now also on C-F10.
Eli Zaretskii [Sat, 5 Dec 2015 12:04:03 +0000 (14:04 +0200)]
; Minor changes in etc/NEWS
* etc/NEWS: Mark several entries as already documented or as not
requiring documentation.
Eli Zaretskii [Sat, 5 Dec 2015 11:52:52 +0000 (13:52 +0200)]
; * etc/NEWS: 'tamil-dvorak' input method doesn't need to be documented.
Eli Zaretskii [Sat, 5 Dec 2015 11:51:09 +0000 (13:51 +0200)]
Initial documentation of dynamic modules
* doc/lispref/loading.texi (Dynamic Modules): New section with
initial documentation for dynamic modules.
* doc/lispref/elisp.texi (Top): Add "Dynamic Modules" to the
detailed menu
* etc/NEWS: Fix typos in dynamic modules' entry.
Artur Malabarba [Sat, 5 Dec 2015 11:31:23 +0000 (11:31 +0000)]
Remove copyright statements from trivial test files
Eli Zaretskii [Sat, 5 Dec 2015 10:52:54 +0000 (12:52 +0200)]
Add "Preliminaries" section to etc/DEBUG
* etc/DEBUG: Add the "Preliminaries" section for GDB beginners.
Most of the content was suggested by Phillip Lord
<phillip.lord@russet.org.uk>. Remove the section about debugging
with the Visual Studio, as building Emacs with the Microsoft
compilers is no longer supported. Minor fixes in some other
sections.
Alex Dunn [Sat, 5 Dec 2015 09:32:01 +0000 (11:32 +0200)]
Improve parsing of version strings
* lisp/subr.el (version-regexp-alist): Allow "." as priority separator
(version-to-list): More helpful error messages.
(version-to-list): ".5" is valid (update docstring). Make
"22.8X3" invalid, as the doc string says.
* test/automated/subr-tests.el (ert-test-version-parsing): New
tests for version string processing.
Copyright-paperwork-exempt: yes
Eli Zaretskii [Sat, 5 Dec 2015 09:12:38 +0000 (11:12 +0200)]
Fix documentation of 'undo' changes
* doc/lispref/text.texi (Undo): Minor wording changes. Use US
English conventions for spelling and whitespace between sentences.
* etc/NEWS: Fix wording and spelling of undo-related entries.
Mark them as documented.
Glenn Morris [Sat, 5 Dec 2015 00:56:32 +0000 (19:56 -0500)]
; * lisp/net/net-utils.el: Fix comment typo in previous.
Glenn Morris [Sat, 5 Dec 2015 00:49:07 +0000 (19:49 -0500)]
* lisp/net/net-utils.el: Small improvements.
(net-utils--executable-find-sbin): New function.
(ifconfig-program): Check sbin directories.
Fallback to "ip". (Bug#22091)
(ifconfig-program-options): Check the actual program in use.
(arp-program): Check sbin directories.
(tiny change) Arash Esbati [Fri, 4 Dec 2015 20:13:11 +0000 (21:13 +0100)]
Fix wrong-type-argument integer-or-marker-p nil error
* lisp/textmodes/reftex-auc.el (reftex-what-index-tag):
Fix (wrong-type-argument integer-or-marker-p nil) error (bug#22077).
Copyright-paperwork-exempt: yes
Stefan Monnier [Fri, 4 Dec 2015 17:59:21 +0000 (12:59 -0500)]
* lisp/emacs-lisp/ert.el: Prefer pcase over cl-typecase
* lisp/emacs-lisp/ert.el (ert--should-error-handle-error)
(ert--explain-format-atom, ert--explain-equal-rec)
(ert--print-backtrace, ert-test-result-type-p, ert-select-tests)
(ert--insert-human-readable-selector): Prefer pcase over cl-typecase.
Artur Malabarba [Fri, 4 Dec 2015 15:12:10 +0000 (15:12 +0000)]
* lisp/character-fold.el: Remove special case-folding support
(character-fold-to-regexp): Remove special code for
case-folding. Char-fold search still respects the
`case-fold-search' variable (i.e., f matches F). This only
removes the code that was added to ensure that f also matched
all chars that F matched. For instance, after this commit, f
no longer matches 𝔽.
This was necessary because the logic created a regexp with
2^(length of the string) redundant paths. So, when a very
long string "almost" matched, Emacs took a very long time to
figure out that it didn't. This became particularly relevant
because isearch's lazy-highlight does a search bounded by (1-
match-end) (which, in most circumstances, is a search that
almost matches). A recipe for this can be found in bug#22090.
Stefan Monnier [Fri, 4 Dec 2015 13:28:39 +0000 (08:28 -0500)]
* lisp/emacs-lisp/cl-macs.el (character): Can't be negative
Fixes (bug#21701)
Glenn Morris [Fri, 4 Dec 2015 12:20:41 +0000 (07:20 -0500)]
; Auto-commit of loaddefs files.
Daiki Ueno [Fri, 4 Dec 2015 05:15:59 +0000 (05:15 +0000)]
lisp/gnus/qp.el: Don't replace "from " at bol
* lisp/gnus/qp.el (quoted-printable-encode-region): Bind `case-fold-search'
to nil when looking for "^From ". Problem reported by Simon Josefsson.
Phillip Lord [Thu, 3 Dec 2015 21:27:33 +0000 (21:27 +0000)]
Externalize some symbols in undo-auto
* doc/lispref/text.texi: Update symbols.
* lisp/simple.el (undo-auto--amalgamate,
undo-auto--current-boundary-timer): Make symbols public.
* src/cmds.c (Fself_insert_command,Fdelete_char): Call
updated symbol.
Stefan Monnier [Thu, 3 Dec 2015 20:22:14 +0000 (15:22 -0500)]
* lisp/emacs-lisp/smie.el (smie-next-sexp): Fix BOB "token"
Michael Albinus [Thu, 3 Dec 2015 19:31:49 +0000 (20:31 +0100)]
Some error message improvements in tramp-sh.el
* lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Suppress error messages for "mesg" and "biff" calls.
(tramp-get-remote-path): Ignore errors when expanding
`tramp-own-remote-path'. Raise a warning instead.
Eli Zaretskii [Thu, 3 Dec 2015 16:36:03 +0000 (18:36 +0200)]
Document 'nacl' value for 'system-type'
* doc/lispref/os.texi (System Environment): Document the 'nacl'
value of 'system-type'.
Eli Zaretskii [Thu, 3 Dec 2015 16:26:39 +0000 (18:26 +0200)]
Document 'window-max-chars-per-line'
* doc/lispref/windows.texi (Window Sizes): Document
'window-max-chars-per-line'.
Artur Malabarba [Thu, 3 Dec 2015 15:27:21 +0000 (15:27 +0000)]
Fix some file headers for the purpose of `package--builtins'
* lisp/emacs-lisp/cl-preloaded.el
* lisp/emacs-lisp/eieio-compat.el
* lisp/net/sasl-scram-rfc.el: Add a "Package:" header
* lisp/ielm.el: Fix summary line.
Artur Malabarba [Thu, 3 Dec 2015 15:24:51 +0000 (15:24 +0000)]
* lisp/emacs-lisp/package.el (package-unpack): Load before compiling
Reload any previously loaded package files before compiling
the package (also reload the same files after compiling).
This ensures that we have the most recent definitions during
compilation, and avoids generating bad elc files when a macro
changes and it is used in a different file from the one it's
defined in.
Artur Malabarba [Thu, 3 Dec 2015 14:50:09 +0000 (14:50 +0000)]
* lisp/emacs-lisp/package.el: Refactor package activation code
(package-activate): Move code that activates dependencies into
package-activate-1.
(package--load-files-for-activation): New function.
(package-activate-1): Add code for (optionally) activating
dependencies, and move file-loading code into
`package--load-files-for-activation'.
Eli Zaretskii [Thu, 3 Dec 2015 16:03:47 +0000 (18:03 +0200)]
Document new font-related functionality
* doc/lispref/display.texi (Low-Level Font): Document
'default-font-width', 'default-font-height', 'window-font-width',
and 'window-font-height'.
* etc/NEWS: Move entries for 'default-font-width',
'default-font-height', 'window-font-width', and 'window-font-height'
to their place and mark them documented.
Eli Zaretskii [Thu, 3 Dec 2015 14:59:42 +0000 (16:59 +0200)]
Fix documentation and implementation of 'directory-name-p'
* lisp/files.el (directory-name-p): Modify to recognize
backslashes on MS-Windows and MS-DOS. Adjust the doc string
accordingly. Use '=', not char-equal, for comparison, as
letter-case cannot possibly be an issue here.
* doc/lispref/files.texi (Directory Names): Move the documentation
of directory-name-p here from "Relative File Names". Update the
description per the changes in implementation.
* etc/NEWS: Move the entry for 'directory-name-p' to its proper
place and mark it documented.
Eli Zaretskii [Wed, 2 Dec 2015 14:09:24 +0000 (16:09 +0200)]
Minor copyedit in Emacs manual
* doc/emacs/search.texi (Lax Search): Make wording about character
folding by default less definitive. (Bug#22043)
Eli Zaretskii [Wed, 2 Dec 2015 14:06:01 +0000 (16:06 +0200)]
More emacs-module.c fixes for wide ints
* src/emacs-module.c (value_to_lisp) [WIDE_EMACS_INT]: Use
unsigned data types to manipulate pointers, to avoid sign
extension coming after us with a vengeance.
* modules/mod-test/test.el (mod-test-sum-test): Add tests for
Emacs with wide ints that verify integer values near the critical
value that requires us to switch to a cons cell.
Stephen Leake [Wed, 2 Dec 2015 12:25:12 +0000 (06:25 -0600)]
Fix bug#22069 in cl-generic.el
* lisp/emacs-lisp/cl-generic.el (cl-no-method): Remove %S; this string is
not run thru `format'.
Dmitry Gutov [Wed, 2 Dec 2015 02:12:03 +0000 (04:12 +0200)]
APPEND etags--xref-backend to xref-backend-functions
* lisp/progmodes/xref.el (xref-backend-functions):
Use APPEND when adding the default element
(http://lists.gnu.org/archive/html/emacs-devel/2015-12/msg00061.html).
Eli Zaretskii [Tue, 1 Dec 2015 19:29:14 +0000 (21:29 +0200)]
More accurate documentation of lax whitespace matching
* lisp/isearch.el (isearch-forward-word, isearch-forward-symbol)
(word-search-backward, word-search-forward)
(word-search-backward-lax, word-search-forward-lax): Mention in
doc strings that toggling lax whitespace matching has no effect on
these commands.
* doc/emacs/search.texi (Word Search, Symbol Search): Clarify that
lax whitespace matching has no effect on these commands.
Eli Zaretskii [Tue, 1 Dec 2015 18:34:12 +0000 (20:34 +0200)]
Fix emacs-module.c for wide ints
* src/emacs-module.c (lisp_to_value): Compare the produced value
with the original Lisp object, not with the one potentially
converted into a Lisp_Cons. Fixes assertion violations when
working with integers larger than fit into a 32-bit value.
* modules/mod-test/test.el (mod-test-sum-test): Add tests for
large integers, to test --with-wide-int.
Eli Zaretskii [Tue, 1 Dec 2015 16:16:22 +0000 (18:16 +0200)]
Document 'directory-files-recursively'
* lisp/files.el (directory-files-recursively): Doc fix. Rename
the argument MATCH to REGEXP, to be more explicit about its form.
* doc/lispref/files.texi (Contents of Directories): Improve the
documentation of 'directory-files-recursively'. Add
cross-references.
* etc/NEWS: Move the entry for 'directory-files-recursively' to
its place and mark it documented.
Eli Zaretskii [Tue, 1 Dec 2015 16:11:11 +0000 (18:11 +0200)]
Document 'inhibit-read-only' property
* doc/lispref/text.texi (Special Properties): Describe the new
'inhibit-read-only' text property. Add cross-reference to where
read-only buffers are described.
* doc/lispref/buffers.texi (Read Only Buffers): Mention that
'inhibit-read-only' property exempts text from being read-only.
Add cross-reference to "Special Properties".
* etc/NEWS: Move the entry about 'inhibit-read-only' property to
its place and mark it documented.
Artur Malabarba [Tue, 1 Dec 2015 15:11:33 +0000 (15:11 +0000)]
* lisp/emacs-lisp/package.el: Update header comments
Artur Malabarba [Tue, 1 Dec 2015 13:52:50 +0000 (13:52 +0000)]
* lisp/character-fold.el: Add back multi-char matching
(character-fold-to-regexp): Uncomment recently commented code
and make the algorithm "dummer" by not checking every possible
combination. This will miss some possible matches, but it
greatly reduces regexp size.
* test/automated/character-fold-tests.el
(character-fold--test-fold-to-regexp): Comment out test of
functionality no longer supported.
Xue Fuqiao [Tue, 1 Dec 2015 13:21:18 +0000 (21:21 +0800)]
* doc/emacs/ack.texi (Acknowledgments): Update.
Glenn Morris [Tue, 1 Dec 2015 12:18:24 +0000 (07:18 -0500)]
; Auto-commit of loaddefs files.
Michael Albinus [Tue, 1 Dec 2015 12:12:18 +0000 (13:12 +0100)]
Check `file-remote-p' over absolute files names in files.el
* lisp/files.el (directory-files-recursively)
(get-free-disk-space): Check `file-remote-p' over absolute files names.
Andreas Schwab [Tue, 1 Dec 2015 10:41:07 +0000 (11:41 +0100)]
* src/lread.c (syms_of_lread): Doc fix.
Dmitry Gutov [Tue, 1 Dec 2015 03:40:57 +0000 (05:40 +0200)]
Don't mistake certain JS method calls for keywords
* lisp/progmodes/js.el (js--ctrl-statement-indentation):
Braceless keyword can't come after a period (bug#22063).
David Reitter [Tue, 1 Dec 2015 01:52:27 +0000 (20:52 -0500)]
Read frame_title_format from buffer-local variable for NS port
* nsfns.m (x_implicitly_set_name): Read frame-title-format and
icon-title-format variables from buffer in appropriate window.
(Bug#22048)
Juri Linkov [Mon, 30 Nov 2015 23:38:15 +0000 (01:38 +0200)]
* lisp/replace.el (occur-engine): Count matches in empty lines.
(Bug#22062)
Aurélien Aptel [Mon, 30 Nov 2015 22:53:40 +0000 (23:53 +0100)]
* src/emacs-module.h: Fix finalizer typedef for C++11
C++11 standard doesn't allow exception-specification in typedef.
The workaround is to declare a dummy function prototype and use
decltype on it.
Eli Zaretskii [Mon, 30 Nov 2015 20:46:45 +0000 (22:46 +0200)]
Fix last change
* src/emacs-module.c (lisp_to_value, value_to_lisp)
[WIDE_EMACS_INT]: Avoid compiler warnings.
Phillip Lord [Mon, 30 Nov 2015 20:19:24 +0000 (20:19 +0000)]
; Fix broken reference
* doc/lispref/test.texi: Fix cross-reference.