1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-02-04 20:27:45 +00:00

132426 Commits

Author SHA1 Message Date
Paul Eggert
e067f1fd9f Revert overenthusiastic procfs fixup
Also, be more systematic in calls to string_to_number.
* src/sysdep.c (list_system_processes) [HAVE_PROCFS]: Allow pids
to be floating-point if they exceed fixnum range.  This partially
reverts my patch 2018-03-09T20:06:05Z!eggert@cs.ucla.edu, which
went too far in fixing string-to-number mishandling.
2018-03-12 10:37:05 -07:00
Charles A. Roelli
0965d94ca4 Allow toggling Grep command abbreviation, and rename related symbols
* lisp/progmodes/grep.el (grep-find-hide): Rename 'grep-find-hide'
to 'grep-find-abbreviate'.
(grep-find-hide-properties): Rename to
'grep-find-abbreviate-properties'.
(grep-mode-font-lock-keywords): Even when 'grep-find-abbreviate'
is nil, fontify the verbose command options with property
'abbreviated-command', so that the toggling command can later find
these parts without refontifying.
(grep-find-show): Rename to 'grep-find-toggle-abbreviation',
simplify the code, and permit toggling the hidden command options.
(grep-mode-map): Add a menu-bar item and new separator for
'grep-find-toggle-abbreviation', and fix the incumbent separators
in the "Grep" menu-bar, of which only one was showing before this
commit, even though two were specified.
* etc/NEWS (grep):
* doc/emacs/building.texi (Grep Searching): Document these
changes, and mention 'grep-find-toggle-abbreviation'.
2018-03-11 14:56:00 +01:00
Charles A. Roelli
c773dc118e Document 'transpose-sentences' and 'transpose-paragraphs'
* doc/emacs/fixit.texi (Transpose): Add documentation and index
entries for 'transpose-sentences' and 'transpose-paragraphs'
(Bug#30343 in passing).
2018-03-11 12:25:21 +01:00
Charles A. Roelli
b88e7c8bcd Make transpose-regions interactive (Bug#30343)
* doc/emacs/fixit.texi (Transpose): Mention and explain the new
command.
* editfns.c (Ftranspose_regions): Add an interactive calling
specification, and add documentation for it.
2018-03-11 11:59:01 +01:00
Charles A. Roelli
806a0c7749 Unify documentation on 'save-some-buffers'
* doc/emacs/files.texi (Save Commands): Include some more keys
that can be used in 'save-some-buffers'.

* lisp/files.el (save-some-buffers): Include the same keys as
above, and document all missing ones.
2018-03-11 11:48:08 +01:00
Charles A. Roelli
9bef4ef457 * lisp/simple.el (mark-whole-buffer): Clarify its behavior. 2018-03-11 11:26:52 +01:00
Charles A. Roelli
08aa6a0533 Improve and make use of 'image--get-image'
* lisp/image.el (image--get-image): Add documentation, and
check overlays for images too (since function 'put-image' from
the same library uses overlays to insert images).
(image-save): Use 'image--get-image'.
2018-03-11 11:13:47 +01:00
Paul Eggert
d48f4c3be1 Port to NetBSD tzalloc
Problem reported by Valery Ushakov (Bug#30738).
* src/editfns.c (xtzalloc): Remove.
(invalid_time_zone_specification): New function.
(tzlookup): Port to NetBSD, where tzalloc can fail when the TZ
string has an invalid value.
2018-03-11 00:22:08 -08:00
Glenn Morris
f1c48b0ec5 Remove many items obsolete since Emacs 22.1
Emacs 22.1 was five major releases and over decade ago.
In bug reporting statistics, it's been absent for around 5 years.
Ref: https://debbugs.gnu.org/stats/emacs.html
This list can be reviewed before to the next release, but for
now hopefully this motivates any needed external updates.
* lisp/arc-mode.el (archive-mouse-extract):
* lisp/bookmark.el (bookmark-exit-hooks):
* lisp/comint.el (comint-use-prompt-regexp-instead-of-fields):
* lisp/cus-edit.el (custom-face-save-command):
* lisp/descr-text.el (describe-char-after):
* lisp/desktop.el (desktop-enable, desktop-basefilename)
(desktop-buffer-modes-to-save, desktop-buffer-misc-functions)
(desktop-buffer-handlers, desktop-load-default):
* lisp/dired-x.el (dired-omit-files-p):
* lisp/frame.el (new-frame, set-default-font, delete-frame-hook)
(blink-cursor):
* lisp/generic-x.el (generic-define-mswindows-modes)
(generic-define-unix-modes):
* lisp/help.el (describe-project, view-todo):
* lisp/hilit-chg.el (highlight-changes-colours):
* lisp/ibuffer.el (ibuffer-elide-long-columns, ibuffer-hooks)
(ibuffer-mode-hooks):
* lisp/imenu.el (imenu-always-use-completion-buffer-p):
* lisp/isearch.el (isearch-lazy-highlight-cleanup)
(isearch-lazy-highlight-initial-delay)
(isearch-lazy-highlight-interval)
(isearch-lazy-highlight-max-at-a-time)
(isearch-lazy-highlight-cleanup):
* lisp/mwheel.el (mouse-wheel-down-button)
(mouse-wheel-up-button, mouse-wheel-click-button):
* lisp/novice.el (disabled-command-hook):
* lisp/recentf.el (recentf-menu-append-commands-p):
* lisp/savehist.el (savehist-load):
* lisp/speedbar.el (speedbar-ignored-path-expressions)
(speedbar-ignored-path-regexp, speedbar-add-ignored-path-regexp)
(speedbar-line-path, speedbar-buffers-line-path, speedbar-path-line):
* lisp/subr.el (assoc-ignore-case, assoc-ignore-representation)
(x-lost-selection-hooks, x-sent-selection-hooks)
(process-kill-without-query):
* lisp/calendar/icalendar.el (icalendar-convert-diary-to-ical)
(icalendar-extract-ical-from-buffer):
* lisp/emacs-lisp/autoload.el (update-autoloads-from-directories):
* lisp/emacs-lisp/derived.el (derived-mode-class):
* lisp/emacs-lisp/generic.el (generic-font-lock-defaults):
* lisp/emacs-lisp/timer.el (timer-set-time-with-usecs):
* lisp/gnus/spam.el (spam-list-of-processors):
* lisp/international/latin1-disp.el (latin1-char-displayable-p):
* lisp/mail/rmail.el (rmail-pop-password, rmail-pop-password-required):
* lisp/net/goto-addr.el (goto-address-at-mouse):
* lisp/net/net-utils.el (ipconfig-program, ipconfig-program-options):
* lisp/obsolete/iswitchb.el (iswitchb-use-fonts):
* lisp/play/dunnet.el (dungeon-mode-map):
* lisp/progmodes/compile.el (compilation-finish-function)
* lisp/progmodes/cperl-mode.el (cperl-vc-header-alist)
* lisp/progmodes/gud.el (tooltip-gud-modes, tooltip-gud-display)
(tooltip-gud-toggle-dereference):
* lisp/progmodes/pascal.el (pascal-outline):
* lisp/progmodes/perl-mode.el (electric-perl-terminator):
* lisp/textmodes/nroff-mode.el (count-text-lines)
(forward-text-line, backward-text-line, electric-nroff-newline)
(electric-nroff-mode):
* lisp/vc/log-edit.el (vc-comment-ring, vc-comment-ring-index)
(vc-previous-comment, vc-next-comment)
(vc-comment-search-reverse, vc-comment-search-forward)
(vc-comment-to-change-log):
* lisp/vc/pcvs-info.el (cvs-display-full-path)
(cvs-fileinfo->full-path):
* lisp/vc/vc.el (vc-diff-switches-list):
Remove items, obsolete since Emacs 22.1.
* lisp/ibuffer.el (ibuffer-cached-elide-long-columns):
Remove internal variable.
(ibuffer-compile-make-eliding-form, ibuffer-check-formats):
(ibuffer-mode): Remove support for ibuffer-elide-long-columns.
* lisp/cedet/semantic/sb.el (semantic-sb-token-jump):
Remove support for speedbar-line-path.
* lisp/emacs-lisp/unsafep.el (assoc-ignore-case):
Stop marking as side-effect-free.
* lisp/gnus/spam.el (spam-group-processor-p):
Remove support for spam-list-of-processors.
* lisp/progmodes/compile.el (define-compilation-mode)
(compilation-handle-exit):
Remove support for compilation-finish-function.
* lisp/progmodes/cperl-mode.el (cperl-mode):
Remove support for cperl-vc-header-alist.
; * lisp/files.el: Comments.
; * etc/NEWS: List removed items.
2018-03-10 19:15:56 -08:00
Stefan Monnier
6a2d179a47 eshell-eval-using-options: Avoid compiler warning differently
* lisp/eshell/em-unix.el (eshell/time):
* lisp/eshell/em-tramp.el (eshell/sudo):
* lisp/eshell/esh-var.el (eshell/env): Remove artificial use of `args'.

* lisp/eshell/esh-opt.el (eshell-eval-using-options): Silence warning
when `args' is not used by `body-forms'.
2018-03-10 21:49:22 -05:00
Paul Eggert
a3f26048a9 Merge from origin/emacs-26
5c91ca8 Fix create_process bug breaking eudc-expand-inline
e244fed Clarify that nil doesn't match itself as a cl-case clause (Bu...
df0e7e2 Improve SVG documentation
a34ef52 Document the "URL" keyword in library headers
fbc7f9a * test/lisp/international/mule-tests.el: Avoid local variable...
16faff6 ; * lisp/org/org-table.el: Replace obsolete alias in comment.
2018-03-10 18:30:54 -08:00
Paul Eggert
ab04a0941b ; Merge from origin/emacs-26
The following commit was skipped:

1bf6266 Add missing findex entries for recently removed kindex entries
2018-03-10 18:30:54 -08:00
Paul Eggert
767780169b Merge from origin/emacs-26
6af509e Replace the obsolete process-kill-without-query in documentation
4df0d15 ; Tiny fix for recent doc change
2018-03-10 18:30:54 -08:00
Paul Eggert
5c91ca8f30 Fix create_process bug breaking eudc-expand-inline
Problem reported by Thomas Fitzsimmons (Bug#30762).
* src/process.c (create_process) [HAVE_PTYS]:
Call setsid even if !PTY_FLAG.
2018-03-10 18:27:42 -08:00
Noam Postavsky
60c4cf6311 ; Revert "; Tracing for eieio-test random failure (Bug#24503)"
The tracing seems to prevent the bug from happening.
2018-03-10 21:02:10 -05:00
Noam Postavsky
864643929b Let warning about (:foo) be suppressible (Bug#30499)
* lisp/emacs-lisp/bytecomp.el (byte-compile-form): Check
byte-compile-warning-enabled-p before warning about funcalling const
symbol.
2018-03-10 19:51:28 -05:00
Dmitry Safronov
fda58fbc24 Fix wrong behavior of 'outline-headers-as-kill' command (Bug#30209)
* outline.el (outline-headers-as-kill): Fix heading duplication.
2018-03-10 19:51:25 -05:00
Noam Postavsky
e244fed5e0 Clarify that nil doesn't match itself as a cl-case clause (Bug#30749)
* lisp/emacs-lisp/cl-macs.el (cl-case): Mention that the ATOM
=> (ATOM) short form is only for non-nil ATOMs.
2018-03-10 17:56:04 -05:00
Charles A. Roelli
df0e7e2b9e Improve SVG documentation
* doc/lispref/display.texi (ImageMagick Images): Remove an
outdated comment that references a fixed bug.
(SVG Images): Fix grammar, and call functions functions (there are
no commands in lisp/svg.el).
2018-03-10 19:19:27 +01:00
Eli Zaretskii
a34ef52964 Document the "URL" keyword in library headers
* doc/lispref/tips.texi (Library Headers): "URL" is an alias for
"Homepage".  Suggested by Peter Oliver <p.d.oliver@mavit.org.uk>.
(Bug#30571)
2018-03-10 13:57:33 +02:00
Eli Zaretskii
a8be860e17 Improve support for desktop restoration in daemon mode
* lisp/server.el (server-after-make-frame-hook): New hook.
(server-execute): Call it after creating a new frame or before
switching to a buffer shown in a client frame.  (Bug#30421)

* doc/emacs/misc.texi (Saving Emacs Sessions): Adjust advice for
restoring desktop in daemon mode to the new hook.
* doc/lispref/frames.texi (Creating Frames, Standard Hooks):
Document server-after-make-frame-hook.

* etc/NEWS: Mention server-after-make-frame-hook.
2018-03-10 13:48:49 +02:00
Aaron Jensen
bbf53d99b5 Allow underline position variables be buffer-local
* src/nsterm.m (ns_draw_text_decoration):
* src/w32term.c (x_draw_glyph_string):
* src/xterm.c (x_draw_glyph_string): Allow underline-minimum-offset,
underline-at-descent-line, and x-use-underline-position-properties
be buffer local variables.  (Bug#30553)
* src/xdisp.c (syms_of_xdisp) <underline-minimum-offset>: Add DEFSYM.
2018-03-10 13:14:28 +02:00
Glenn Morris
461e681822 * Makefile.in (check-declare): Also check test/ directory. 2018-03-09 16:40:43 -05:00
Glenn Morris
6edbc03f8f * test/Makefile.in (check-declare): New PHONY rule. 2018-03-09 16:39:51 -05:00
Glenn Morris
d3ceff630e Quieten --without-json compilation of json-tests.el
* test/src/json-tests.el (json-serialize, json-insert)
(json-parse-string, json-parse-buffer): Declare.
2018-03-09 16:38:02 -05:00
Glenn Morris
01675be387 * test/lisp/vc/vc-tests.el (w32-application-type): Fix declaration. 2018-03-09 16:36:50 -05:00
Paul Eggert
ae0634148e Fix string-to-number C-level mishandling
* src/sysdep.c (list_system_processes):
* src/xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
Defend against Fstring_to_number returning a float or a nonsense
integer.
2018-03-09 12:08:48 -08:00
Glenn Morris
94a59a6d83 Quieten compilation of some test/lisp files
* test/lisp/dired-tests.el (dired-test-bug27243-02)
(dired-test-bug27243-03, dired-test-bug27899)
(dired-test-with-temp-dirs): Remove unused local variables.
* test/lisp/hi-lock-tests.el (hi-lock-bug26666)
(hi-lock-test-set-pattern): Mark unused arguments.
* test/lisp/ses-tests.el (ses-tests-renamed-cells-row-insertion):
Remove unused global "ses-tests-trigger".
* test/lisp/simple-tests.el (line-number-at-pos-when-passing-point):
Remove unused local "pos".
* test/lisp/emacs-lisp/benchmark-tests.el (benchmark-tests):
Pacify compiler.
* test/lisp/emacs-lisp/package-tests.el (package-test-signed):
Replace obsolete function epg-configuration.
* test/lisp/ls-lisp-tests.el:
* test/lisp/eshell/em-ls-tests.el: Require dired.
* test/lisp/progmodes/ruby-mode-tests.el
(ruby-forward-sexp-skips-method-calls-with-keyword-names):
* test/lisp/vc/diff-mode-tests.el
(diff-mode-test-ignore-trailing-dashes): Replace interactive funcs.
2018-03-09 15:04:59 -05:00
Glenn Morris
fbc7f9ae44 * test/lisp/international/mule-tests.el:
Avoid local variables confusion.
2018-03-09 14:05:36 -05:00
Glenn Morris
16faff6a46 ; * lisp/org/org-table.el: Replace obsolete alias in comment. 2018-03-09 12:43:21 -05:00
Paul Eggert
80e145fc96 Avoid losing info when formatting integers
* doc/lispref/numbers.texi (Integer Basics): Clarify that
out-of-range integers are treated as floating point only when the
integers are decimal.
* etc/NEWS: Mention changes.
* src/editfns.c (styled_format): Use %.0f when formatting %d or %i
values outside machine integer range, to avoid losing info.
Signal an error for %o or %x values that are too large to be
formatted, to avoid losing info.
2018-03-08 20:57:01 -08:00
Bill Wohler
1bf6266ae3 Add missing findex entries for recently removed kindex entries
* doc/misc/mh-e.texi:

(cherry picked from commit a56a3fc6849b89a71c9a00afcb088021ccbe94e5)
2018-03-08 19:59:10 -08:00
Glenn Morris
6af509ec67 Replace the obsolete process-kill-without-query in documentation
* lisp/comint.el (comint-exec-hook):
* lisp/term.el (term-exec-hook):
* lisp/eshell/esh-proc.el (eshell-exec-hook):
Doc fixes re the obsolete process-kill-without-query.
; * lisp/net/ange-ftp.el: Comment.
2018-03-08 20:18:18 -05:00
Glenn Morris
cb0f634895 Replace uses of the obsolete local-write-file-hooks
* lisp/net/quickurl.el (quickurl-reread-hook-postfix):
* lisp/progmodes/ebrowse.el (ebrowse-tree-mode)
(ebrowse-write-file-hook-fn):
* lisp/progmodes/glasses.el (glasses-mode):
* lisp/progmodes/vhdl-mode.el (vhdl-write-file-hooks-init):
* lisp/vc/ediff-merg.el (ediff-set-merge-mode):
* lisp/vc/ediff-util.el (ediff-setup):
Replace local-write-file-hooks, obsolete since 22.1,
with write-file-functions.
2018-03-08 20:03:13 -05:00
Paul Eggert
f0c590b857 Update from Gnulib
This includes:
2018-03-08 fflush: be more paranoid about libio.h change
* lib/fpending.c: Copy from Gnulib.
2018-03-08 16:50:41 -08:00
Juri Linkov
6bc78d5b16 * lisp/isearch.el (search-exit-option): Add option 'append'.
(isearch-pre-command-hook): Use it.

* doc/emacs/search.texi: Replace search-exit-option option nil with append.

https://lists.gnu.org/archive/html/emacs-devel/2018-03/msg00202.html
2018-03-09 00:29:04 +02:00
Charles A. Roelli
f67a14efb6 Add to "Completion Commands" Info node
* doc/emacs/mini.texi (Completion Commands): Mention other keys
for 'next-completion' and 'previous-completion', and explain 'q'
and 'z' which are relatively new additions.
2018-03-08 20:45:47 +01:00
Glenn Morris
4df0d15963 ; Tiny fix for recent doc change 2018-03-08 08:41:52 -08:00
Glenn Morris
43548b51cb Merge from origin/emacs-26
cb0d40e (origin/emacs-26) Minor change in the manual
7e26d83 More minor changes in the manual
6851754 Replace some obsolete aliases in code
6bcb48c Replace some obsolete aliases in documentation
317da2a Minor improvements in manuals
61c1f80 Minor copyedits in display.texi
d523e4a Remove some unused spam.el variables
501808c Replace some obsolete aliases in code
19afff3 Replace some obsolete aliases in documentation
c797bc9 Merge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emac...
0efe0bd Obsolete eshell-cmpl-suffix-list
add48d2 More minor changes in the Glossary of the Emacs manual
f6bd7e0 Revert last commit
af4697f Define if-let* and derivatives as aliases for if-let etc
ec79bdc Minor fix in Emacs manual's Glossary
2018-03-08 08:29:14 -08:00
Michael Albinus
cb0d40eab4 Minor change in the manual
* doc/emacs/display.texi (Useless Whitespace):
Don't upcase "TAB" and "SPC" when alluding to characters.
2018-03-08 17:08:47 +01:00
Eli Zaretskii
7e26d8356a More minor changes in the manual
* doc/emacs/display.texi (Useless Whitespace): Don't upcase "TAB"
and "SPC" when alluding to characters.  Suggested by Richard
Stallman <rms@gnu.org>.

* doc/emacs/buffers.texi (Misc Buffer): Clarify what "read-only"
means for buffers.
(Buffers): Define and describe "buffer contents".  Suggested by
Richard Stallman <rms@gnu.org>.  (Bug#30685)
2018-03-08 17:53:09 +02:00
Eli Zaretskii
50e2c0fb51 Fix 'window-text-pixel-size' when display properties are around
* src/xdisp.c (Fwindow_text_pixel_size): Correct the result when
there's a display property at the  TO position, and the call to
move_it_to overshoots.  (Bug#30746)
2018-03-08 15:32:23 +02:00
Michael Albinus
4d6e548e60 Add OpenDocument formats to Tramp file archives
* doc/misc/tramp.texi (Archive file names):
* lisp/net/tramp-archive.el (tramp-archive-suffixes):
Add OpenDocument formats.
2018-03-08 14:09:38 +01:00
Mike Kupfer
9f6e7905ec * lisp/mh-e/mh-e.el (mh-variant-set): Tweak failure message. 2018-03-07 23:01:12 -08:00
Mike Kupfer
8c361c0c73 * lisp/mh-e/mh-utils.el (mh-find-path): Add missing part of previous. 2018-03-07 22:59:14 -08:00
Glenn Morris
2dc909c67b Suppress "No MH variant found" message (bug#30669)
* lisp/mh-e/mh-e.el (mh-variant): Don't try to detect till needed.
* lisp/mh-e/mh-e.el (mh-version, mh-variant-p):
* lisp/mh-e/mh-comp.el (mh-insert-x-mailer):
Ensure mh-variant-in-use is set.
2018-03-07 22:56:23 -08:00
Paul Eggert
bb1309f1eb Update from Gnulib
This includes:
2018-03-07 maint: write-file-hooks -> before-save-hook
2018-03-05 binary-io: pacify gcc -Wunused-parameter
2018-03-05 fflush: adjust to glibc 2.28 libio.h removal
* build-aux/config.guess, build-aux/config.sub:
* build-aux/gitlog-to-changelog, build-aux/install-sh:
* build-aux/move-if-change, build-aux/update-copyright:
* doc/misc/texinfo.tex, lib/binary-io.h, lib/fpending.c:
* lib/stdio-impl.h: Copy from Gnulib.
2018-03-07 17:56:28 -08:00
Glenn Morris
685175404f Replace some obsolete aliases in code
* lisp/net/eudc-bob.el (eudc-bob-mail-keymap):
* lisp/textmodes/reftex-toc.el (reftex-make-separate-toc-frame):
Replace obsolete aliases.
2018-03-07 15:44:08 -05:00
Glenn Morris
6bcb48cf27 Replace some obsolete aliases in documentation
* doc/misc/efaq-w32.texi (Incoming mail with Rmail):
* doc/misc/speedbar.texi (Major Display Modes):
* lisp/mh-e/mh-folder.el (mh-restore-desktop-buffer):
Doc fixes re obsolete aliases.
; * lisp/autoinsert.el (auto-insert):
; * lisp/ffap.el (ffap-newfile-prompt):
; * lisp/woman.el (woman-insert-file-contents): Comment fixes.
2018-03-07 15:41:29 -05:00
Eli Zaretskii
317da2ace5 Minor improvements in manuals
* doc/lispref/variables.texi (Local Variables): Make more clear
that local bindings of 'let' are in effect only within the body.
Suggested by Marcin Borkowski <mbork@mbork.pl>, see
http://lists.gnu.org/archive/html/emacs-devel/2018-03/msg00217.html
for the details.

* doc/emacs/programs.texi (Matching): Fix a typo.  Reported by
Alex Branham <alex.branham@gmail.com> in emacs-manual-bugs@gnu.org.
Improve indexing.
2018-03-07 21:51:59 +02:00