1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-12 16:23:57 +00:00
Commit Graph

126090 Commits

Author SHA1 Message Date
Leo Liu
b755d988b4 Autoload cursor-sensor-inhibit (bug#23406)
* lisp/emacs-lisp/cursor-sensor.el (cursor-sensor-inhibit): Autoload.
* lisp/isearch.el (isearch-update): Remove boundp check.
2016-04-30 23:36:47 +08:00
Lars Ingebrigtsen
66379a737d (extended-command-suggest-shorter): Add a version string
* lisp/simple.el (extended-command-suggest-shorter): Add a
version string.
2016-04-30 17:30:59 +02:00
Lars Ingebrigtsen
12515d890f Document extended-command-suggest-shorter
* doc/emacs/m-x.texi (M-x): Mention
extended-command-suggest-shorter (bug#19152).
2016-04-30 17:29:46 +02:00
Ivan Shmakov
6f86ec8050 Add a variable to control "shorter command" suggestions
* lisp/simple.el (extended-command-suggest-shorter): New variable (bug#19152).
(execute-extended-command): Use it.
2016-04-30 17:24:57 +02:00
Lars Ingebrigtsen
619e0aedb2 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).
2016-04-30 16:48:50 +02:00
Lars Ingebrigtsen
3eca9a0381 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'.
2016-04-30 16:44:06 +02:00
Lars Ingebrigtsen
2824c587e9 Doc fix for insert-pair-alist
* lisp/emacs-lisp/lisp.el (insert-pair-alist): Say what
COMMAND-CHAR is (bug#18809).
2016-04-30 16:28:52 +02:00
Lars Ingebrigtsen
e77b8d84b4 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).
2016-04-30 16:21:54 +02:00
Lars Ingebrigtsen
c05d186455 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).
2016-04-30 16:15:46 +02:00
Lars Ingebrigtsen
c05716d3a2 Fill the doc string of font-lock-keywords
* lisp/font-lock.el (font-lock-keywords): Fill the lines and
reorganise some explanations (bug#21427).
2016-04-30 16:08:07 +02:00
Lars Ingebrigtsen
bc00dcf129 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).
2016-04-30 15:55:44 +02:00
Phillip Lord
b52ebd4f20 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.
2016-04-30 14:46:44 +01:00
Lars Ingebrigtsen
d96c720d0c Clarify whitespace-style doc string
* lisp/whitespace.el (whitespace-style): Doc clarification
(bug#18296).
2016-04-30 15:27:09 +02:00
Eli Zaretskii
86aa4094d7 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)
2016-04-30 14:18:43 +03:00
Eli Zaretskii
70044595f9 Improve doc string of 'set-goal-column'
* lisp/simple.el (set-goal-column): Doc fix.  (Bug#23405)
2016-04-30 14:14:57 +03:00
Eli Zaretskii
ccdaf04cfd 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.
2016-04-30 13:45:33 +03:00
Andreas Schwab
ffe701cb07 Remove \= from format string (bug#18190)
* lisp/emacs-lisp/eieio.el (defclass): Remove \= from format
string.
2016-04-30 12:19:15 +02:00
Eli Zaretskii
1c58fa1d09 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.
2016-04-30 12:56:03 +03:00
Lars Ingebrigtsen
247e0411a3 No need to test for jka-compr
* lisp/vc/ediff-util.el (ediff-file-compressed-p): jka-compr
is always available; no need to test (bug#18204).
2016-04-30 02:37:26 +02:00
Lars Ingebrigtsen
a10eb168cc Doc fixed for next-error-buffer-p
* lisp/simple.el (next-error-buffer-p): Clarify doc string
(bug#18202).
2016-04-30 02:03:24 +02:00
Lars Ingebrigtsen
2ef0040e23 Tiny doc fix
* src/fileio.c (Ffile_accessible_directory_p): Tiny doc fix
(and fill) (bug#18201).
2016-04-30 01:26:17 +02:00
Lars Ingebrigtsen
6b769c81d0 Doc fix
* src/keymap.c (Fdefine_prefix_command): Clarify doc string
slightly (bug#18092).
2016-04-30 00:54:13 +02:00
Lars Ingebrigtsen
d7a5b5be9a delsel doc touch ups
* lisp/delsel.el (delete-selection-helper): Use non-nil
instead of t and clarify function return values (bug#18089).
2016-04-30 00:37:31 +02:00
Lars Ingebrigtsen
33d2c67bff Doc fixes for menu-bar.el
* lisp/menu-bar.el (clipboard-kill-ring-save): Describe the
REGION parameter (bug#18028).
(clipboard-kill-region): Ditto.
2016-04-30 00:11:15 +02:00
Lars Ingebrigtsen
6baca4911e Doc fix
* lisp/rect.el (delete-whitespace-rectangle): Doc fix (bug#18026).
2016-04-30 00:08:07 +02:00
Lars Ingebrigtsen
5d1f3192d4 Minor doc clarification
* lisp/subr.el (y-or-n-p): Document the return value from "n"
(bug#18024).
2016-04-30 00:02:46 +02:00
Lars Ingebrigtsen
27abf37283 Fill font-lock-mode doc string
* lisp/font-core.el (font-lock-mode): Fill the text to make it
narrower (bug#18008).
2016-04-29 23:53:12 +02:00
Lars Ingebrigtsen
323b696649 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).
2016-04-29 23:25:07 +02:00
Lars Ingebrigtsen
552e90ce7d Clarify hi-lock-find-patterns
* lisp/hi-lock.el (hi-lock-find-patterns): Doc clarification
(bug#17989).
2016-04-29 22:53:42 +02:00
Lars Ingebrigtsen
8f3a6de5e2 Warning fix in jit-lock-mode
* lisp/jit-lock.el (jit-lock-mode): Don't issue a warning when
turning the mode on in an indirect buffer, if this somehow has
happened (bug#17738).
2016-04-29 22:44:13 +02:00
Lars Ingebrigtsen
2c3ab9b6e3 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).
2016-04-29 22:28:02 +02:00
Lars Ingebrigtsen
340a224ec3 Doc fix for align-newline-and-indent
* lisp/align.el (align-newline-and-indent): Mention that
alignment is done by `align' (bug#17707).
2016-04-29 22:14:05 +02:00
Lars Ingebrigtsen
b9d69380a1 Cancel the eldoc timer when switching off eldoc mode
* lisp/emacs-lisp/eldoc.el (eldoc-mode): Cancel the eldoc
timer when switching off eldoc mode.  It will be restarted
again if needed (bug#17582).
2016-04-29 22:06:37 +02:00
Lars Ingebrigtsen
3a33afe25d Doc fix for `kbd'
* lisp/subr.el (kbd): Describe more fully the format of the
parameter (bug#17039).
2016-04-29 20:27:46 +02:00
Glenn Morris
aa112ebab7 ; Comment tweak. 2016-04-29 13:31:45 -04:00
Lars Ingebrigtsen
1a3a1f709d Add a sanity check to apropos-documentation-internal
* lisp/apropos.el (apropos-documentation-internal): Add a
sanity check to be less fragile in the presence of invalid
data (bug#16725).
2016-04-29 18:22:58 +02:00
Lars Ingebrigtsen
35fb7897f1 Doc tweak
* lisp/simple.el (use-empty-active-region): Doc tweak.
There's only one region (bug#16513).
2016-04-29 17:54:55 +02:00
Lars Ingebrigtsen
b01dac19fb Clarify `read-face-name' doc and tweak the code
* lisp/faces.el (read-face-name): Clarify the documentation
and allow a mix of faces and faces names in all cases
(bug#16483).
2016-04-29 17:38:26 +02:00
Alan Mackenzie
c6077bfd29 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.
2016-04-29 14:58:21 +00:00
Lars Ingebrigtsen
0c035a742f Remove ": ?" from the read-face-name prompt
* lisp/faces.el (read-face-name): Remove ": ?" from the prompt
to be more backwards compatible (bug#15909).
2016-04-29 16:41:13 +02:00
Alan Mackenzie
b671e218db 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'.
2016-04-29 14:36:33 +00:00
Lars Ingebrigtsen
bc5f27aa09 Link from (emacs)Exiting to (lisp)Killing Emacs
* doc/emacs/entering.texi (Exiting): Link to the lispref
manual for further customisations (bug#15445).
2016-04-29 15:52:18 +02:00
Lars Ingebrigtsen
e4c7657b0d find-lisp doc touchups
* lisp/find-lisp.el (find-lisp-format): Copy over the doc
string (bug#15047).
(find-lisp-find-files): Clarify doc.
2016-04-29 15:37:08 +02:00
Alan Mackenzie
48b24c9b03 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.
2016-04-29 13:35:01 +00:00
Lars Ingebrigtsen
fb685bc91a 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).
2016-04-29 15:26:25 +02:00
Lars Ingebrigtsen
0669037126 Fix call of `kmacro-display'
* lisp/kmacro.el (kmacro-view-ring-2nd): Fix call of
`kmacro-display' (bug#15020).
2016-04-29 15:23:38 +02:00
Lars Ingebrigtsen
e4c26271f2 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).
2016-04-29 14:37:56 +02:00
Lars Ingebrigtsen
fafdfcb1fa Rename "Directory Search" menu to "Servers"
* lisp/menu-bar.el (menu-bar-tools-menu): Rename "Directory
Search" to "Directory Servers".  Suggested by Eli
Zaretskii. (bug#14919).

* lisp/net/eudc.el: Rename ditto throughout.
2016-04-29 03:15:59 +02:00
Lars Ingebrigtsen
4fa7b76342 Remove uses of the unused to-end parameter from simple.el
* lisp/simple.el (line-move-partial): Remove usages of the
unused to-end parameter, and make it optional (bug#14844).
(line-move): Remove use of the unused to-end parameter.
2016-04-29 02:40:13 +02:00
Lars Ingebrigtsen
21128b5ff4 Doc fix: _ chars are automatically removed.
* lisp/cus-edit.el (custom-buffer-create): _ chars are
automatically removed when displaying help, so fix the last
doc change.
(custom-buffer-create-other-window): Ditto.
2016-04-29 01:41:34 +02:00