]> git.eshelyaron.com Git - emacs.git/log
emacs.git
6 years agoFix call to GlobalMemoryStatusEx in w32.c
Eli Zaretskii [Tue, 6 Nov 2018 15:49:58 +0000 (17:49 +0200)]
Fix call to GlobalMemoryStatusEx in w32.c

* src/w32.c (system_process_attributes): Initialize the size
of the data structure passed to GlobalMemoryStatusEx,
otherwise it fails.

6 years agoImprove recent changes in documentation of window handling
Eli Zaretskii [Sun, 4 Nov 2018 17:08:00 +0000 (19:08 +0200)]
Improve recent changes in documentation of window handling

* doc/lispref/windows.texi (Displaying Buffers)
(Choosing Window, Buffer Display Action Functions)
(Buffer Display Action Alists, Choosing Window Options)
(Precedence of Action Functions, The Zen of Buffer Display):
Fix wording, punctuation, and markup.  Remove redundant
cross-references.

* doc/emacs/windows.texi (Window Choice, Temporary Displays):
Fix wording and punctuation.

6 years agoRewrite documentation of buffer display
Martin Rudalics [Sun, 4 Nov 2018 08:15:13 +0000 (09:15 +0100)]
Rewrite documentation of buffer display

* doc/emacs/windows.texi (Window Choice): Rewrite, replacing
references to older buffer display options with references to
and examples of buffer display actions.
(Temporary Displays): Rewrite display of *Completions*
example.

* doc/lispref/elisp.texi (Top): New Windows section
'Displaying Buffers'.
* doc/lispref/frames.texi (Child Frames): Adjust cross
reference.
* doc/lispref/windows.texi (Windows): New section 'Displaying
Buffers'.  Move sections 'Choosing Window', 'Display Action
Functions' and 'Choosing Window Options' there and adjust
namings.  Preferably write 'Buffer Display Action' instead of
'Display Action'.  More consistently use @w{} to make key
binding specifications unsplittable.
(Displaying Buffers): New section.
(Choosing Window): Make it a subsection of 'Displaying
Buffers'.  More explicitly describe how 'display-buffer'
compiles its list of action functions and the action alist.
(Buffer Display Action Functions): Rename from 'Display Action
Functions', make it a subsection of 'Displaying Buffers' and
rewrite it.  Elide more detailed descriptions of action alist
entries; these are now in the new section 'Buffer Display
Action Functions'.  Remove example.
(Buffer Display Action Alists): New subsection of 'Displaying
Buffers' giving a comprehensive description of recognized
action alist entries with appropriate indexing.  Contents were
partially moved here from the old 'Display Action Functions'
section.
(Choosing Window Options): Make it a subsection of 'Displaying
Buffers'.  Add examples of how to rewrite old buffer display
options with the help of buffer display actions.
(Precedence of Action Functions): New subsection of
'Displaying Buffers' explaining the execution order of action
functions with the help of a detailed example.
(The Zen of Buffer Display): New subsection of 'Displaying
Buffers' supplying guidelines on how to write and use buffer
display actions with examples.
(Side Windows, Displaying Buffers in Side Windows)
(Frame Layouts with Side Windows, Atomic Windows): Update
references to the 'Displaying Buffers' subsections.

6 years ago; * doc/lispref/control.texi (pcase Macro): Fix another typo.
Eli Zaretskii [Sat, 3 Nov 2018 17:37:54 +0000 (19:37 +0200)]
; * doc/lispref/control.texi (pcase Macro): Fix another typo.

6 years ago; * doc/lispref/control.texi (pcase Macro): Fix a typo.
Eli Zaretskii [Sat, 3 Nov 2018 16:11:29 +0000 (18:11 +0200)]
; * doc/lispref/control.texi (pcase Macro): Fix a typo.

6 years agoImprove documentation of destructuring-binding macros
Eli Zaretskii [Sat, 3 Nov 2018 13:11:33 +0000 (15:11 +0200)]
Improve documentation of destructuring-binding macros

* lisp/emacs-lisp/pcase.el (pcase-dolist, pcase-let)
(pcase-let*): Improve the doc strings.

* doc/lispref/sequences.texi (Sequence Functions): Improve
wording and rename arguments of seq-let to be more
descriptive.  Add a cross-reference to "Destructuring with
pcase Patterns".
* doc/lispref/control.texi (Pattern-Matching Conditional):
Improve wording and the menu.
(pcase Macro): Incorporate patch suggested by Paul Eggert
<eggert@cs.ucla.edu>.  Reformat text.
(Destructuring with pcase Patterns): Rename from
"Destructuring patterns", and improve wording and indexing.

6 years agoAvoid byte compilation warning in rcirc.el
Eli Zaretskii [Sat, 3 Nov 2018 08:49:51 +0000 (10:49 +0200)]
Avoid byte compilation warning in rcirc.el

* lisp/net/rcirc.el (rcirc-prompt-start-marker): Move
definition before 1st use to avoild byte-compiler warning.

