]> code.delx.au - gnu-emacs/log
gnu-emacs
8 years agoinsert-file-contents-literally doc fix
Lars Ingebrigtsen [Sat, 30 Apr 2016 16:07:15 +0000 (18:07 +0200)]
insert-file-contents-literally doc fix

* lisp/files.el (insert-file-contents-literally): Say that the
parameters are explained in the other function (bug#18317).

(cherry picked from commit b6481b19bc9592492b1f70dfecb4de6256f537fe)

8 years agoFix custom types for cursor-in-non-selected-windows
Lars Ingebrigtsen [Sat, 30 Apr 2016 15:57:57 +0000 (17:57 +0200)]
Fix custom types for cursor-in-non-selected-windows

* lisp/cus-start.el (standard): Use the same custom types for
cursor-in-non-selected-windows as for cursor-type (bug#19214).

(cherry picked from commit b66bc0cced786e0320e1c3b0758bd3c434d4e8b5)

8 years agoDoc clarification to mwheel-scroll
Lars Ingebrigtsen [Sat, 30 Apr 2016 15:50:09 +0000 (17:50 +0200)]
Doc clarification to mwheel-scroll

* lisp/mwheel.el (mwheel-scroll): Mention that the restriction
does not apply to Windows (bug#19209).

(cherry picked from commit 696052b5fdfbc5c25dff3c6b081aebe70f6d06c7)

8 years agoClarify the doc of eval-expression-print-format
Lars Ingebrigtsen [Sat, 30 Apr 2016 15:39:05 +0000 (17:39 +0200)]
Clarify the doc of eval-expression-print-format

* lisp/simple.el (eval-expression-print-format): Doc
clarification (bug#19114).

(cherry picked from commit cd193a871f5a8e1c81ba86fc398ac382fa814383)

8 years agoExplictly explain that package-initialize loads the packages
Lars Ingebrigtsen [Sat, 30 Apr 2016 14:48:50 +0000 (16:48 +0200)]
Explictly explain that package-initialize loads the packages

* lisp/emacs-lisp/package.el (package-initialize): Be explicit
in saying that `package-initialize' obviates adjusting the
path or requiring the packages, as this is a question that
apparently comes up now and then (bug#18829).

(cherry picked from commit 619e0aedb2f3dbfe6821ac34e2d25b4e5c181117)

8 years agoHave the doc strings of `load-path' and `require' mention each other
Lars Ingebrigtsen [Sat, 30 Apr 2016 14:44:06 +0000 (16:44 +0200)]
Have the doc strings of `load-path' and `require' mention each other

* src/fns.c (Frequire): Mention `load-path' and fill the doc
string (bug#18829).

* src/lread.c (syms_of_lread): Mention that `require' uses
`load-path'.

(cherry picked from commit 3eca9a03816f95da0030665223c0b5262f223ba7)

8 years agoDoc fix for insert-pair-alist
Lars Ingebrigtsen [Sat, 30 Apr 2016 14:28:52 +0000 (16:28 +0200)]
Doc fix for insert-pair-alist

* lisp/emacs-lisp/lisp.el (insert-pair-alist): Say what
COMMAND-CHAR is (bug#18809).

(cherry picked from commit 2824c587e9749a8f350f1d3dddd65176b4561dcb)

8 years agoMove doc of backup-directory-alist to the Backup node
Lars Ingebrigtsen [Sat, 30 Apr 2016 14:21:54 +0000 (16:21 +0200)]
Move doc of backup-directory-alist to the Backup node

* doc/emacs/files.texi (Backup): Move the documentation of
`backup-directory-alist' here from the "Single or Numbered
Backups" node, because it doesn't seem to have much to do with
numbering (bug#18692).

(cherry picked from commit e77b8d84b4161f2cf8720dec2bf44a3e50134398)

8 years agoTiny doc clarification for create-fontset-from-fontset-spec
Lars Ingebrigtsen [Sat, 30 Apr 2016 14:15:46 +0000 (16:15 +0200)]
Tiny doc clarification for create-fontset-from-fontset-spec

* lisp/international/fontset.el (create-fontset-from-fontset-spec):
Clarify what the optional part is (bug#18686).

(cherry picked from commit c05d186455ce9907eeb6b21ea4227e453996c681)

8 years agoFill the doc string of font-lock-keywords
Lars Ingebrigtsen [Sat, 30 Apr 2016 14:08:07 +0000 (16:08 +0200)]
Fill the doc string of font-lock-keywords

* lisp/font-lock.el (font-lock-keywords): Fill the lines and
reorganise some explanations (bug#21427).

(cherry picked from commit c05716d3a26ea7518b89eacfccaf70c9d0731df7)

8 years agoDoc fix for font-lock-remove-keywords
Lars Ingebrigtsen [Sat, 30 Apr 2016 13:55:44 +0000 (15:55 +0200)]
Doc fix for font-lock-remove-keywords

* lisp/font-lock.el (font-lock-remove-keywords): Add a link to
`font-lock-add-keywords' to describe KEYWORDS (bug#18634).

(cherry picked from commit bc00dcf12983cd399127d0eea39647f29778eb02)

8 years agoClarify whitespace-style doc string
Lars Ingebrigtsen [Sat, 30 Apr 2016 13:27:09 +0000 (15:27 +0200)]
Clarify whitespace-style doc string

* lisp/whitespace.el (whitespace-style): Doc clarification
(bug#18296).

(cherry picked from commit d96c720d0cca7c9ffbb4c712ad315bb707d6625c)

8 years agoDoc fixed for next-error-buffer-p
Lars Ingebrigtsen [Sat, 30 Apr 2016 00:03:24 +0000 (02:03 +0200)]
Doc fixed for next-error-buffer-p

* lisp/simple.el (next-error-buffer-p): Clarify doc string
(bug#18202).

(cherry picked from commit a10eb168cc96db9f0dab2d75550cbd8f08be2363)

8 years agoTiny doc fix
Lars Ingebrigtsen [Fri, 29 Apr 2016 23:26:17 +0000 (01:26 +0200)]
Tiny doc fix

* src/fileio.c (Ffile_accessible_directory_p): Tiny doc fix
(and fill) (bug#18201).

(cherry picked from commit 2ef0040e2363a669d9b93df935d31c98fa130132)

8 years agoDoc fix
Lars Ingebrigtsen [Fri, 29 Apr 2016 22:54:13 +0000 (00:54 +0200)]
Doc fix

* src/keymap.c (Fdefine_prefix_command): Clarify doc string
slightly (bug#18092).

(cherry picked from commit 6b769c81d024f7eeb90b167e7df6f87d859614d4)

8 years agodelsel doc touch ups
Lars Ingebrigtsen [Fri, 29 Apr 2016 22:37:31 +0000 (00:37 +0200)]
delsel doc touch ups

* lisp/delsel.el (delete-selection-helper): Use non-nil
instead of t and clarify function return values (bug#18089).

(cherry picked from commit d7a5b5be9a5869bcd233434ec3103dd1976d7df7)

8 years agoDoc fixes for menu-bar.el
Lars Ingebrigtsen [Fri, 29 Apr 2016 22:11:15 +0000 (00:11 +0200)]
Doc fixes for menu-bar.el

* lisp/menu-bar.el (clipboard-kill-ring-save): Describe the
REGION parameter (bug#18028).
(clipboard-kill-region): Ditto.

(cherry picked from commit 33d2c67bff0992ecbc0fe38556683242b9d1a4ae)

8 years agoDoc fix
Lars Ingebrigtsen [Fri, 29 Apr 2016 22:08:07 +0000 (00:08 +0200)]
Doc fix

* lisp/rect.el (delete-whitespace-rectangle): Doc fix (bug#18026).

(cherry picked from commit 6baca4911ec901579749dbf7596011d90fea3781)

8 years agoMinor doc clarification
Lars Ingebrigtsen [Fri, 29 Apr 2016 22:02:46 +0000 (00:02 +0200)]
Minor doc clarification

* lisp/subr.el (y-or-n-p): Document the return value from "n"
(bug#18024).

(cherry picked from commit 5d1f3192d484edee92caa46cd7d699da3e920259)

8 years agoFill font-lock-mode doc string
Lars Ingebrigtsen [Fri, 29 Apr 2016 21:53:12 +0000 (23:53 +0200)]
Fill font-lock-mode doc string

* lisp/font-core.el (font-lock-mode): Fill the text to make it
narrower (bug#18008).

(cherry picked from commit 27abf372836532c57be2e9e3ed23413729cc07fc)

8 years agoWrap the auto-generated doc string
Lars Ingebrigtsen [Fri, 29 Apr 2016 21:25:07 +0000 (23:25 +0200)]
Wrap the auto-generated doc string

* lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Wrap a
string to make it less likely that we get overlong lines
(bug#17999).

(cherry picked from commit 323b69664914d687fd4b48593479cea223dfbcb4)

8 years agoClarify hi-lock-find-patterns
Lars Ingebrigtsen [Fri, 29 Apr 2016 20:53:42 +0000 (22:53 +0200)]
Clarify hi-lock-find-patterns

* lisp/hi-lock.el (hi-lock-find-patterns): Doc clarification
(bug#17989).

(cherry picked from commit 552e90ce7dff3a7107243fdf71c4de3af443e13a)

8 years agoAdd a doc string to `winner-mode'
Lars Ingebrigtsen [Fri, 29 Apr 2016 20:28:02 +0000 (22:28 +0200)]
Add a doc string to `winner-mode'

* lisp/winner.el (winner-mode): Add a doc string based on the
comments in the file (bug#17716).

(cherry picked from commit 2c3ab9b6e39a3d600e7d82deacc24effaec051bb)

8 years agoDoc fix for align-newline-and-indent
Lars Ingebrigtsen [Fri, 29 Apr 2016 20:14:05 +0000 (22:14 +0200)]
Doc fix for align-newline-and-indent

* lisp/align.el (align-newline-and-indent): Mention that
alignment is done by `align' (bug#17707).

(cherry picked from commit 340a224ec3e01706112a07164da9a9f3f369a5aa)

8 years agoDoc fix for `kbd'
Lars Ingebrigtsen [Fri, 29 Apr 2016 18:27:22 +0000 (20:27 +0200)]
Doc fix for `kbd'

* lisp/subr.el (kbd): Describe more fully the format of the
parameter (bug#17039).

(cherry picked from commit 3a33afe25d8518f194fa4706eaccdb2a786a0348)

8 years agoDoc tweak
Lars Ingebrigtsen [Fri, 29 Apr 2016 15:54:55 +0000 (17:54 +0200)]
Doc tweak

* lisp/simple.el (use-empty-active-region): Doc tweak.
There's only one region (bug#16513).

(cherry picked from commit 35fb7897f161d5e5a87e039dc1e427094640b0c8)

8 years agoLink from (emacs)Exiting to (lisp)Killing Emacs
Lars Ingebrigtsen [Fri, 29 Apr 2016 13:52:18 +0000 (15:52 +0200)]
Link from (emacs)Exiting to (lisp)Killing Emacs

* doc/emacs/entering.texi (Exiting): Link to the lispref
manual for further customisations (bug#15445).

(cherry picked from commit bc5f27aa099cdde02ca66e71501b89300685ab28)

8 years agofind-lisp doc touchups
Lars Ingebrigtsen [Fri, 29 Apr 2016 13:37:08 +0000 (15:37 +0200)]
find-lisp doc touchups

* lisp/find-lisp.el (find-lisp-format): Copy over the doc
string (bug#15047).
(find-lisp-find-files): Clarify doc.

(cherry picked from commit e4c7657b0d1a31d64ca24bc64b5480cd7687e332)

8 years agoDon't have the manual claim that it lists all CL incompatibilities
Lars Ingebrigtsen [Fri, 29 Apr 2016 13:26:25 +0000 (15:26 +0200)]
Don't have the manual claim that it lists all CL incompatibilities

* doc/misc/cl.texi (Common Lisp Compatibility): The list of
incompatibilities isn't exhaustive, so don't say that it is
(bug#15171).

(cherry picked from commit fb685bc91a72508c97ce7e30f970d4157677f371)

8 years agoChange all occurrences of "Mouse-[0-9]" to "mouse-[0-9]"
Lars Ingebrigtsen [Fri, 29 Apr 2016 12:36:23 +0000 (14:36 +0200)]
Change all occurrences of "Mouse-[0-9]" to "mouse-[0-9]"

* doc/emacs/*.texi: Change all occurrences of "Mouse-[0-9]" to
"mouse-[0-9]".  These are case sensitive, and the keys are lower case
(bug#14554).

(cherry picked from commit e4c26271f2c2fe08f8490e25c63a436ab2a804ca)

8 years agoDoc string change to enable-recursive-minibuffers
Lars Ingebrigtsen [Thu, 28 Apr 2016 23:19:49 +0000 (01:19 +0200)]
Doc string change to enable-recursive-minibuffers

* src/minibuf.c (syms_of_minibuf): Mention
minibuffer-depth-indicator-mode in the doc string to
enable-recursive-minibuffers (bug#14147).

(cherry picked from commit 23ba488a5e8290c4de91e0ff4161641efa364c0d)

8 years agoClarify the `interactive' doc string slightly
Lars Ingebrigtsen [Thu, 28 Apr 2016 22:17:50 +0000 (00:17 +0200)]
Clarify the `interactive' doc string slightly

* src/callint.c (Finteractive): Clarify the doc string slightly
  (bug#14577).

(cherry picked from commit cd993be60da2d12db0d390001373d486c1091c47)

8 years agoClarify some doc strings
Lars Ingebrigtsen [Thu, 28 Apr 2016 11:00:11 +0000 (13:00 +0200)]
Clarify some doc strings

* lisp/emacs-lisp/syntax.el (syntax-propertize-via-font-lock):
Clarify doc string (bug#8693).
(syntax-propertize): Clarify doc string.

(cherry picked from commit ad3ef417f3c40f086de9c547d6272e5685595e42)

8 years agoAdd some concept index entries for custom types
Lars Ingebrigtsen [Wed, 27 Apr 2016 22:53:04 +0000 (00:53 +0200)]
Add some concept index entries for custom types

* doc/lispref/customize.texi (Composite Types): Add concept
index entries for restricted-sexp, radio and choice (bug#7385).

(cherry picked from commit 388bb723fa078158d3148de05e942f9c01e95dd8)

8 years agoMention `lisp-indent-function' in the lispref manual
Lars Ingebrigtsen [Wed, 27 Apr 2016 18:48:30 +0000 (20:48 +0200)]
Mention `lisp-indent-function' in the lispref manual

* doc/lispref/macros.texi (Indenting Macros): Mention
`lisp-indent-function' (bug#3393).

(cherry picked from commit a1627691a896b2afaa264f93534178bc763564c9)

8 years agoClarify doc string of internal compilation function
Lars Ingebrigtsen [Wed, 27 Apr 2016 18:40:59 +0000 (20:40 +0200)]
Clarify doc string of internal compilation function

* lisp/progmodes/compile.el (compilation-get-file-structure):
Clarify doc string (bug#3137).

(cherry picked from commit 123191decb7428db3b32a6c01631fa755088393a)

8 years agoUse ‘T *restrict’ proto, not ‘T[restrict]’
Paul Eggert [Sun, 1 May 2016 16:00:08 +0000 (09:00 -0700)]
Use ‘T *restrict’ proto, not ‘T[restrict]’

* src/fns.c (sort_vector_copy): Use a different way to attempt to
work around GCC 3.0-and-earlier incompatibility with C99, one that
does not have problems with modern non-GCC compilers.

8 years agoFix documentation of 'url-retrieve-synchronously'
Eli Zaretskii [Sun, 1 May 2016 15:28:48 +0000 (18:28 +0300)]
Fix documentation of 'url-retrieve-synchronously'

* doc/misc/url.texi (Retrieving URLs): Update argument list of
'url-retrieve-synchronously'.  (Bug#23411)

8 years ago* lisp/url/url.el (url-retrieve-synchronously): Doc fix. (Bug#23411)
Eli Zaretskii [Sun, 1 May 2016 15:24:51 +0000 (18:24 +0300)]
* lisp/url/url.el (url-retrieve-synchronously): Doc fix.  (Bug#23411)

8 years ago; Auto-commit of loaddefs files.
Glenn Morris [Sun, 1 May 2016 11:29:19 +0000 (07:29 -0400)]
; Auto-commit of loaddefs files.

8 years agoFix last change to isearch-update (bug#23406)
Leo Liu [Sun, 1 May 2016 03:03:59 +0000 (11:03 +0800)]
Fix last change to isearch-update (bug#23406)

* lisp/isearch.el (isearch-update): Remove (setq cursor-sensor-inhibit
  nil) ie remove the original (unless (boundp 'cursor-sensor-inhibit)
  ...) form.

8 years agoAutoload cursor-sensor-inhibit (bug#23406)
Leo Liu [Sat, 30 Apr 2016 15:35:27 +0000 (23:35 +0800)]
Autoload cursor-sensor-inhibit (bug#23406)

* lisp/emacs-lisp/cursor-sensor.el (cursor-sensor-inhibit): Autoload.
* lisp/isearch.el (isearch-update): Remove boundp check.

8 years agoorg-map-entries: Fix org-agenda-prepare-buffers call
Phillip Lord [Sat, 30 Apr 2016 07:43:39 +0000 (08:43 +0100)]
org-map-entries: Fix org-agenda-prepare-buffers call

* lisp/org.el (org-map-entries): Check that buffer-file-name is non-nil
  before passing to org-agenda-prepare-buffers.

This is a backport of commit 44c8cd7136e3fcd1e6bfa08895cac437b7a691fa
from upstream org-mode. Addresses bug #23365.

8 years agoFollowup for last commit in the user manual
Eli Zaretskii [Sat, 30 Apr 2016 11:18:43 +0000 (14:18 +0300)]
Followup for last commit in the user manual

* doc/emacs/basic.texi (Moving Point): Clarify that
set-goal-column has buffer-local effect.  (Bug#23405)

8 years agoImprove doc string of 'set-goal-column'
Eli Zaretskii [Sat, 30 Apr 2016 11:14:57 +0000 (14:14 +0300)]
Improve doc string of 'set-goal-column'

* lisp/simple.el (set-goal-column): Doc fix.  (Bug#23405)

8 years agoFix the MSDOS build
Eli Zaretskii [Sat, 30 Apr 2016 10:45:33 +0000 (13:45 +0300)]
Fix the MSDOS build

* config.bat:
* msdos/sedlisp.inp:
* msdos/sedlibmk.inp:
* msdos/sedleim.inp:
* msdos/sedadmin.inp:
* msdos/sed6.inp:
* msdos/sed3v2.inp:
* msdos/sed2v2.inp:
* msdos/sed1v2.inp: Adapt to Emacs 25.

* src/process.c (remove_slash_colon): Move out of "#ifdef
subprocesses" block, as it its called unconditionally.  Move
ADD_SUBFEATURE calls into "#ifdef subprocesses" block, as they
reference variables only defined in that block.
* src/msdos.h: Provide prototypes for IT_set_frame_parameters,
faccessat, msdos_fatal_signal, syms_of_msdos, pthread_sigmask,
dos_keysns, dos_keyread, run_msdos_command, and
syms_of_win16select, to avoid compiler warnings.
* src/msdos.c (SYS_ENVIRON): Define to either '_environ' or
'environ', depending on the DJGPP version.
Remove declarations of externally-visible Lisp objects, like
Qbackground_color and Qreverse.
(run_msdos_command): First argument is not signed, not unsigned.
Use SYS_ENVIRON.
(sys_select): Use 'timespec_cmp' instead of 'timespec_sign', as
the latter doesn't work when 'time_t' is an unsigned data type.
This caused idle timers to behave incorrectly: they only fired
after a keyboard input event.
* src/frame.c (adjust_frame_size) [MSDOS]: Account for
FRAME_TOP_MARGIN that isn't counted in the frame's number of
lines, but dos_set_window_size needs it to be added.
* src/lread.c (INFINITY, NAN) [DJGPP < 2.05]: Provide definitions.
* src/fns.c (sort_vector_copy) [__GNUC__ < 4]: Provide a prototype
that works around compilation errors with older GCC versions.
* src/w16select.c: Don't declare QCLIPBOARD and QPRIMARY as Lisp
Objects.
* src/filelock.c [MSDOS]: Ifdef away most of the code.  Provide
no-op implementations for 'lock_file' and 'unlock_file'.
(Ffile_locked_p) [MSDOS]: Always return nil.  This avoids multiple
ifdefs in all users of filelock.c functionality.
* src/conf_post.h (EOVERFLOW, SIZE_MAX) [DJGPP < 2.04]: Define.
* src/emacs.c [MSDOS]: Include dosfns.h, to avoid compiler
warnings.
* src/dosfns.h: Provide prototypes for dos_cleanup,
syms_of_dosfns, and init_dosfns.
* src/deps.mk (atimer.o): Depend on msdos.h.
(emacs.o): Depend on dosfns.h.
* src/atimer.c [MSDOS]: Include msdos.h, to avoid compiler
warnings.

* lisp/window.el (window--adjust-process-windows): Skip the body
if 'process-list' is not available.  This avoids failure to start
up on MS-DOS.
* lisp/vc/diff.el (diff-no-select): Test 'make-process', not
'start-process', as the latter is now available on all platforms.
* lisp/textmodes/ispell.el (ispell-async-processp): Replace
'start-process' with 'make-process' in a comment.
* lisp/term/internal.el (IT-unicode-translations): Modify and add
a few translations to display Info files with Unicode markup.  Fix
an ancient off-by-one mismatch error with Unicode codepoints.
* lisp/progmodes/compile.el (compilation-start): Test
'make-process', not 'start-process', as the latter is now
available on all platforms.
* lisp/man.el (Man-build-man-command, Man-getpage-in-background):
Test 'make-process', not 'start-process', as the latter is now
available on all platforms.
* lisp/international/mule-cmds.el (set-coding-system-map): Test
'make-process', not 'start-process', as the latter is now
available on all platforms.
* lisp/eshell/esh-cmd.el (eshell-do-pipelines-synchronously): Doc
fix.
(eshell-execute-pipeline): Test 'make-process', not
'start-process', as the latter is now available on all platforms.

8 years agoRemove \= from format string (bug#18190)
Andreas Schwab [Sat, 30 Apr 2016 10:16:55 +0000 (12:16 +0200)]
Remove \= from format string (bug#18190)

* lisp/emacs-lisp/eieio.el (defclass): Remove \= from format
string.

8 years agoFix variable-pitch font on MS-Windows
Eli Zaretskii [Sat, 30 Apr 2016 09:56:03 +0000 (12:56 +0300)]
Fix variable-pitch font on MS-Windows

* lisp/faces.el (variable-pitch) [w32]: Name a variable-pitch font
explicitly, to avoid Emacs picking up a bold-italic variant on
some MS-Windows systems.  See this thread for details:
http://lists.gnu.org/archive/html/emacs-devel/2016-04/msg00746.html.

8 years agoRestore follow-scroll-up/down to scrolling by the combined size of all windows
Alan Mackenzie [Fri, 29 Apr 2016 14:58:21 +0000 (14:58 +0000)]
Restore follow-scroll-up/down to scrolling by the combined size of all windows

Also rename the current follow-scroll-up/down functions to
follow-scroll-up-window and follow-scroll-down-window.  These scroll by the
height of the current window.

This fixes bug #23347.

* lisp/follow.el (follow-mode): Tweak the doc string.
(follow-scroll-up-arg, follow-scroll-down-arg): new functions, extracted from
follow-scroll-up/down.
(follow-scroll-up-window, follow-scroll-down-window): Functions renamed from
follow-scroll-up/down.
(follow-scroll-up, follow-scroll-down): Restore the historic functionality.

8 years agoRevert unneeded change which harms syntactic parsing. This fixes bug #23308.
Alan Mackenzie [Fri, 29 Apr 2016 14:36:33 +0000 (14:36 +0000)]
Revert unneeded change which harms syntactic parsing.  This fixes bug #23308.

* lisp/progmodes/cc-engine.el (c-invalidate-state-cache): User
c-state-old-cpp-end as an argument to c-with-all-but-one-cpps-commented-out
regardless of the value of `here'.

8 years agoCorrect indentation of ids in a C++ enum after a protection keyword.
Alan Mackenzie [Fri, 29 Apr 2016 13:35:01 +0000 (13:35 +0000)]
Correct indentation of ids in a C++ enum after a protection keyword.

Also correct the misfontification of the last enum identifier.

* lisp/progmodes/cc-engine.el (c-forward-keyword-prefixed-id): setq
c-last-identifier-range to nil to ensure that only types recognized by this
macro are set for fontification as types.
(c-backward-typed-enum-colon): Function renamed from
c-backward-colon-prefixed-type.  On finding a colon in the backward search,
check it is preceded by an identifier rather than a keyword.

8 years ago* lisp/window.el (window--process-window-list): No-op if no processes.
Glenn Morris [Wed, 27 Apr 2016 23:21:41 +0000 (19:21 -0400)]
* lisp/window.el (window--process-window-list): No-op if no processes.

This avoids an issue with save-selected-window (from walk-windows)
failing if frame.el is not loaded, eg if the terminal is resized
during startup of a -nw CANNOT_DUMP build.  (Bug#23369).

8 years agoPort dumping to NetBSD with PaX
Paul Eggert [Wed, 27 Apr 2016 22:52:53 +0000 (15:52 -0700)]
Port dumping to NetBSD with PaX

Problem reported by Thomas Klausner (Bug#23371).
* configure.ac (PAXCTL_dumped, PAXCTL_notdumped): New vars.
Set them to setfattr and/or paxctl commands appropriate for
GNU/Linux and/or NetBSD; the latter prefers paxctl +a.  Search
for paxctl only if setfattr is not found.
* src/Makefile.in (PAXCTL_dumped, PAXCTL_notdumped):
New vars, replacing PAXCTL_if_present and SETFATTR_if_present.
All uses changed.

8 years agoDon't mistake `for' inside a function for a part of array comprehension
Dmitry Gutov [Wed, 27 Apr 2016 23:00:23 +0000 (02:00 +0300)]
Don't mistake `for' inside a function for a part of array comprehension

* lisp/progmodes/js.el (js--indent-in-array-comp): Also check the
depth in parens between the bracket and `for' (bug#23391).

* test/indent/js.js: Add a corresponding example.

8 years agoFix bug#22891: wrong terminal width when a fringe width is zero.
Anders Lindgren [Tue, 26 Apr 2016 18:58:52 +0000 (20:58 +0200)]
Fix bug#22891: wrong terminal width when a fringe width is zero.

When either fringe width is zero, Emacs reserved one column for a
continuation glyph. Terminal windows does not take this into
account when the frame is resized.

* lisp/window.el (window-adjust-process-window-size): Use
`window-max-chars-per-line' instead of `window-body-width'.
* lisp/term.el (term-window-width): Remove function. (It does the
same as `window-max-chars-per-line' but without recent bug fixes.)
(term-mode): Use `window-max-chars-per-line' instead of
`term-window-width'.

Backport

(cherry picked from commit 5b5403289888efe8783ae6a405845b925f544ec1)

8 years agoImprove last change to vc-git-mode-line-string
Leo Liu [Wed, 27 Apr 2016 14:12:12 +0000 (22:12 +0800)]
Improve last change to vc-git-mode-line-string

* lisp/vc/vc-git.el (vc-git-mode-line-string): Better fix that caches
  the result.

8 years agoTodo mode doc bug fix
Stephen Berman [Wed, 27 Apr 2016 08:18:02 +0000 (10:18 +0200)]
Todo mode doc bug fix

* lisp/calendar/todo-mode.el (todo-show): Correct obsolete and no
longer correct information in doc string.

8 years agoFix revision calculation in vc-git-mode-line-string
Leo Liu [Wed, 27 Apr 2016 05:18:04 +0000 (13:18 +0800)]
Fix revision calculation in vc-git-mode-line-string

* lisp/vc/vc-git.el (vc-git-mode-line-string): Use
  vc-git-working-revision because vc-working-revision needs to decide
  the backend and may return nil.

8 years ago; Fix errant revert ccb75d7
Mark Oteiza [Wed, 27 Apr 2016 00:05:57 +0000 (20:05 -0400)]
; Fix errant revert ccb75d7

* lisp/rect.el (rectangle--highlight-for-redisplay): Use region face.

8 years agoAdd Python 3.5 keyword "await"
Jorgen Schaefer [Thu, 21 Apr 2016 08:00:39 +0000 (10:00 +0200)]
Add Python 3.5 keyword "await"

* lisp/progmodes/python.el (python-font-lock-keywords): Add await as
keyword.

8 years agoAdd new keywords of Python 3.5
Lele Gaifax [Wed, 6 Apr 2016 08:38:23 +0000 (10:38 +0200)]
Add new keywords of Python 3.5

Python 3.5, released in mid September 2015, introduced a few new
keywords to better support asynchronous code, "async" and "await"
in particular. See https://www.python.org/dev/peps/pep-0492/ for
details. (Bug#21783)
* lisp/progmodes/python.el (python-rx-constituents): Add async
def/for/with as block-start and async def as defun.
* lisp/progmodes/python.el (python-font-lock-keywords): Add async
def/for/with as keyword.
* test/automated/python-tests.el (python-indent-after-async-block-1,
python-indent-after-async-block-2, python-indent-after-async-block-3,
python-nav-beginning-of-defun-3): New tests to test indentation and
navigation for the async keyword.

8 years agoPartially revert previous change.
Mark Oteiza [Tue, 26 Apr 2016 15:42:53 +0000 (11:42 -0400)]
Partially revert previous change.

This commit partially reverts 0f332848cdb2ed6d46771914a911cbca194cd51a.
* lisp/rect.el (rectangle--highlight-for-redisplay): Use region face.
This function is for rectangle-mark-mode, not string-rectangle.

8 years ago; * etc/NEWS: Update entry about color fonts on OS X with a workaround.
Eli Zaretskii [Tue, 26 Apr 2016 05:49:29 +0000 (08:49 +0300)]
; * etc/NEWS: Update entry about color fonts on OS X with a workaround.

8 years agoSay why text-quoting-style is not a user option
Paul Eggert [Mon, 25 Apr 2016 22:19:55 +0000 (15:19 -0700)]
Say why text-quoting-style is not a user option

* doc/lispref/help.texi (Keys in Documentation):
* etc/NEWS: Document why text-quoting-style is not a
customizable variable (Bug#23372).

8 years ago* lisp/emacs-lisp/autoload.el (update-directory-autoloads):
Glenn Morris [Mon, 25 Apr 2016 21:28:00 +0000 (17:28 -0400)]
* lisp/emacs-lisp/autoload.el (update-directory-autoloads):
Future-proof against non-time-values.

; Do not merge to master.

8 years ago; Auto-commit of loaddefs files.
Glenn Morris [Mon, 25 Apr 2016 11:22:14 +0000 (07:22 -0400)]
; Auto-commit of loaddefs files.

8 years agoDon't mention ~/.emacs.bmk literally in doc strings
Eli Zaretskii [Mon, 25 Apr 2016 08:28:17 +0000 (11:28 +0300)]
Don't mention ~/.emacs.bmk literally in doc strings

* lisp/bookmark.el (bookmark-save-flag, bookmark-load): Don't
mention "~/.emacs.bmk" explicitly as the default bookmark file in
the doc strings.  (Bug#23350)

8 years ago* etc/NEWS: Explain why multicolor font display is disabled on OS X Cocoa.
YAMAMOTO Mitsuharu [Mon, 25 Apr 2016 08:23:15 +0000 (17:23 +0900)]
* etc/NEWS: Explain why multicolor font display is disabled on OS X Cocoa.

8 years agoPort to Ubuntu 16.04 --enable-gcc-warnings
Paul Eggert [Sun, 24 Apr 2016 20:38:38 +0000 (13:38 -0700)]
Port to Ubuntu 16.04 --enable-gcc-warnings

* src/image.c (gif_load) [HAVE_GIF]: Fix pointer signedness problem.

8 years ago* etc/NEWS: Improve wording of vc-git-log-output-coding-system etc.
Paul Eggert [Sun, 24 Apr 2016 19:42:02 +0000 (12:42 -0700)]
* etc/NEWS: Improve wording of vc-git-log-output-coding-system etc.

8 years agoDon't kill ~/ if it's the top level directory
Tino Calancha [Sun, 24 Apr 2016 15:05:33 +0000 (17:05 +0200)]
Don't kill ~/ if it's the top level directory

* lisp/dired-aux.el (dired-kill-subdir): Don't kill ~/ if it's
the top level directory (bug#23017).

8 years agodescribe-char: fix insert char documentation
Tino Calancha [Sat, 23 Apr 2016 19:41:28 +0000 (12:41 -0700)]
describe-char: fix insert char documentation

* lisp/descr-text.el (describe-char):
Only 'ucs-names' entries can be inserted by unicode name (Bug#23325).

Copyright-paperwork-exempt: yes

8 years ago(vc-git-mode-line-string): Don't use `replace-regexp-in-string'
Dmitry Gutov [Sat, 23 Apr 2016 19:16:27 +0000 (22:16 +0300)]
(vc-git-mode-line-string): Don't use `replace-regexp-in-string'

* lisp/vc/vc-git.el (vc-git-mode-line-string): Use `substring'
instead of `replace-regexp-in-string', because REV can be nil
(e.g. when FILE is a directory, bug#23344), and we actually know
we only need the first 4 characters.

8 years agoBump version to 25.0.93 emacs-25.0.93
Nicolas Petton [Fri, 22 Apr 2016 17:00:05 +0000 (19:00 +0200)]
Bump version to 25.0.93

* README:
* configure.ac:
* msdos/sed2v2.inp: Bump Emacs version to 25.0.93.

8 years ago* etc/AUTHORS: Update the AUTHORS file
Nicolas Petton [Fri, 22 Apr 2016 16:59:44 +0000 (18:59 +0200)]
* etc/AUTHORS: Update the AUTHORS file

8 years ago* admin/update_autogen: Use #!/usr/bin/env bash
Nicolas Petton [Fri, 22 Apr 2016 16:58:57 +0000 (18:58 +0200)]
* admin/update_autogen: Use #!/usr/bin/env bash

8 years ago; Auto-commit of loaddefs files.
Nicolas Petton [Fri, 22 Apr 2016 16:57:36 +0000 (18:57 +0200)]
; Auto-commit of loaddefs files.

8 years ago; ChangeLog fixes
Nicolas Petton [Fri, 22 Apr 2016 16:54:52 +0000 (18:54 +0200)]
; ChangeLog fixes

* ChangeLog.2:
* lisp/ChangeLog.17: Fix ChangeLog entries

8 years ago* admin/authors.el (authors-ignored-files): Additions.
Nicolas Petton [Fri, 22 Apr 2016 16:50:26 +0000 (18:50 +0200)]
* admin/authors.el (authors-ignored-files): Additions.

8 years agoIn x_set_window_size restore do_pending_window_change calls
Martin Rudalics [Fri, 22 Apr 2016 09:56:03 +0000 (11:56 +0200)]
In x_set_window_size restore do_pending_window_change calls

* src/xterm.c (x_set_window_size):
* src/w32term.c (x_set_window_size): Restore
do_pending_window_change calls after their stupid removal on
2015-08-31.

8 years agoFix Alt-modified keys on some European MS-Windows keyboards
Ilya Zakharevich [Thu, 21 Apr 2016 16:08:16 +0000 (19:08 +0300)]
Fix Alt-modified keys on some European MS-Windows keyboards

* src/w32fns.c (deliver_wm_chars): If the reported character is
ASCII, AND Meta modifier is a candidate, behave as if Meta is
present, i.e. fall back to the legacy code.  (Bug#23251)

8 years agoDocument 'help-go-forward'
Eli Zaretskii [Thu, 21 Apr 2016 02:27:58 +0000 (05:27 +0300)]
Document 'help-go-forward'

* doc/emacs/help.texi (Help Mode): Document and index
'help-go-forward'.  (Bug#23323)

8 years agoRevert "Allow to customize names of executables used by grep.el"
Eli Zaretskii [Thu, 21 Apr 2016 02:08:29 +0000 (05:08 +0300)]
Revert "Allow to customize names of executables used by grep.el"

This reverts commit c93ae7a1e5a94541189a8f36984014344d561ffc.

8 years agoRevert "Don't use 'find-program'"
Eli Zaretskii [Thu, 21 Apr 2016 02:07:27 +0000 (05:07 +0300)]
Revert "Don't use 'find-program'"

This reverts commit 10597c977d55cbf9304b51c3b364ce58199384a0.

8 years agoRevert "Use 'grep-find-program' in check-declare.el"
Eli Zaretskii [Thu, 21 Apr 2016 02:06:26 +0000 (05:06 +0300)]
Revert "Use 'grep-find-program' in check-declare.el"

This reverts commit 33bef6e90bfd20609d044b8a076c1570c627684a.

8 years agoClarify documentation of 'dired-mark-files-containing-regexp'
Eli Zaretskii [Wed, 20 Apr 2016 14:52:25 +0000 (17:52 +0300)]
Clarify documentation of 'dired-mark-files-containing-regexp'

* doc/emacs/dired.texi (Marks vs Flags): Clarify that for files
visited in buffers, 'dired-mark-files-containing-regexp' searches
the buffer rather than the file on disk.  (Bug#22694)

* lisp/dired.el (dired-mark-files-containing-regexp): Clarify that
for files visited in buffers, 'dired-mark-files-containing-regexp'
searches the buffer rather than the file on disk.  (Bug#22694)

8 years agoMake tmm-menubar work in correct order again
Eli Zaretskii [Tue, 19 Apr 2016 15:06:52 +0000 (18:06 +0300)]
Make tmm-menubar work in correct order again

* lisp/tmm.el (tmm-prompt): Don't reverse 'tmm-km-list' right at the
beginning; instead, pass a reversed copy to 'tmm--completion-table'.
(Bug#23309)
(tmm-menubar): Fix an off-by-one error in determining the menu
item when the function is called with a non-nil 'x-position'
argument.

8 years agoRemove the Meta-CVS VC backend
Dmitry Gutov [Mon, 18 Apr 2016 22:20:59 +0000 (01:20 +0300)]
Remove the Meta-CVS VC backend

* lisp/obsolete/vc-mcvs.el: Remove the file (bug#20475).

* lisp/vc/log-view.el (log-view-extract-comment): Remove the MCVS
reference.

* doc/misc/efaq-w32.texi (Version control): Same.

8 years agoFix Bug#23276
Michael Albinus [Mon, 18 Apr 2016 08:11:44 +0000 (10:11 +0200)]
Fix Bug#23276

* lisp/autorevert.el (auto-revert-handler): Ignore errors
coming from `revert-buffer'.  (Bug#23276)

8 years agoSync with upstream vhdl mode v3.38.1.
Reto Zimmermann [Sun, 17 Apr 2016 23:15:29 +0000 (16:15 -0700)]
Sync with upstream vhdl mode v3.38.1.

* lisp/progmodes/vhdl-mode.el (vhdl-version, vhdl-time-stamp): Update.
(vhdl-mode): No longer set comment-padding.
(vhdl-begin-p): Handle missing space between keyword and parenthesis.
(vhdl-beginning-of-statement-1): Fix indentation for "else generate".
(vhdl-template-else, vhdl-template-elsif): Support generate statement.
(vhdl-re-search-forward, vhdl-re-search-backward): Save match data.

8 years agoTweak configure.ac syntax in recent module patch
Paul Eggert [Sun, 17 Apr 2016 02:49:15 +0000 (19:49 -0700)]
Tweak configure.ac syntax in recent module patch

* configure.ac: Use proper Autoconf parenthesization in
recent HAVE_MODULES patch.  Although this doesn’t fix any bugs,
the previous syntax was confusing.

8 years agoPort to GCC 5.3.1 20160406 (Red Hat 5.3.1-6)
Paul Eggert [Sun, 17 Apr 2016 02:47:33 +0000 (19:47 -0700)]
Port to GCC 5.3.1 20160406 (Red Hat 5.3.1-6)

* src/indent.c (Fvertical_motion): Pacify --enable-gcc-warnings
when using the April 6 Fedora patch to GCC.

8 years agoMake sh-electric-here-document-mode accessible in sh-mode-hook. (Bug#3226)
Mark Oteiza [Sat, 16 Apr 2016 18:40:17 +0000 (14:40 -0400)]
Make sh-electric-here-document-mode accessible in sh-mode-hook. (Bug#3226)

* lisp/progmodes/sh-script.el (sh-mode-hook): Add
sh-electric-here-document-mode as an option and the default value.
(sh-mode): Mention sh-mode-hook in docstring.
(sh-mode): Remove sh-electric-here-document-mode invocation.

8 years ago; Add entry to MAINTAINERS
Michael Albinus [Sat, 16 Apr 2016 18:46:06 +0000 (20:46 +0200)]
; Add entry to MAINTAINERS

8 years ago* configure.ac (HAVE_MODULES): Exclude gnu-kfreebsd from previous.
Glenn Morris [Sat, 16 Apr 2016 17:24:57 +0000 (10:24 -0700)]
* configure.ac (HAVE_MODULES): Exclude gnu-kfreebsd from previous.

8 years agoMake use of rectangle-preview custom variable.
Mark Oteiza [Sat, 16 Apr 2016 16:02:49 +0000 (12:02 -0400)]
Make use of rectangle-preview custom variable.

lisp/rect.el (rectangle--string-preview): Only create a preview if
rectangle-preview is non-nil (Bug#23248).

8 years agoMake use of rectangle-preview face.
Mark Oteiza [Sat, 16 Apr 2016 15:55:59 +0000 (11:55 -0400)]
Make use of rectangle-preview face.

* lisp/rect.el (rectangle--string-preview):
(rectangle--highlight-for-redisplay): Replace 'region with
'rectangle-preview (Bug#23248).

8 years agoUse 'grep-find-program' in check-declare.el
Eli Zaretskii [Sat, 16 Apr 2016 11:54:03 +0000 (14:54 +0300)]
Use 'grep-find-program' in check-declare.el

* lisp/emacs-lisp/check-declare.el (check-declare-directory): Use
'grep-find-program', not 'find-program'.

8 years agoImprove "C-h S" for cl-lib symbols
Eli Zaretskii [Sat, 16 Apr 2016 11:20:34 +0000 (14:20 +0300)]
Improve "C-h S" for cl-lib symbols

* lisp/info-look.el: Add cl.info lookup to emacs-lisp-mode related
manuals.  (Bug#23289)

8 years agoFix minor issues with removing left or right fringes
Eli Zaretskii [Sat, 16 Apr 2016 10:53:17 +0000 (13:53 +0300)]
Fix minor issues with removing left or right fringes

* lisp/window.el (window-max-chars-per-line): Account for
'left-fringe-width' and 'right-fringe-width' variables.

* doc/lispref/windows.texi (Window Sizes): Document the effect on
window text width when setting the width of one or both fringes to
zero.
* doc/emacs/display.texi (Fringes): Document the effect on window
text width when setting the width of one or both fringes to zero.
(Bug#22891)