1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-02 11:21:42 +00:00
Commit Graph

124888 Commits

Author SHA1 Message Date
Eli Zaretskii
e87fbc0780 Improve Lisp-level documentation of tooltips
* doc/lispref/display.texi (Tooltips): New section.  (Bug#23246)
(Display): Update the chapter menu.
* doc/lispref/text.texi (Special Properties): Make the "tooltip"
index entry more concrete.  Change the cross-reference to point to
"Tooltips" in the ELisp manual.
* doc/lispref/elisp.texi (Top): Update the master menu.
* doc/emacs/frames.texi (Tooltips): Include more customization
variables.  Add a cross-reference to the ELisp manual.
2016-04-09 12:30:59 +03:00
Glenn Morris
9f1786e416 Faces names should not end in "-face".
* lisp/rect.el (rectangle-preview): Rename from rectangle-preview-face.
* lisp/vc/vc-hooks.el (vc-state-base): Rename from vc-state-base-face.
2016-04-08 20:59:21 -04:00
Paul Eggert
3283271253 * src/xsmfns.c (syms_of_xsmfns): Remove stray "s in doc strings. 2016-04-08 16:30:23 -07:00
Paul Eggert
a1f221bd82 Comint and compile no longer set EMACS
This mostly restores the change that I reverted on March 23,
fixing most of Bug#20202.  The only part of the change that is
still reverted is the change to M-x term, where compatibility with
current Bash constrains us from moving too quickly (Bug#20484).
Problem reported by Phillip Lord in: http://bugs.gnu.org/20484#108
* etc/NEWS: Document this.
* lisp/comint.el (comint-exec-1):
* lisp/net/tramp-sh.el (tramp-remote-process-environment):
* lisp/progmodes/compile.el (compilation-start):
Don’t set EMACS=t in the subsidiary process.
2016-04-08 13:40:01 -07:00
Stefan Monnier
5c288909b9 * lisp/subr.el (read-key): Don't let the prompt linger (bug#22714) 2016-04-08 14:02:24 -04:00
Eli Zaretskii
a75b9a6f22 Merge branch 'emacs-25' of git.savannah.gnu.org:/srv/git/emacs into emacs-25 2016-04-08 16:55:34 +03:00
Eli Zaretskii
c93ae7a1e5 Allow to customize names of executables used by grep.el
* lisp/progmodes/grep.el (grep-find-program): Renamed from
'find-program', which was a variable.  All uses changed.
(grep-xargs-program): Renamed from 'xargs-program', which was a
variable.  All uses changed.
(grep-program): Now a defcustom rather than a simple variable.
(Bug#23219)
2016-04-08 16:54:18 +03:00
Alan Third
f6497c6e76 Set locale encoding to UTF-8 when run from OS X GUI.
* src/nsterm.m (ns_init_locale): Append .UTF-8 when setting LANG.
2016-04-08 15:52:55 +02:00
Eli Zaretskii
7ad1d075b9 Avoid signaling errors in 'M-n' at the 'C-x C-f' prompt
* lisp/ffap.el (ffap-guess-file-name-at-point): Ignore errors
while 'ffap-guesser' runs.  (Bug#23218)
2016-04-08 11:05:20 +03:00
Marcin Borkowski
a3f1ac2e3b Avoid infinite loop in 'studlify-word'
* lisp/play/studly.el (studlify-region): Call
'forward-word-strictly' and 'backward-word-strictly' instead of
'forward-word' and 'backward-word'.  (Bug#19940)
2016-04-08 10:57:21 +03:00
Paul Eggert
f36df4b97b Don’t recommend obsolete EMACS env var
* doc/misc/efaq.texi (Escape sequences in shell output):
Remove long-obsolete (and now-confusing) notes about
the EMACS environment variable in Emacs 21.1 and earlier.
* doc/misc/efaq.texi (^M in the shell buffer):
* etc/PROBLEMS:
Remove obsolescent recommendation to consult the EMACS environment
variable.
2016-04-07 16:52:26 -07:00
Glenn Morris
fb0b531e9e * lisp/emacs-lisp/package.el: Change from a few days ago needs seq.
; Warning 'foo' is not known to be defined is always a bug.
2016-04-07 16:26:55 -04:00
Glenn Morris
b7d8abd7f0 * lisp/emacs-lisp/seq.el: Load cl-lib, not cl-extra.
; The various components of cl-lib are an internal implementation detail.
2016-04-07 16:24:25 -04:00
Leo Liu
96d9e78bd4 Fix "Beginning of buffer" error in forward-page
* lisp/textmodes/page.el (forward-page): Check before move to prevent
  "Beginning of buffer" error.
2016-04-07 21:42:40 +08:00
Dmitry Gutov
20686f7a64 Add a `transient' project type
* lisp/progmodes/project.el (project-roots): Implement for the
`transient' project type (bug#23224).
(project-current): Instead of signaling an error, return a
transient project instance rooted in the chosen directory.
2016-04-07 02:02:26 +03:00
Lars Magne Ingebrigtsen
0d7aad1b30 Revert "Backport HTTPS proxy fix"
This reverts commit 2d1a6054b1.

It's too late in the Emacs 25 release cycle to add things like this to
Emacs 25.1.  It's border line new feature.
2016-04-06 18:36:18 +02:00
Tao Fang
2d1a6054b1 Backport HTTPS proxy fix
Cherry-picked from 3c623c26ae

Backport:
2016-04-06 13:45:26 +02:00
Paul Eggert
80128a7849 Fix stability confusion in sort-tests
Problem reported by Philipp Stephani (Bug#23205).
* test/automated/sort-tests.el:
(sort-tests--insert-words-sort-and-compare):
Don’t assume that reversing a sorted list is the same
as sorting with the reverse predicate.  This is not true
for stable sorts when items compare equal.
2016-04-06 01:22:32 -07:00
Paul Eggert
1e4aa42aa5 Avoid describe-key error with lambdas
Problem reported by Sho Takemori (Bug#22716).
* lisp/cedet/mode-local.el (describe-mode-local-overload)
(xref-mode-local-overload): Use function-overload-p instead
of assuming the argument is a symbol.
2016-04-05 14:09:17 -07:00
Artur Malabarba
a05fb21d73 * lisp/emacs-lisp/package.el (package-install-selected-packages):
Skip unavailable packages.
2016-04-04 12:31:19 -03:00
Paul Eggert
f501116ea8 Sync with gnulib
This incorporates:
2016-04-03 stdint: detect good enough pre-C++11 stdint.h in C++ mode
2016-04-01 stddef: support configuring with g++
* doc/misc/texinfo.tex, lib/stddef.in.h, m4/stdint.m4:
Copy from gnulib.
2016-04-03 23:12:29 -07:00
Paul Eggert
c4963f9a90 Fix doc for Universal Time
* doc/lispref/os.texi (Time of Day, Time Conversion):
Be more careful about distinguishing UTC (which is not valid for
pre-1961 time stamps) and UT (which is).
(Time Parsing): Remove stray obsolete paragraph about a
UNIVERSAL argument for ‘format-time-string’.
2016-04-03 15:28:09 -07:00
Eli Zaretskii
787df9dd05 ; * src/keyboard.c (read_char): Fix typos in a comment. 2016-04-03 20:06:51 +03:00
Michael Albinus
06ae23aa12 Handle Bug#23186
* lisp/net/tramp.el (tramp-encoding-command-switch)
(tramp-encoding-command-interactive):
* lisp/net/tramp-sh.el (tramp-maybe-open-connection):
`tramp-encoding-shell' could be nil.  (Bug#23186)
2016-04-03 09:37:16 +02:00
Paul Eggert
b787d5501b More format-time-string change fixups
* lisp/net/tramp-sh.el (tramp-sh-handle-set-file-times):
* lisp/org/org.el (org-timestamp-format):
Fix doc to match new format-time-string behavior.
* lisp/org/ox-icalendar.el (org-icalendar-convert-timestamp):
Use (not (not X)) to treat non-nil values of utc arg as UTC.
2016-04-02 23:44:18 -07:00
Paul Eggert
13c8f29ce3 make-xwidget unused arg cleanup
* doc/lispref/display.texi (Xwidgets): Remove stray refs.
* src/xwidget.c (syms_of_xwidget): Qwebkit, not Qwebkit_osr.
2016-04-02 18:32:13 -07:00
Joakim Verona
36e05f0bf7 Remove unused arguments from make-xwidget
The arguments BEG and END were unused, and are now removed.

* display.texi (Xwidgets): Document the change
* xwidget.el (make-xwidget, xwidget-insert)
(xwidget-webkit-new-session): Reflect changed arguments
* xwidget.c (Fmake_xwidget, syms_of_xwidget): Reflect changed arguments
2016-04-02 18:32:13 -07:00
Eli Zaretskii
104221731e Document incompatible changes in 'format-time-string'
* etc/NEWS: Mention the incompatible change in the interpretation
of the 3rd argument to 'format-time-string'.  (Bug#21943)
2016-04-02 16:23:05 +03:00
Eli Zaretskii
7228eb805d Improve documentation of byte-code objects
* doc/lispref/compile.texi (Byte-Code Objects): Document the
integer format of the argument descriptor.  (Bug#23061)
2016-04-02 15:13:00 +03:00
Eli Zaretskii
0020047fda Adapt calls to 'format-time-string' to changes in Emacs 25
* lisp/vc/pcvs-info.el (cvs-fileinfo-from-entries): Use t as the
last argument to format-time-string.  (Bug#23128)
* lisp/gnus/gmm-utils.el (gmm-format-time-string): Use t as the
last argument to format-time-string, when the TZ argument is not a
number, per the doc string.
2016-04-02 14:25:47 +03:00
Eli Zaretskii
17b5152d73 Improve vc-diff with Git backend
* lisp/vc/vc-git.el (vc-git-command): Don't override
coding-system-for-read/write if they are already bound.
Suggested by joaotavora@gmail.com (João Távora).  (Bug#20892)
(vc-git-print-log): Don't override coding-system-for-read if it's
already bound.
2016-04-02 12:25:15 +03:00
Dmitry Gutov
c28f87a53d (js--continued-expression-p): Special-case unary plus and minus
* lisp/progmodes/js.el (js--continued-expression-p): Make an
effort to recognize unary plus and minus, in the contexts where
they make sense (https://github.com/mooz/js2-mode/issues/322).
2016-04-02 03:07:09 +03:00
Eli Zaretskii
2d02a5f729 ; * lisp/vc/vc-annotate.el (vc-annotate): Clarify commentary. 2016-04-01 23:22:52 +03:00
Alan Mackenzie
9151f16e81 Prevent C++ Mode wrongly fontifying some identifiers near templates as types
This fixes debbugs #7917.

* lisp/progmodes/cc-engine.el (c-forward-keyword-prefixed-id): Accept 'maybe
(from c-forward-type) as sufficient to record an id.  Record type id as well
as ref ids.
(c-forward-name): Bind c-last-identifier-range around the call to
c-forward-<>-arglist to prevent it getting corrupted.  Don't automatically
assume an identifier is a type when a template ">" is followed by a "(".
(c-forward-type): Don't automatically assume an identifier is a type when a
template ">" is followed by a "(".

* lisp/progmodes/cc-fonts.el (c-font-lock-<>-arglists): Don't fontify an
identifier as a type when its associated ">" is followed by a "(".
2016-04-01 12:56:16 +00:00
Eli Zaretskii
b3b523cdd6 Avoid crashes due to insanely large columns in tabulated-list-format
* src/xdisp.c (append_stretch_glyph, produce_xwidget_glyph)
(produce_image_glyph): Limit the pixel width of the produced glyph
to SHRT_MAX.  (Bug#23178)
(append_composite_glyph, append_glyph, append_glyphless_glyph):
Add assertions to verify that the pixel width of the glyph will
never overflow a 'short'.
* src/term.c (append_composite_glyph): Add assertion to verify
that the pixel width of the glyph will never overflow a 'short'.
2016-04-01 12:47:29 +03:00
Mark Oteiza
a3daa34336 Teach M-x disassemble a default argument.
Adopts default argument in the same way as `describe-function'.
* lisp/emacs-lisp/disass.el (disassemble): Default to function at point,
if any.
2016-03-31 19:34:05 -04:00
Eli Zaretskii
e30c3e9a9c Fix EOL decoding in vc-annotate with SVN back-end on MS-Windows
* lisp/vc/vc-annotate.el (vc-annotate): Force DOS EOL decoding on
MS-Windows and MS-DOS, when processing the output of "svn annotate".
2016-03-31 23:01:13 +03:00
Michael Albinus
df441b362c Fix OS X specific settings in tramp-tests
* lisp/net/tramp-sh.el (tramp-maybe-open-connection): Use it.

* lisp/net/tramp.el (tramp-get-local-locale): New defun.

* test/automated/tramp-tests.el (tramp--test-darwin-p): Remove.
(tramp--test-utf8): Improve settings of coding systems.
Do not use `tramp--test-darwin-p' anymore.  (Bug#22145)
2016-03-31 11:45:45 +02:00
Alan Mackenzie
2244331218 Finish fixing a cacheing bug in CC Mode (see 2016-03-09)
* lisp/progmodes/cc-cmds.el: (c-beginning-of-defun, c-end-of-defun): Remove
superfluous invocations of c-self-bind-state-cache.

* lisp/progmodes/cc-defs.el: (c-self-bind-state-cache): Copy and terminate
markers correctly.

* lisp/progmodes/cc-engine.el (c-record-parse-state-state): Terminate stale
markers.
2016-03-30 17:14:03 +00:00
Alan Mackenzie
ed19f20744 Merge branch 'emacs-25' of /home/acm/emacs/emacs.git/emacs-25 into emacs-25 2016-03-30 16:53:36 +00:00
Xue Fuqiao
7c1802f6ff * doc/lispref/text.texi (Columns): Remove a nonexistent reference.
The example was removed by Chong Yidong on Mar 5, 2012.
2016-03-30 08:01:16 +08:00
Paul Eggert
9034c50ae6 * doc/man/emacsclient.1: Document +line:column option. 2016-03-29 14:20:12 -07:00
Eli Zaretskii
06495c96ae Fix rare problems with echo-area display and multiple frames
* src/xdisp.c (redisplay_window): Bind inhibit-redisplay non-nil
around the call to x_consider_frame_title, to prevent
resize_mini_window from undoing echo-area display.  (Bug#23124)
2016-03-29 20:38:54 +03:00
Alan Mackenzie
f99b51295b In M-%, avoid making buffer-local binding of text-property-default-nonsticky
This would happen when that variable already has a buffer local binding.  Such
a binding would not be seen by read-from-minibuffer.  This fixes bug #23127.

* lisp/replace.el (query-replace-read-from): Move the binding of
text-property-default-nonsticky to inside of a new with-current-buffer buffer
form with the minibuffer as argument.
2016-03-29 09:53:12 +00:00
Dmitry Gutov
124c48619e Remove prog-indentation-context
* lisp/progmodes/prog-mode.el: (prog-indentation-context)
(prog-first-column, prog-widen): Remove, as discussed in
http://lists.gnu.org/archive/html/emacs-devel/2016-03/msg01425.html.

* doc/lispref/text.texi (Mode-Specific Indent): Remove references
to them.

* etc/NEWS: Ditto.

* lisp/progmodes/python.el: (prog-widen, prog-first-column):
Remove the compatibility aliases and all uses.

Do not merge to master.
2016-03-28 03:59:05 +03:00
Paul Eggert
e65c3079c6 * src/font.c (QCuser_spec): Add missing colon to :user-spec. 2016-03-27 15:03:12 -07:00
Eli Zaretskii
c8b868b1e2 Don't start the 'midnight' timer twice
* lisp/midnight.el (midnight-mode): Avoid starting the midnight
timer twice when activating the mode the first time.  (Bug#23123)
2016-03-27 18:15:06 +03:00
YAMAMOTO Mitsuharu
278c8a7ef7 * src/xwidget.c (Fxwidget_resize): Fix inappropriate use of XFASTINT. 2016-03-27 18:00:08 +09:00
Stephen Berman
e5c17f4678 Fix todo-mode category movement
* lisp/calendar/todo-mode.el (todo-move-category): Use moved
category's existing categories sexp instead of invoking
todo-update-categories-sexp in file moved to, in order to take
archived items into account.  If the moved category has archived
items, handle the source archive buffer properly.  Remove
superfluous code.
2016-03-26 23:14:50 +01:00
Glenn Morris
bc70fda2c9 * lisp/xt-mouse.el (xterm-mouse-utf-8): Add :version. 2016-03-26 16:45:51 -04:00