1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-23 22:20:24 -08:00
Commit graph

67085 commits

Author SHA1 Message Date
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
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
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
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
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
Lars Ingebrigtsen
2334ad5695 Fix definition of nobreak-space
* lisp/faces.el (nobreak-space): The definition to
nobreak-space was inadvertantly changed by the previous checkin.
2016-04-29 00:20:55 +02:00
Drew Adams
65797b1d75 Make icomplete respect `completion-ignored-extensions'
* lisp/icomplete.el (icomplete-completions): Heed
`completion-ignored-extensions' (bug#12939).
2016-04-28 19:31:43 +02:00
Lars Ingebrigtsen
f078ef90cb Make ibuffer not break on newline-embedded buffer names
* lisp/ibuffer.el (name): When buffer names contain newlines,
quote those newlines before displaying (bug#12378).
2016-04-28 18:51:51 +02:00
Lars Ingebrigtsen
c3ac2cbf73 Add a new face for non-breaking hyphen characters
* doc/emacs/display.texi (Standard Faces): Mention nobreak-hyphen.
(Text Display): Ditto.

* lisp/faces.el (nobreak-hyphen): New face (bug#12048).

* src/xdisp.c (get_next_display_element): Use it instead of
the escape-glyph face.

* src/xdisp.c (syms_of_xdisp): New symbil Qnobreak_hyphen.
2016-04-28 18:09:10 +02:00
Lars Ingebrigtsen
355c8b5810 Make kill-emacs-query-functions into defcustom
* lisp/files.el (save-buffers-kill-terminal): Mention
`save-buffers-kill-emacs' (bug#10794).
(kill-emacs-query-functions): Made into a defcustom.
2016-04-28 15:34:51 +02:00
Lars Ingebrigtsen
d160f53032 Have describe-variable output multi-line values better
* lisp/help-fns.el (describe-variable): When printing
multi-line expressions, display them prettier (bug#10723).
2016-04-28 15:24:09 +02:00
Lars Ingebrigtsen
14508eaa3c Clean up custom-buffer-create code slightly
* lisp/cus-edit.el (custom-buffer-create-other-window): Don't
pass the unused description value on (for clarity) (bug#10540).
(custom-buffer-create): Ditto
2016-04-28 14:50:24 +02:00
Lars Ingebrigtsen
ad3ef417f3 Clarify some doc strings
* lisp/emacs-lisp/syntax.el (syntax-propertize-via-font-lock):
Clarify doc string (bug#8693).
(syntax-propertize): Clarify doc string.
2016-04-28 13:00:11 +02:00
Nicolas Richard
786ab4a5ca Fix number-at-point in lisp buffers
* lisp/thingatpt.el (number-at-point): Don't say that things
like ?a are numbers in lisp mode buffers (bug#8634).
2016-04-28 12:38:38 +02:00
Lars Ingebrigtsen
866e3c050f Don't consider colons to be paragraphs starting chars in strings
* lisp/emacs-lisp/lisp-mode.el (lisp-fill-paragraph): Don't
consider colons to start paragraphs in (doc) strings
(bug#7751).
2016-04-28 12:05:15 +02:00
Glenn Morris
5c3534ffdc * 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).
2016-04-27 19:21:41 -04:00
Lars Ingebrigtsen
8c3245ef01 Make undo' of C-x r t' put point where it should be
* lisp/rect.el (string-rectangle): Make `undo' of a this
command put point back where it was (bug#7522).
2016-04-28 01:15:16 +02:00
Dmitry Gutov
0255a70c8a 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.
2016-04-28 02:00:48 +03:00
Anders Lindgren
ff7e201ed8 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 5b54032898)
2016-04-27 23:28:07 +02:00
Lars Ingebrigtsen
123191decb Clarify doc string of internal compilation function
* lisp/progmodes/compile.el (compilation-get-file-structure):
Clarify doc string (bug#3137).
2016-04-27 20:40:59 +02:00
Lars Ingebrigtsen
aeb613ea95 Avoid having `C-x h' mark the prompt part of the minibuffer
* lisp/simple.el (mark-whole-buffer): Don't mark the prompt
part of the minibuffer (bug#2589).
2016-04-27 19:52:46 +02:00
Lars Ingebrigtsen
e1f2d14ae1 Allow a prefix argument to find-library to pop to a different window
* lisp/emacs-lisp/find-func.el (find-library): Allow a prefix
argument to pop to a different window (bug#2270).
2016-04-27 19:25:21 +02:00
Lars Ingebrigtsen
162f185392 Move the diff command to "Operate" in ibuffer
* lisp/ibuffer.el (ibuffer-mode-operate-map): Move the diff
command to the "Operate" menu, and remove the customisation
entry to make the "View" menu more logical (bug#1150).
2016-04-27 19:12:47 +02:00
Lars Ingebrigtsen
b3500fc058 Make the minor modes in help buffers into buttons
* lisp/help.el (describe-mode): Make the minor modes into
buttons to enable easier documentation traversal (bug#1149).
2016-04-27 18:43:02 +02:00
Leo Liu
71fb0e06e7 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.
2016-04-27 22:12:12 +08:00
Jorgen Schaefer
1a08fb0754 Add a number of Python 3 exceptions
* lisp/progmoes/python.el (python-font-lock-keywords): Clean up the exception
list, adding a number of new Python 3 exceptions and moving some exceptions
to the Python 2 and 3 list as Python 2.7 includes them.
2016-04-27 10:46:43 +02:00
Stephen Berman
6858e77c41 Todo mode doc bug fix
* lisp/calendar/todo-mode.el (todo-show): Correct obsolete and no
longer correct information in doc string.
2016-04-27 10:18:02 +02:00
Leo Liu
e55d0db957 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.
2016-04-27 13:18:16 +08:00
Mark Oteiza
ca87b349af ; Fix errant revert ccb75d7
* lisp/rect.el (rectangle--highlight-for-redisplay): Use region face.
2016-04-26 20:09:43 -04:00
Anders Lindgren
5b54032898 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'.
2016-04-26 20:58:52 +02:00
Simen Heggestøyl
07d729130e Add completion of `calc()' in CSS mode
* lisp/textmodes/css-mode.el (css-value-class-alist): Add `calc()' as
a completion candidate for several value classes.
(css--value-class-lookup): Return only unique results.

* test/lisp/textmodes/css-mode-tests.el
(css-test-property-values-no-duplicates)
(css-test-value-class-lookup): Update to reflect the above changes.
2016-04-26 20:41:04 +02:00
Jorgen Schaefer
40bfebec83 Add Python 3.5 keyword "await"
* lisp/progmodes/python.el (python-font-lock-keywords): Add await as
keyword.
2016-04-26 13:50:30 -04:00
Lele Gaifax
fa7886a46f 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.
2016-04-26 13:50:26 -04:00
Mark Oteiza
ccb75d72bd Partially revert previous change.
This commit partially reverts 0f332848cd.
* lisp/rect.el (rectangle--highlight-for-redisplay): Use region face.
This function is for rectangle-mark-mode, not string-rectangle.
2016-04-26 11:42:53 -04:00
Tao Fang
7b9a5c2a45 Fix: (void-variable url-http-response-status)
* lisp/url/url-http.el
(url-https-proxy-after-change-function): Display the error
message before doing the callback to avoid a void variable
situation (bug#23290).
2016-04-26 01:24:44 +02:00
Lars Magne Ingebrigtsen
fd8956d36a smtpmail would say it's done before it is
* lisp/mail/smtpmail.el (smtpmail-via-smtp): Move the sending
of the data end marker from here... (bug#23020).
(smtpmail-send-data): ... to here, so that we don't get a
"Sending done" before we've sent the final "." (which can make
the SMPT server reject the email.
2016-04-26 00:59:50 +02:00
Lars Magne Ingebrigtsen
77ba0f1c5a `url-retrieve-synchronously' now takes an optional timeout parameter
* doc/misc/url.texi (Retrieving URLs): Document optional parameters.

* lisp/url/url.el (url-retrieve-synchronously): Allow passing
in a timeout parameter (bug#22940).
2016-04-26 00:47:51 +02:00
Lars Magne Ingebrigtsen
4f25bef332 Include "Retype" as a comint password prompt
* lisp/comint.el (comint-password-prompt-regexp): Include
"Retype" to catch "Retype password for [account]:" from the
"pass" utility (bug#22942).
2016-04-26 00:31:26 +02:00
Glenn Morris
935715a5cd * lisp/emacs-lisp/autoload.el (update-directory-autoloads):
Future-proof against non-time-values.

; Do not merge to master.
2016-04-25 17:28:00 -04:00
Alan Mackenzie
89d1776b81 Fix spurious fontification of "for (; a * b;)" in CC Mode.
* lisp/progmodes/cc-fonts.el (c-font-lock-declarations): Check for being
inside the parens of a for statement and after a semicolon near the beginning
of the lambda form.
2016-04-25 17:57:24 +00:00
Paul Eggert
86d083438d New function ‘char-from-name’
This also fixes the mishandling of "\N{CJK COMPATIBILITY
IDEOGRAPH-F900}", "\N{VARIATION SELECTOR-1}", etc.
Problem reported by Eli Zaretskii in:
http://lists.gnu.org/archive/html/emacs-devel/2016-04/msg00614.html
* doc/lispref/nonascii.texi (Character Codes), etc/NEWS: Document this.
* lisp/international/mule-cmds.el (char-from-name): New function.
(read-char-by-name): Use it.  Document that "BED" is treated as
a name, not as a hexadecimal number.  Reject out-of-range integers,
floating-point numbers, and strings with trailing junk.
* src/lread.c (character_name_to_code): Call char-from-name
instead of inspecting ucs-names directly, so that we handle
computed names like "VARIATION SELECTOR-1".  Do not use an auto
string, since char-from-name might GC.
* test/src/lread-tests.el: Add tests for new behavior, and
fix some old tests that were wrong.
2016-04-25 10:42:48 -07:00
Tino Calancha
f069d85450 ; Run find-function-after-hook after finding a symbol
* lisp/emacs-lisp/find-func.el (find-library):
* lisp/help-mode.el (help-function-def, help-variable-def):
Run `find-function-after-hook' inside the help-function of the
buttons (bug#22583).
2016-04-25 19:27:42 +02:00