1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
Commit graph

131286 commits

Author SHA1 Message Date
Stefan Monnier
cea0bca54f * lisp/emacs-lisp/cl-macs.el: Fix &key with no key arg
* test/lisp/emacs-lisp/cl-lib-tests.el (cl-lib-empty-keyargs): New test.
* lisp/emacs-lisp/cl-macs.el (cl--do-arglist): Fix it.
2017-11-27 12:45:16 -05:00
Stefan Monnier
e896320f0e * src/lread.c (syms_of_lread): Fix thinko in commit b1573a97e1. 2017-11-27 12:43:18 -05:00
Paul Eggert
3a1d9821f4 Pacify --enable-gcc-warnings on Ubuntu 17.10 x86-64
* src/process.c (Fmake_network_process):
Avoid duplicate test of NILP (host), which apparently confuses
GCC into thinking that portstringlen might be used uninitialized.
2017-11-26 20:14:31 -08:00
Charles A. Roelli
6ec5d497b6 * src/process.c (wait_reading_process_output): Deduplicate check.
(Bug#29454)
2017-11-26 20:37:53 +01:00
Paul Eggert
d20161b25e Merge from origin/emacs-26
a89f0b6f33 maint: shorten https://lists.gnu.org/archive/html/... links
8be3aee281 Merge from Gnulib
265cee553f Work around GCC bug 80776 on Fedora 27 x86
dc7a97fb84 Tweak copy-file, rename-file doc
cfa2a944d4 Change font-lock-extend-region-multiline handling in mhtml...
a8664cc998 Minor cleanup in tramp-gvfs-handle-file-local-copy
55c5b12fa0 Add test for Bug#29423 in Tramp.
3198a1646e Avoid jumbled order in HTML rendered by shr.el
23bfc2d2db Make sure 'dired-filename' property is always put by ls-lisp
f7fdaea4c0 A better solution for bug#29347
86e6ed8521 ; * src/thread.c (acquire_global_lock): Fix thinko in last...
f300852037 Avoid a hang after C-g while sit-for on a Unix TTY
d7fc719ff1 Improve the doc string of 'list-packages'
b4f67ebb92 Improve discoverability of 'defvar' for suppressing warnings
8a2b204e64 Improve discoverability of 'read-buffer-completion-ignore-...
eea4e9194c Improve documentation of self-insert-uses-region-functions
e6e41dac87 Reflect changes in copy-file and rename-file in doc strings
0ec534070f * lisp/progmodes/cc-vars.el (c-offsets-alist): Doc fix.  (...
1d0dbdff6c Reorder type predicates in ELisp manual
b081ec9dd7 Fix backward scrolling in buffers with header-line
8e40429c96 ; Fix some doc typos
ed2c542920 * lisp/bindings.el (buffer-file-coding-system): Add explic...
d82474e452 * src/fns.c (syms_of_fns) <overriding-plist-environment>: ...
292c09ff6d Fix incorrect interaction of drag/drop and double click (b...
d6fadb1d26 * lisp/menu-bar.el (menu-bar-options-save): Add display-li...
daa959efbc * lisp/menu-bar.el (menu-bar-options-save): Add global-dis...
17fc74d1b9 * lisp/follow.el (follow-mode): Restore mode line lighter....
f20c2e2f3d ; Compare process status against 127 exactly
2d203ffb7e Extract the common part of ruby-flymake-simple and ruby-fl...
09944d499a Add Rubocop Flymake backend
c65a0ae7c4 ; Fix a typo
7ab7603125 Update nt/INSTALL.W64 (Bug#28601)
11db253c08 Remove incorrect NEWS item about VC state indicator (Bug#2...
2fdc01c036 * lisp/emacs-lisp/byte-run.el (defsubst): Doc fix.
735c8b516e Make c-defun-name analyze more thoroughly a function type ...
92f0c4cd56 Avoid bogus abbreviated file names if HOME changes
8d450453fa * lisp/emacs-lisp/byte-run.el (inline): Give it a doc.
37a3b4ea40 Fix erc keep-place module with new defaults (Bug#29111)
6c312605bf Add window divider faces to NS (bug#29353)

# Conflicts:
#	etc/NEWS
#	lisp/ruler-mode.el
2017-11-25 22:55:35 -08:00
Paul Eggert
a89f0b6f33 maint: shorten https://lists.gnu.org/archive/html/... links 2017-11-25 22:48:12 -08:00
Paul Eggert
8be3aee281 Merge from Gnulib
This incorporates:
2017-11-23 stat: work around Solaris bug with tv_nsec < 0
2017-11-12 maint: shorten https://lists.gnu.org/archive/html/... links
* build-aux/config.sub, doc/misc/texinfo.tex, lib/allocator.h:
* lib/fstatat.c, lib/intprops.h, lib/lstat.c, lib/signal.in.h:
* lib/stat-time.h, lib/stdio-impl.h, lib/stdio.in.h:
* lib/timespec.h, m4/alloca.m4, m4/extern-inline.m4:
* m4/faccessat.m4, m4/fstatat.m4, m4/gnulib-common.m4:
* m4/lstat.m4, m4/std-gnu11.m4, m4/sys_types_h.m4:
* m4/vararrays.m4:
Copy from Gnulib.
2017-11-25 22:48:09 -08:00
Paul Eggert
265cee553f Work around GCC bug 80776 on Fedora 27 x86
* src/buffer.c (Fgenerate_new_buffer_name): Pacify GCC 7.2.1
20170915 (Red Hat 7.2.1-2) on i686 with -Wformat-overflow -O2 by
using XINT rather than XFASTINT and by adding an eassume.  This
works around GCC bug 80776.
2017-11-25 22:48:09 -08:00
Paul Eggert
dc7a97fb84 Tweak copy-file, rename-file doc
* src/fileio.c (Fcopy_file, Frename_file): Tweak the recent change
slightly, as NEWNAME is treated as a directory name depending only
on the contents of the NEWNAME string, and independently of
whether NEWNAME names a directory (i.e., whether the directory
exists) (Bug#29362).
2017-11-25 13:05:05 -08:00
Tom Tromey
cfa2a944d4 Change font-lock-extend-region-multiline handling in mhtml-mode
Bug#29159
* lisp/textmodes/mhtml-mode.el (mhtml-mode): Remove
font-lock-extend-region-multiline from
font-lock-extend-region-functions.
(mhtml--extend-font-lock-region): Call font-lock-extend-region-multiline.
2017-11-25 13:25:37 -07:00
Michael Albinus
a8664cc998 Minor cleanup in tramp-gvfs-handle-file-local-copy
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-local-copy):
Move error message up.
2017-11-25 16:09:55 +01:00
Michael Albinus
55c5b12fa0 Add test for Bug#29423 in Tramp.
* test/lisp/net/tramp-tests.el (tramp-test17-insert-directory):
Add test for Bug#29423.
2017-11-25 16:03:53 +01:00
Eli Zaretskii
3198a1646e Avoid jumbled order in HTML rendered by shr.el
* lisp/net/shr.el (shr-render-td): Preserve point, as
shr-render-td-1 might move it as a side effect of
save-window-excursion.  (Bug#29348)
2017-11-25 13:31:51 +02:00
Eli Zaretskii
23bfc2d2db Make sure 'dired-filename' property is always put by ls-lisp
* lisp/ls-lisp.el (ls-lisp-classify): Do not put the
'dired-filename' text property on the file name here...
(ls-lisp-classify-file): ...put it here instead.  (Bug#29423)
2017-11-25 12:35:09 +02:00
Eric Abrahamsen
e27004c5fe Obsolete gnus-copy-sequence and gnus-last-element
(Bug#28856, Bug#28867)

* lisp/gnus/gnus-range.el: Leave gnus-last-element in place, but
  obsolete it and point to car of last. Remove gnus-copy-sequence and
  define as an obsolete alias for copy-tree.
  (gnus-remove-from-range):
* lisp/gnus/gnus-cache.el (gnus-cache-generate-active):
* lisp/gnus/gnus-sum.el (gnus-summary-insert-articles,
  gnus-select-newsgroup, gnus-summary-read-group-1,
  gnus-select-newsgroup, gnus-update-marks,
  gnus-summary-insert-articles, gnus-summary-insert-new-articles):
  Replace calls in these locations.
* lisp/gnus/gnus-agent.el (gnus-agent-catchup,
  gnus-agent-summary-fetch-series, gnus-category-copy):
* lisp/gnus/gnus-cus.el (gnus-group-customize):
* lisp/gnus/gnus-group.el (gnus-group-edit-group-done,
  gnus-group-make-useful-group):
* lisp/gnus/gnus-score.el (gnus-score-adaptive):
* lisp/gnus/gnus-srvr.el (gnus-server-copy-server): Replace calls in
  these locations.
2017-11-24 22:36:35 -08:00
Eli Zaretskii
f7fdaea4c0 A better solution for bug#29347
* src/thread.c (really_call_select): Don't try to take the global
lock if the same thread is already holding it.  (Bug#29347)
2017-11-24 23:37:42 +02:00
Stefan Monnier
d1000fb48b * src/data.c: Fix regression in last clone-buffer change
* src/data.c (Fmake_local_variable, Fmake_variable_buffer_local):
Signal more precise error when applied to read-only variable.
2017-11-24 16:15:09 -05:00
Eli Zaretskii
86e6ed8521 ; * src/thread.c (acquire_global_lock): Fix thinko in last change. 2017-11-24 23:11:55 +02:00
Sam Steingold
74b5103511 Fix last patch: ensure the return value of tags-verify-table.
* lisp/progmodes/etags.el (tags-verify-table): Since `(tags-table-mode)'
always return nil now that it is a derived mode, call
`verify-tags-table-function' explicitly.
2017-11-24 14:25:56 -05:00
Pip Cet
a45a33097f Use NULL for NULL rather than false
* src/xdisp.c (x_draw_bottom_divider): Fix type typo.
2017-11-24 10:10:42 -08:00
Stefan Monnier
4f779ff8e6 * lisp/macros.el (insert-kbd-macro): Recognize kmacros reliably
* lisp/macros.el (name-last-kbd-macro): Make it an alias of
kmacro-name-last-macro.
(insert-kbd-macro): Use kmacro-keyboard-macro-p so it also works for
kmacros that fail to have a `kmacro' property.
(see https://emacs.stackexchange.com/questions/37065, for an example).

* lisp/kmacro.el: Remove redundant :group args.
(kmacro-insert-counter): Simplify.
(kmacro-extract-lambda): Use car/cdr-safe.
(kmacro-p, kmacro-keyboard-macro-p): New functions.
(kmacro-name-last-macro): Use them.
2017-11-24 11:32:14 -05:00
Eli Zaretskii
f300852037 Avoid a hang after C-g while sit-for on a Unix TTY
* src/thread.c (acquire_global_lock): Don't try to take the global
lock if the same thread is already holding it.  (Bug#29347)
2017-11-24 18:13:57 +02:00
Daiki Ueno
b407c521f2 Remove pinentry.el
* lisp/epg.el (epg--start): Remove the use of pinentry.el.
* lisp/net/pinentry.el: Remove (bug#27445).
2017-11-24 16:12:24 +01:00
Eli Zaretskii
d7fc719ff1 Improve the doc string of 'list-packages'
* lisp/emacs-lisp/package.el (list-packages): Describe in the doc
string the columns shown by the command.  (Bug#29420)
2017-11-24 16:49:10 +02:00
Eli Zaretskii
b4f67ebb92 Improve discoverability of 'defvar' for suppressing warnings
* doc/lispref/compile.texi (Compiler Errors): Add index entries.
* doc/lispref/variables.texi (Defining Variables): Mention that
defvar with no value is used for suppressing compiler warnings.
(Bug#29400)
2017-11-24 16:36:33 +02:00
Eli Zaretskii
8a2b204e64 Improve discoverability of 'read-buffer-completion-ignore-case'
* lisp/window.el (switch-to-buffer)
(switch-to-buffer-other-window, switch-to-buffer-other-frame):
Mention 'read-buffer' in the doc string.  (Bug#29389)

* doc/emacs/buffers.texi (Select Buffer): Add a cross-reference to
where 'read-buffer-completion-ignore-case' is documented.
2017-11-24 15:58:00 +02:00
Eli Zaretskii
eea4e9194c Improve documentation of self-insert-uses-region-functions
* lisp/simple.el (self-insert-uses-region-functions): Clarify the
doc string.
* lisp/delsel.el (delete-selection-uses-region-p): Mention
'self-insert-command' in the doc string.  (Bug#29373)

* doc/lispref/text.texi (Commands for Insertion): Mention
'self-insert-uses-region-functions'.
* doc/lispref/modes.texi (Keymaps and Minor Modes): Add a
cross-reference to "Commands for Insertion".
2017-11-24 12:49:04 +02:00
Jaesup Kwak
e5dbeb77f4 Avoid unnecessary xwidget_view creations
* src/xwidget.c (x_draw_xwidget_glyph_string): Don't create new
xwidget view if we have a usable one already.

Copyright-paperwork-exempt: yes
2017-11-24 11:33:32 +02:00
Alex Branham
ed36c71a1e More informative error when autosave file is not available
* lisp/files.el (recover-file): Distinguish in error messages
between autosave file not existing and not being current.
(Bug#29179)
2017-11-24 10:59:12 +02:00
Eli Zaretskii
e6e41dac87 Reflect changes in copy-file and rename-file in doc strings
* src/fileio.c (Fcopy_file, Frename_file): Mention in the doc
strings that directory names must end in a slash.  (Bug#29362)
2017-11-24 10:49:29 +02:00
Eli Zaretskii
0ec534070f * lisp/progmodes/cc-vars.el (c-offsets-alist): Doc fix. (Bug#29407) 2017-11-24 10:41:49 +02:00
Eli Zaretskii
1d0dbdff6c Reorder type predicates in ELisp manual
* doc/lispref/objects.texi (Type Predicates): Restore alphabetical
order of listed predicates.  (Bug#29411)
2017-11-24 10:07:40 +02:00
Eli Zaretskii
b081ec9dd7 Fix backward scrolling in buffers with header-line
* src/window.c (window_scroll_pixel_based): Account for the
header-line when comparing Y coordinate with the last_visible_y.
(Bug#29325)
2017-11-23 22:29:59 +02:00
Stefan Monnier
197dd69011 * lisp/simple.el (clone-buffer): Adjust `mark-ring' 2017-11-23 13:35:15 -05:00
Glenn Morris
8e40429c96 ; Fix some doc typos 2017-11-22 17:52:11 -05:00
Eric Abrahamsen
0092a856ff Marked groups should always be visible in *Group* buffer
* lisp/gnus/gnus-group.el (gnus-group-prepare-flat): Check for the
  mark in these two locations.
* lisp/gnus/gnus-topic.el (gnus-topic-find-groups)
2017-11-22 14:20:46 -08:00
Glenn Morris
ed2c542920 * lisp/bindings.el (buffer-file-coding-system):
Add explicit permanent-local mark.

; * src/buffer.c (init_buffer_once): Comment.
2017-11-22 16:36:07 -05:00
Sam Steingold
f79c33b39f Use special-mode for read-only buffers.
* lisp/progmodes/etags.el (tags-table-mode): Define using
`define-derived-mode', inheriting from `special-mode'.
Not only the buffer is now read-only, but you can bury it with "q".
(select-tags-table-mode): No need to set `buffer-read-only'
explicitly, `special-mode' takes care of that.
* lisp/vc/log-edit.el (log-edit-show-files): Use `special-mode'
instead of setting `buffer-read-only' explicitly.
2017-11-22 16:14:36 -05:00
Sam Steingold
a6844ee86e Remove variable alias executing-macro, obsolete since before 19.34. 2017-11-22 16:14:36 -05:00
Sam Steingold
72688426ce Remove *-yank-hooks aliases for -citation-hook, obsolete since 19.34.
* lisp/simple.el (compose-mail): Use `mail-citation-hook'
instead of `mail-yank-hooks'.
* lisp/mail/sendmail.el (mail-yank-hooks): Remove.
(mail-yank-original, mail-yank-region): Drop `mail-yank-hooks'.
* lisp/mh-e/mh-letter.el (mh-yank-hooks): Remove.
(mh-insert-prefix-string): Drop `mh-yank-hooks'.
2017-11-22 16:14:36 -05:00
Glenn Morris
d82474e452 * src/fns.c (syms_of_fns) <overriding-plist-environment>: Doc fix. 2017-11-22 14:58:55 -05:00
Alan Third
292c09ff6d Fix incorrect interaction of drag/drop and double click (bug#29121)
* src/nsterm.m (EmacsView::performDragOperation): Drag and drop
doesn't use ns-input-file.
2017-11-22 16:46:49 +00:00
Glenn Morris
d6fadb1d26 * lisp/menu-bar.el (menu-bar-options-save):
Add display-line-numbers-type.
2017-11-21 20:18:01 -05:00
Glenn Morris
daa959efbc * lisp/menu-bar.el (menu-bar-options-save):
Add global-display-line-numbers-mode.  (Bug#28396)
2017-11-21 19:42:32 -05:00
Glenn Morris
17fc74d1b9 * lisp/follow.el (follow-mode): Restore mode line lighter. (Bug#28495) 2017-11-21 19:23:52 -05:00
Dmitry Gutov
f20c2e2f3d ; Compare process status against 127 exactly 2017-11-22 01:56:13 +02:00
Dmitry Gutov
2d203ffb7e Extract the common part of ruby-flymake-simple and ruby-flymake-rubocop
* lisp/progmodes/ruby-mode.el (ruby-flymake-simple)
(ruby-flymake-rubocop):
Extract the common part as ruby-flymake--helper.
(ruby--rubocop-flymake-proc): Remove.  Use the first proc
variable instead.
2017-11-22 01:56:13 +02:00
Dmitry Gutov
09944d499a Add Rubocop Flymake backend
* lisp/progmodes/ruby-mode.el (ruby-flymake-command):
Inline the value.  There are no known substitutes.
(ruby-flymake): Rename to `ruby-flymake-simple' and simplify
the docstring.
(ruby-flymake-use-rubocop-if-available): New option.
(ruby--rubocop-flymake-proc): New variable.
(ruby-rubocop-config): New option.
(ruby-flymake-rubocop, ruby-flymake-auto): New functions.
(ruby-mode): Use `ruby-flymake-auto'.
2017-11-22 01:53:37 +02:00
Dmitry Gutov
c65a0ae7c4 ; Fix a typo 2017-11-22 01:51:48 +02:00
Noam Postavsky
7ab7603125 Update nt/INSTALL.W64 (Bug#28601)
* nt/INSTALL.W64 (Download and install MinGW-w64 and MSYS2): Move
suggestion about modifying PATH to...
(Test Emacs): ... here.
(Run configure): Remove the unnecessary setting of PKG_CONFIG_PATH.
(Troubleshooting): New section, includes suggestion to check
PKG_CONFIG_PATH.
2017-11-21 14:43:04 -05:00