6 years agoAvoid race in rcirc process filter (bug#33145)
Basil L. Contovounesios [Thu, 25 Oct 2018 02:35:57 +0000 (03:35 +0100)]
Avoid race in rcirc process filter (bug#33145)

* lisp/net/rcirc.el (rcirc-filter): Clear rcirc-process-output
before processing its constituent lines.  Otherwise, if rcirc-filter
runs again before the last rcirc-process-server-response is
finished, the contents of rcirc-process-output could be duplicated.

6 years agoAvoid file-name errors when viewing PDF from Gnus
Jordan Wilson [Wed, 10 Oct 2018 10:45:57 +0000 (11:45 +0100)]
Avoid file-name errors when viewing PDF from Gnus

* lisp/doc-view.el (doc-view-mode): Run the output file name
through 'convert-standard-filename', to avoid problems with
characters that are not allowed in file names on some
systems.  (Bug#32989)

Copyright-paperwork-exempt: yes

6 years agoAvoid crashes with remapped default face in Org mode
Eli Zaretskii [Fri, 2 Nov 2018 10:07:47 +0000 (12:07 +0200)]
Avoid crashes with remapped default face in Org mode

* src/xfaces.c (face_at_buffer_position): Look up BASE_FACE_ID
anew if it is not in the frame's face cache.  This avoids
crashes when Org mode sets up for a new major mode in embedded
code fragment, and the default face is remapped.  (Bug#33222)

6 years agoDoc fix for checkdoc-continue
Eric Abrahamsen [Thu, 1 Nov 2018 20:21:27 +0000 (13:21 -0700)]
Doc fix for checkdoc-continue

* lisp/emacs-lisp/checkdoc.el (checkdoc-continue): There is no second
  optional argument, and the function always starts from point.

6 years agoFix a typo in autoload.el
Eli Zaretskii [Thu, 1 Nov 2018 18:56:31 +0000 (20:56 +0200)]
Fix a typo in autoload.el

* lisp/emacs-lisp/autoload.el (update-directory-autoloads):
Remove stray backslashes.  (Bug#33231)

6 years ago; Auto-commit of loaddefs files.
Glenn Morris [Thu, 1 Nov 2018 10:24:27 +0000 (06:24 -0400)]
; Auto-commit of loaddefs files.

6 years ago* doc/lispref/control.texi (Destructuring patterns): New subsection.
Stefan Monnier [Wed, 31 Oct 2018 19:34:45 +0000 (15:34 -0400)]
* doc/lispref/control.texi (Destructuring patterns): New subsection.

6 years agoAdd regression test for Bug#33014
Gemini Lasswell [Wed, 31 Oct 2018 04:15:51 +0000 (21:15 -0700)]
Add regression test for Bug#33014

Backport from master.
* test/src/eval-tests.el:
(eval-tests-byte-code-being-evaluated-is-protected-from-gc): New test.
(eval-tests-33014-var): New variable.
(eval-tests-33014-func, eval-tests-33014-redefine): New functions.

6 years agoRefer to bytecode constant vectors (Bug#33014)
Paul Eggert [Wed, 31 Oct 2018 04:14:10 +0000 (21:14 -0700)]
Refer to bytecode constant vectors (Bug#33014)

Backport from master.
* src/bytecode.c (exec_byte_code): Save VECTOR into stack slot
so that it survives GC.  The stack slot was otherwise unused,
so this doesn’t cost us memory, only a store insn.

6 years ago* lisp/emacs-lisp/pcase.el: Improve docstrings.
Stefan Monnier [Tue, 30 Oct 2018 18:24:31 +0000 (14:24 -0400)]
* lisp/emacs-lisp/pcase.el: Improve docstrings.

6 years ago* lisp/emacs-lisp/rx.el (rx): Fix typo in doc string. (Bug#33205)
Eli Zaretskii [Tue, 30 Oct 2018 17:25:14 +0000 (19:25 +0200)]
* lisp/emacs-lisp/rx.el (rx): Fix typo in doc string.  (Bug#33205)

6 years agoImprove doc string of 'call-process'
Eli Zaretskii [Tue, 30 Oct 2018 11:08:28 +0000 (13:08 +0200)]
Improve doc string of 'call-process'

* src/callproc.c (Fcall_process): Clarify DESTINATION in the
doc string.

6 years agoDocument that generic functions cannot be commands
Eli Zaretskii [Tue, 30 Oct 2018 10:14:19 +0000 (12:14 +0200)]
Document that generic functions cannot be commands

* doc/lispref/commands.texi (Defining Commands):
* doc/lispref/functions.texi (Generic Functions): Document
that generic functions cannot be turned into commands.
(Bug#33170)

6 years ago* lisp/mail/rmailsum.el (rmail-summary-output): Add lost word to doc.
Charles A. Roelli [Sun, 28 Oct 2018 19:29:45 +0000 (20:29 +0100)]
* lisp/mail/rmailsum.el (rmail-summary-output): Add lost word to doc.

6 years agoAdd index entries for more isearch commands/bindings (Bug#32990)
Charles A. Roelli [Sun, 28 Oct 2018 17:07:01 +0000 (18:07 +0100)]
Add index entries for more isearch commands/bindings (Bug#32990)

* doc/emacs/search.texi (Basic Isearch): Index isearch-exit,
isearch-abort, isearch-cancel, isearch-repeat-forward,
isearch-repeat-backward and their bindings.
(Repeat Isearch): Index isearch-ring-advance,
isearch-ring-retreat and isearch-edit-string.
(Special Isearch): Index isearch-quote-char,
isearch-char-by-name and their bindings.  Index
isearch-query-replace and isearch-query-replace-regexp, and
the latter's binding.  Explain what
isearch-query-replace-regexp does.  Index isearch-complete.
(Word Search): Index isearch-toggle-word.

6 years ago* lisp/simple.el (filter-buffer-substring): Clarify doc (Bug#33179).
Noam Postavsky [Sat, 27 Oct 2018 19:27:45 +0000 (15:27 -0400)]
* lisp/simple.el (filter-buffer-substring): Clarify doc (Bug#33179).

6 years agoFix recent change in lispref/processes.texi.
Eli Zaretskii [Sat, 27 Oct 2018 18:47:59 +0000 (21:47 +0300)]
Fix recent change in lispref/processes.texi.

* doc/lispref/processes.texi (Asynchronous Processes): Clarify
wording.  Suggested by Thomas Fitzsimmons <fitzsim@fitzsim.org>.
(Bug#33050)

6 years ago* lisp/simple.el (region-extract-function): Doc fix. (Bug#33167)
Eli Zaretskii [Sat, 27 Oct 2018 11:08:40 +0000 (14:08 +0300)]
* lisp/simple.el (region-extract-function): Doc fix.  (Bug#33167)

6 years ago* lisp/simple.el (region-bounds): Doc fix. (Bug#33168)
Eli Zaretskii [Sat, 27 Oct 2018 10:50:34 +0000 (13:50 +0300)]
* lisp/simple.el (region-bounds): Doc fix.  (Bug#33168)

6 years agoImprove documentation of 'process-connection-type'
Eli Zaretskii [Sat, 27 Oct 2018 10:18:33 +0000 (13:18 +0300)]
Improve documentation of 'process-connection-type'

* doc/lispref/processes.texi (Asynchronous Processes): Clarify
better when it is advisable to use pipes for communicating
with subprocesses.  (Bug#33050)

6 years agoUnify prompt for gnupg passphrase between GNU/Linux and MS-Windows.
Pierre Téchoueyres [Sun, 14 Oct 2018 15:49:12 +0000 (17:49 +0200)]
Unify prompt for gnupg passphrase between GNU/Linux and MS-Windows.

* lisp/epg.el (epg--start): Use 'raw-text' for coding system instead
of 'binary', in order to avoid spurious carriage return on Microsoft
Windows and MS-DOS when prompting for a password.  (Bug#33040)

6 years agoDoc fix of 'gnus-fetch-old-headers'
Eli Zaretskii [Sat, 27 Oct 2018 09:14:35 +0000 (12:14 +0300)]
Doc fix of 'gnus-fetch-old-headers'

* lisp/gnus/gnus-sum.el (gnus-fetch-old-headers): Avoid
treating 'some' and 'invisible' as symbols that need to be
hyperlinked.  Reported by Robert Pluim <rpluim@gmail.com>.
(Bug#33090)

6 years agoDeactivate incorrect hyperlinking in gnus-build-sparse-threads doc
Eric Abrahamsen [Thu, 18 Oct 2018 18:32:47 +0000 (11:32 -0700)]
Deactivate incorrect hyperlinking in gnus-build-sparse-threads doc

* lisp/gnus/gnus-sum.el (gnus-build-sparse-threads): Add the word
"symbol" so it doesn't link to the `some' function.  (Bug#33090)

6 years agoMinor copyedits in cmdargs.texi
Eli Zaretskii [Sat, 27 Oct 2018 08:40:33 +0000 (11:40 +0300)]
Minor copyedits in cmdargs.texi

* doc/emacs/cmdargs.texi (Initial Options): Document '-nsl'.
Add a cross-reference to "Writing Dynamic Modules".

6 years agoImprove documentation of X resource loading
Eli Zaretskii [Sat, 27 Oct 2018 08:24:53 +0000 (11:24 +0300)]
Improve documentation of X resource loading

* doc/emacs/cmdargs.texi (Initial Options):
* doc/emacs/frames.texi (Frame Parameters):
* doc/emacs/xresources.texi (Resources): Document the
'--no-x-resources' command-line option and the fact that X
resources override .emacs settings of frame parameters.
(Bug#32975)

6 years ago* lisp/net/tramp-sh.el (tramp-inline-compress-commands):
Michael Albinus [Sat, 27 Oct 2018 07:22:18 +0000 (09:22 +0200)]
* lisp/net/tramp-sh.el (tramp-inline-compress-commands):

Suppress warnings about obsolete environment variable GZIP.

6 years ago; Fix sorting in admin/MAINTAINERS
Michael Albinus [Sat, 27 Oct 2018 07:21:53 +0000 (09:21 +0200)]
; Fix sorting in admin/MAINTAINERS

6 years agoDon't error when indenting malformed Lisp (Bug#30891)
Noam Postavsky [Sun, 18 Mar 2018 01:14:11 +0000 (21:14 -0400)]
Don't error when indenting malformed Lisp (Bug#30891)

* lisp/emacs-lisp/lisp-mode.el (lisp-indent-calc-next): If we run out
of indent stack, reset the parse state.

6 years agoImprove 'isearch-delete-char' documentation (Bug#32990)
Charles A. Roelli [Thu, 25 Oct 2018 19:01:53 +0000 (21:01 +0200)]
Improve 'isearch-delete-char' documentation (Bug#32990)

* doc/emacs/search.texi (Basic Isearch): Index
'isearch-delete-char', its keybinding and the isearch "input
item" concept, and define the latter.
(Error in Isearch): Clarify the different uses of DEL and
C-M-w during isearch.

* lisp/isearch.el (isearch-delete-char): Correct its
documentation and link to the Info node '(emacs)Basic Isearch'
which explains less technically how this function works in
everyday usage.

6 years ago; * lisp/help.el (with-help-window): Remove extra space in doc.
Charles A. Roelli [Thu, 25 Oct 2018 18:40:49 +0000 (20:40 +0200)]
; * lisp/help.el (with-help-window): Remove extra space in doc.

6 years agoImprove XPM load failure message (bug#33126)
Alan Third [Wed, 24 Oct 2018 11:15:16 +0000 (12:15 +0100)]
Improve XPM load failure message (bug#33126)

* src/image.c (xpm_load_image): Only XPM3 is supported, so make that
explicit.

6 years agoAvoid infloop in CPerl mode fontification
Eli Zaretskii [Thu, 25 Oct 2018 14:57:34 +0000 (17:57 +0300)]
Avoid infloop in CPerl mode fontification

* lisp/progmodes/cperl-mode.el
(cperl-font-lock-fontify-region-function): Stop the loop at
EOB, to avoid inflooping there.  (Bug#33114)

6 years agoFix minibuffer-help-form for lexical binding
Andreas Schwab [Thu, 25 Oct 2018 08:55:53 +0000 (10:55 +0200)]
Fix minibuffer-help-form for lexical binding

* lisp/simple.el (set-variable): Substitute var into
minibuffer-help-form.
* lisp/cus-edit.el (custom-prompt-variable): Likewise.

6 years agoFix some NS drawing issues (bug#32932)
Alan Third [Sun, 14 Oct 2018 18:12:00 +0000 (19:12 +0100)]
Fix some NS drawing issues (bug#32932)

* src/nsterm.m (ns_clip_to_rect):
(ns_reset_clipping): Remove gsaved variable and associated code.
(ns_flush_display): Remove function.
(ns_copy_bits): use translateRectsNeedingDisplayInRect:by: to copy any
pending drawing actions along with the image.
([EmacsView windowWillResize:toSize:]): Remove unneeded call.
([EmacsView drawRect:]): Remove redundant call to ns_clear_frame_area,
and optimize the exposed rectangles.
(ns_draw_window_cursor): Remove unneeded disabling of screen updates.

6 years ago* lisp/gnus/mm-util.el (mm-decompress-buffer): Fix split-string args.
Katsumi Yamaoka [Wed, 24 Oct 2018 10:09:51 +0000 (10:09 +0000)]
* lisp/gnus/mm-util.el (mm-decompress-buffer): Fix split-string args.

6 years ago* doc/misc/calc.texi (Summary): The +/- key is 'p', not 'P'.
Noam Postavsky [Wed, 24 Oct 2018 01:46:01 +0000 (21:46 -0400)]
* doc/misc/calc.texi (Summary): The +/- key is 'p', not 'P'.

6 years agoCorrect typo in GNU ELPA url
Robert Pluim [Tue, 23 Oct 2018 10:19:19 +0000 (12:19 +0200)]
Correct typo in GNU ELPA url

* doc/misc/efaq.texi (Packages that do not come with Emacs):
Correct typo in GNU ELPA url (Bug#33072).  Change other url
references to use https scheme.

6 years ago* doc/misc/dired-x.texi (Omitting Variables): Fix wording. (Bug#33112)
Eli Zaretskii [Mon, 22 Oct 2018 05:47:18 +0000 (08:47 +0300)]
* doc/misc/dired-x.texi (Omitting Variables): Fix wording. (Bug#33112)

6 years agoFix help-form binding in dired-create-files
Michael Heerdegen [Tue, 4 Sep 2018 20:00:11 +0000 (22:00 +0200)]
Fix help-form binding in dired-create-files

This fixes Bug#32630: since "dired-aux" moved to lexical binding mode,
the free variable TO in the constructed HELP-FORM got out of scope of
the surrounding 'let'.

* lisp/dired-aux.el (dired-create-files): Make the binding of
HELP-FORM a string.

6 years agoFix a pasto in a Gnus doc string
Eli Zaretskii [Sat, 20 Oct 2018 08:26:33 +0000 (11:26 +0300)]
Fix a pasto in a Gnus doc string

* lisp/gnus/gnus-art.el (gnus-article-treat-fold-newsgroups):
Doc string fix.  (Bug#33081)

6 years ago; * doc/emacs/files.texi (Reverting): Improve wording in last change.
Eli Zaretskii [Fri, 19 Oct 2018 08:58:53 +0000 (11:58 +0300)]
; * doc/emacs/files.texi (Reverting): Improve wording in last change.

6 years agoUpdate revert-buffer documentation
Mauro Aranda [Thu, 18 Oct 2018 14:28:18 +0000 (11:28 -0300)]
Update revert-buffer documentation

* doc/emacs/files.texi (Reverting): Document that revert-buffer
does keep undo history.  (Bug#33084)

Copyright-paperwork-exempt: yes

6 years ago* lisp/mail/smtpmail.el (smtpmail-send-queued-mail): Load file with .el suffix.
Juri Linkov [Wed, 17 Oct 2018 22:24:43 +0000 (01:24 +0300)]
* lisp/mail/smtpmail.el (smtpmail-send-queued-mail): Load file with .el suffix.

For the case when load-prefer-newer is t, ensure loading the right file
by explicitly adding the .el suffix.  Use the same variable names
as in the function smtpmail-send-it.  (Bug#33055)

6 years ago; * etc/NEWS: Announce that emacs-module.h is now installed.
Eli Zaretskii [Tue, 16 Oct 2018 15:48:21 +0000 (18:48 +0300)]
; * etc/NEWS: Announce that emacs-module.h is now installed.

6 years agoTweak Makefile emacs-module.h handling
Glenn Morris [Wed, 3 Oct 2018 20:47:01 +0000 (16:47 -0400)]
Tweak Makefile emacs-module.h handling

* Makefile.in (install-arch-indep, uninstall): Respect DESTDIR.
Handle whitespace.  Remove non-portable mkdir argument.

(cherry picked from commit c1d0dbd6ca92cb221024382b19654e4fbf1d1ed3)

6 years agoInstall emacs-module.h (Bug#31929)
Philipp Stephani [Thu, 20 Sep 2018 12:03:29 +0000 (14:03 +0200)]
Install emacs-module.h (Bug#31929)

* Makefile.in (includedir): New variable.
(install-arch-indep): Install emacs-module.h.
(uninstall): Uninstall emacs-module.h.

(cherry picked from commit 00ea749f2af44bff6ea8c1259477fbf0ead8a306)

6 years agoClarify documentation of fractional vertical scrolling and some doc strings
Alan Mackenzie [Mon, 15 Oct 2018 19:04:05 +0000 (19:04 +0000)]
Clarify documentation of fractional vertical scrolling and some doc strings

* doc/lispref/windows.texi (vertical scrolling): Clarify the meaning of
vertical scrolling by referring to tall screen lines, images, and the display
action.  Clarify an ambiguous English tense.

* src/window.c (window-vscroll, set-window-vscroll): Amend doc strings to
refer to display.

6 years ago* lisp/isearch.el (isearch-cmds): Recall absent isearch--state slot.
Charles A. Roelli [Mon, 15 Oct 2018 17:51:47 +0000 (19:51 +0200)]
* lisp/isearch.el (isearch-cmds): Recall absent isearch--state slot.

6 years agodoc/lispref/edebug.texi (Specification List) Remove obstrusive blank line
Alan Mackenzie [Sun, 14 Oct 2018 18:20:01 +0000 (18:20 +0000)]
doc/lispref/edebug.texi (Specification List) Remove obstrusive blank line

6 years agoFix wording in module API documentation
Eli Zaretskii [Sun, 14 Oct 2018 16:12:49 +0000 (19:12 +0300)]
Fix wording in module API documentation

* doc/lispref/internals.texi (Module Functions): Fix confusing
wording.  Reported by Basil L. Contovounesios <contovob@tcd.ie>.

6 years agoFix redisplay of glyphless characters
Eli Zaretskii [Sat, 13 Oct 2018 16:47:01 +0000 (19:47 +0300)]
Fix redisplay of glyphless characters

* src/conf_post.h (bool_bf): Use 'unsigned int' in the MinGW
builds.  Suggested by Tom Tromey <tom@tromey.com>.  (Bug#33017)
* src/dispnew.c (scrolling_window): Update commentary
regarding xwidget builds.

6 years agoUpdate --without-toolkit-scroll-bars doc
Robert Pluim [Sat, 13 Oct 2018 08:52:06 +0000 (10:52 +0200)]
Update --without-toolkit-scroll-bars doc

* configure.ac (--without-toolkit-scroll-bars): Update list of
affected toolkits.

6 years agoCall GTK functions only on GTK scrollbars
Robert Pluim [Thu, 11 Oct 2018 14:02:51 +0000 (16:02 +0200)]
Call GTK functions only on GTK scrollbars

* src/gtkutil.c (xg_set_background_color) [USE_TOOLKIT_SCROLL_BARS]:
Don't call GTK functions on non-GTK scrollbars (Bug#32975).

6 years agoUpdate the description of startup in ELisp manual
Eli Zaretskii [Sat, 13 Oct 2018 08:36:04 +0000 (11:36 +0300)]
Update the description of startup in ELisp manual

* doc/lispref/os.texi (Startup Summary): Remove stale
reference to window-system-initialization-alist.  Reported by
Zhang Haijun <ccsmile2008@outlook.com>.

6 years agoUse the 'line-number' face for line-number fields past EOB
Eli Zaretskii [Sat, 13 Oct 2018 06:44:09 +0000 (09:44 +0300)]
Use the 'line-number' face for line-number fields past EOB

* src/xdisp.c (get_phys_cursor_geometry): Treat rows at and
beyond ZV specially.  Don't let the cursor exceed the
vertical dimensions of the row.
(maybe_produce_line_number): Use the 'line-number' face
instead of 'default' for blank fields beyond ZV.  Don't update
the IT metrics when displaying blank line-number fields beyond
ZV.  (Bug#32337)

6 years agoEnsure NS frame is redrawn correctly after scroll
Alan Third [Fri, 12 Oct 2018 20:45:03 +0000 (21:45 +0100)]
Ensure NS frame is redrawn correctly  after scroll

* src/nsterm.m (ns_copy_bits): Set needsDisplay so the previous cursor
position is redrawn.

6 years agoAvoid byte-compiler warning in em-rebind.el
Alex Branham [Fri, 5 Oct 2018 14:07:13 +0000 (09:07 -0500)]
Avoid byte-compiler warning in em-rebind.el

* lisp/eshell/em-rebind.el (eshell-delete-backward-char): Use
'delete-char' instead of delete-backward-char.  (Bug#32945)

6 years ago; * doc/emacs/mark.texi (Disabled Transient Mark): Fix last change.
Eli Zaretskii [Fri, 12 Oct 2018 08:33:31 +0000 (11:33 +0300)]
; * doc/emacs/mark.texi (Disabled Transient Mark): Fix last change.

6 years agoImprove indexing of 'C-SPC C-SPC'
Eli Zaretskii [Fri, 12 Oct 2018 08:31:09 +0000 (11:31 +0300)]
Improve indexing of 'C-SPC C-SPC'

* doc/emacs/mark.texi (Disabled Transient Mark): Fix
indexing.  (Bug#32959)

6 years ago; * doc/lispref/internals.texi (Writing Dynamic Modules): Fix a typo.
Eli Zaretskii [Thu, 11 Oct 2018 18:48:10 +0000 (21:48 +0300)]
; * doc/lispref/internals.texi (Writing Dynamic Modules): Fix a typo.

6 years agoFix bug with precious entries in Gnus registry
Eric Abrahamsen [Thu, 11 Oct 2018 18:20:29 +0000 (11:20 -0700)]
Fix bug with precious entries in Gnus registry

* lisp/registry.el (registry-collect-prune-candidates): This `cdr' was
  an error: it meant that the last key in the precious list, would be
  considered a nil. Since the precious list only contains the symbol
  'mark by default, marks were never considered precious.
* doc/misc/gnus.texi (Store arbitrary data): Fix typo: "marks" should
  be "mark".

6 years agoDocument in the ELisp manual how to write loadable modules
Eli Zaretskii [Thu, 11 Oct 2018 17:53:05 +0000 (20:53 +0300)]
Document in the ELisp manual how to write loadable modules

* doc/lispref/internals.texi (Writing Dynamic Modules)
(Module Initialization, Module Functions, Module Values)
(Module Misc, Module Nonlocal): New nodes.
* doc/lispref/loading.texi (Dynamic Modules): Add
cross-reference to the new node.
* doc/lispref/internals.texi (GNU Emacs Internals):
* doc/lispref/elisp.texi (Top): Update menus for the new nodes.

6 years agodired-do-shell-command: Notify users after abort the command
Tino Calancha [Thu, 11 Oct 2018 08:23:30 +0000 (17:23 +0900)]
dired-do-shell-command: Notify users after abort the command

* lisp/dired-aux.el (dired-do-shell-command):  Notify users that
the command have aborted when they answer 'n' to the prompt (Bug#32969).

6 years agoAdapt Tramp version. Do not merge with master
Michael Albinus [Thu, 11 Oct 2018 07:39:12 +0000 (09:39 +0200)]
Adapt Tramp version.  Do not merge with master

* lisp/net/trampver.el: Change version to "2.3.5.26.2".
(customize-package-emacs-version-alist): Add Tramp version
integrated in Emacs 26.2.

6 years agoFix Apple Script permissions error
Alan Third [Sun, 7 Oct 2018 15:15:17 +0000 (16:15 +0100)]
Fix Apple Script permissions error

* nextstep/templates/Info.plist.in: Add NSAppleEventsUsageDescription
message to enable AppleEvents usage.

6 years agoFix typo in 'timerp' documentation
Mauro Aranda [Tue, 9 Oct 2018 21:20:53 +0000 (18:20 -0300)]
Fix typo in 'timerp' documentation

* doc/lispref/os.texi (Timers): Fix typo in 'timerp' documentation.
(Bug#32999)

Copyright-paperwork-exempt: yes

6 years ago; * src/data.c (Fkeywordp): Remove inaccurate commentary. (Bug#32979)
Eli Zaretskii [Mon, 8 Oct 2018 20:14:59 +0000 (23:14 +0300)]
; * src/data.c (Fkeywordp): Remove inaccurate commentary.  (Bug#32979)

6 years ago* doc/emacs/mark.texi (Mark): Index "(de)activating the mark".
Charles A. Roelli [Mon, 8 Oct 2018 17:21:41 +0000 (19:21 +0200)]
* doc/emacs/mark.texi (Mark): Index "(de)activating the mark".

(Bug#32956)

6 years agoFix overflow lockup with frames > 255 lines
Scott Corley [Mon, 8 Oct 2018 06:21:40 +0000 (23:21 -0700)]
Fix overflow lockup with frames > 255 lines

Backport from master.
* src/scroll.c (struct matrix_elt): Change unsigned char fields to
int to handle frames with more than 255 lines (Bug#32951).
Copyright-paperwork-exempt: yes

6 years agoAvoid assertion violations in nonsensical calls to 'signal'
Eli Zaretskii [Sun, 7 Oct 2018 14:45:12 +0000 (17:45 +0300)]
Avoid assertion violations in nonsensical calls to 'signal'

* src/eval.c (Fsignal): If both arguments are nil, replace the
first one with 'error', to avoid assertion violations further
down the line.  (Bug#32961)

6 years ago* lisp/simple.el (transient-mark-mode): Correct documentation. (Bug#32956)
Charles A. Roelli [Sat, 6 Oct 2018 19:24:32 +0000 (21:24 +0200)]
* lisp/simple.el (transient-mark-mode): Correct documentation.  (Bug#32956)

6 years agoUpdate the locale and language database
Eli Zaretskii [Sat, 6 Oct 2018 09:38:36 +0000 (12:38 +0300)]
Update the locale and language database

* lisp/international/mule-cmds.el (locale-language-names):
Update the list of supported locales.  Use existing language
names where available.

6 years agoFix a typo in a doc string.
Eli Zaretskii [Fri, 5 Oct 2018 13:51:17 +0000 (16:51 +0300)]
Fix a typo in a doc string.

* lisp/window.el (display-buffer-alist): Fix a typo in a doc string.
Reported by Michael Heerdegen <michael_heerdegen@web.de>.

6 years agoMake nneething allow CRLF-encoded files (bug#32940)
Katsumi Yamaoka [Fri, 5 Oct 2018 00:22:20 +0000 (00:22 +0000)]
Make nneething allow CRLF-encoded files (bug#32940)

* lisp/gnus/nneething.el (nneething-request-article):
Bind coding system to raw-text instead of binary when reading a file,
that may be CRLF-encoded (bug#32940).

6 years agoFurther fix to eieio-persistent
Eric Abrahamsen [Sun, 8 Apr 2018 23:49:20 +0000 (16:49 -0700)]
Further fix to eieio-persistent

* lisp/emacs-lisp/eieio-base.el (eieio-persistent-validate/fix-slot-value):
  Make handling of hash tables and vectors recursive. This is
  necessary because the write process, in `eieio-override-prin1' is
  also recursive. With any luck, this will be the last fix of its
  kind. If that's true, cherry-pick to Emacs 26.2 later on.

6 years agoAvoid ridiculously high stack limit requests on macOS
Eli Zaretskii [Thu, 4 Oct 2018 16:13:17 +0000 (19:13 +0300)]
Avoid ridiculously high stack limit requests on macOS

* src/emacs.c (main): Avoid wraparound in subtraction of
rlim_t values, in case rlim_t is an unsigned type.  (Bug#32338)

6 years agoImprove documentation of 'read-hide-char'
Charles A. Roelli [Wed, 3 Oct 2018 17:59:34 +0000 (19:59 +0200)]
Improve documentation of 'read-hide-char'

* src/minibuf.c (syms_of_minibuf) <Vread_hide_char>: Clarify
documentation and mention where else the variable is used.
* doc/lispref/minibuf.texi (Reading a Password): Add an index
entry for 'read-hide-char'.

6 years agoIn follow mode, prevent the cursor resting on a partially displayed line
Alan Mackenzie [Wed, 3 Oct 2018 15:57:15 +0000 (15:57 +0000)]
In follow mode, prevent the cursor resting on a partially displayed line

Don't merge to master.  This fixes bug #32848

* lisp/follow.el (follow-adjust-window): If point ends up in a partially
displayed line in a left hand or middle window, move it one line
forward, to
prevent unwanted scrolling should make-cursor-line-fully-visible be
non-nil.

6 years agoRevert "Temporary workaround for bug #32848 for branch emacs-26"
Alan Mackenzie [Wed, 3 Oct 2018 12:08:59 +0000 (12:08 +0000)]
Revert "Temporary workaround for bug #32848 for branch emacs-26"

This reverts commit 6650751ce73413d05599df07a9c5bc70744260f3.

6 years agoRevert "* etc/NEWS: Note setting make-cursor-line-fully-visible to nil in follow...
Alan Mackenzie [Wed, 3 Oct 2018 12:08:27 +0000 (12:08 +0000)]
Revert "* etc/NEWS: Note setting make-cursor-line-fully-visible to nil in follow-mode"

This reverts commit f3c8f4bde2de2b9d42c44f5e44f34c427bebdc58.

6 years ago* etc/NEWS: Note setting make-cursor-line-fully-visible to nil in follow-mode
Alan Mackenzie [Sun, 30 Sep 2018 15:58:40 +0000 (15:58 +0000)]
* etc/NEWS: Note setting make-cursor-line-fully-visible to nil in follow-mode

Also re-insert the "temporary note" explaining --- and +++.

6 years agoFix note about interactive advice (Bug#32905)
Noam Postavsky [Tue, 2 Oct 2018 23:56:43 +0000 (19:56 -0400)]
Fix note about interactive advice (Bug#32905)

* doc/lispref/functions.texi (Core Advising Primitives): Add missing
':', and finish the sentence fragment.

6 years agoComple fix for Bug#32550
Michael Albinus [Mon, 1 Oct 2018 12:17:27 +0000 (14:17 +0200)]
Comple fix for Bug#32550

* lisp/net/tramp.el (tramp-rfn-eshadow-update-overlay):
Use `save-excursion'.  This completes the fix of Bug#32550.

6 years ago; Auto-commit of loaddefs files.
Glenn Morris [Mon, 1 Oct 2018 10:23:16 +0000 (06:23 -0400)]
; Auto-commit of loaddefs files.

6 years ago* lisp/savehist.el (savehist-mode): Doc fix. (Bug#32889)
Eli Zaretskii [Mon, 1 Oct 2018 07:45:33 +0000 (10:45 +0300)]
* lisp/savehist.el (savehist-mode): Doc fix.  (Bug#32889)

6 years ago; * lisp/bindings.el (bindings--define-key): Doc fix. (Bug#32885)
Eli Zaretskii [Mon, 1 Oct 2018 07:19:27 +0000 (10:19 +0300)]
; * lisp/bindings.el (bindings--define-key): Doc fix.  (Bug#32885)

6 years agoOrg manual: Rewrite the Org Mobile section
Nicolas Goaziou [Sat, 29 Sep 2018 14:40:42 +0000 (16:40 +0200)]
Org manual: Rewrite the Org Mobile section

* doc/misc/org.texi (Org Mobile): Rewritten from "MobileOrg" section.
Remove all references to non-free software.
Moved into "Miscellaneous", much like Org Crypt library. No longer an
appendix.
(Footnotes): Remove a reference to "MobileOrg".
(Bug#32722)

6 years agoTemporary workaround for bug #32848 for branch emacs-26
Alan Mackenzie [Sun, 30 Sep 2018 10:46:26 +0000 (10:46 +0000)]
Temporary workaround for bug #32848 for branch emacs-26

Do not merge with master.

* lisp/follow.el (follow-mode): Set make-cursor-line-fully-visible to nil
buffer locally whilst follow-mode is active.

6 years agoImprove cl-do, cl-do* docstrings
Tino Calancha [Sat, 29 Sep 2018 09:06:03 +0000 (18:06 +0900)]
Improve cl-do, cl-do* docstrings

* lisp/emacs-lisp/cl-macs.el(cl-do, cl-do*):
Improve docstring (Bug#32803).

6 years agoAvoid returning early in 'while-no-input' due to subprocesses
Eli Zaretskii [Sat, 29 Sep 2018 07:11:08 +0000 (10:11 +0300)]
Avoid returning early in 'while-no-input' due to subprocesses

* src/keyboard.c (kbd_buffer_store_buffered_event): Support
also the internal buffer-switch events.
(syms_of_keyboard) <Qbuffer_switch>: New DEFSYM.

* lisp/subr.el (while-no-input-ignore-events): Ignore
'buffer-switch' events.  Reported by Michael Heerdegen
<michael_heerdegen@web.de>.

* etc/NEWS: Mention the change in behavior of 'while-no-input'

6 years agoCleanup when opening a new terminal fails. (Bug#32794)
John Shahid [Fri, 21 Sep 2018 15:15:10 +0000 (11:15 -0400)]
Cleanup when opening a new terminal fails. (Bug#32794)

* src/term.c (init_tty): Call delete_terminal_internal if emacs_open
fail.
* src/terminal.c (delete_terminal): Move some code into
delete_terminal_internal and call it.
(delete_terminal_internal): New function.
* src/termhooks.h: Prototype for delete_terminal_internal.

6 years agoFix deprecation warning
Alan Third [Wed, 26 Sep 2018 21:21:37 +0000 (22:21 +0100)]
Fix deprecation warning

* src/nsterm.m (ns_term_init): Use writeToFile or writeToURL as
required.

6 years agoMake all NS drawing be done from drawRect
Alan Third [Fri, 28 Sep 2018 19:23:07 +0000 (20:23 +0100)]
Make all NS drawing be done from drawRect

See bug#31904 and bug#32812.

* src/nsterm.m (ns_update_begin): Don't lock focus, only clip if there
is already a view focused.
(ns_update_end): Don't mess with view focusing any more.
(ns_focus): Only clip drawing if there is already a focused view,
otherwise mark area dirty for later drawing.  Renamed ns_clip_to_rect.
All callers changed.
(ns_unfocus): Don't unfocus the view any more.  Renamed
ns_reset_clipping. All callers changed.
(ns_clip_to_row): Update to match ns_clip_to_rect.
(ns_clear_frame):
(ns_clear_frame_area):
(ns_draw_fringe_bitmap):
(ns_draw_window_cursor):
(ns_draw_vertical_window_border):
(ns_draw_window_divider):
(ns_dumpglyphs_stretch):
(ns_draw_glyph_string): Only draw if ns_focus or ns_clip_to_row
return YES.
(ns_copy_bits): Remove superfluous calls to ns_(un)focus.
(ns_flush_display): New function.