1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-28 08:11:05 -08:00
Commit graph

131227 commits

Author SHA1 Message Date
Phillip Lord
046cde2d66 Add date to snapshot file
* admin/nt/dist-build/build-zips.sh: Add date to all out files.
* admin/nt/dist-build/emacs.nsi: Lower case and date installer.
2017-11-20 19:55:31 +00:00
Alan Mackenzie
5b5f441ff8 read_key_sequence: correct the handling of raw_keybuf in recursive calls
This fixes bug #29349.

* src/keyboard.c (raw_keybuf_buffer, raw_keybuf_count_buffer): New variables
pointed to by ...
(raw_keybuf, raw_keybuf_count): Variables converted to pointers.
(GROW_RAW_KEYBUF): enhance with a length argument.
(command_loop_1): Initialize the above two pointers to their canonical values.

(read_key_sequence): In recursive calls (for menus) the function was
overwriting the raw event buffer of the outer call.  Correct this by
introducing a local buffer for each level of call, and setting this up to be
used by the call to read_char.  Any contents of this local buffer are appended
to the global buffer afterwards.
2017-11-20 18:08:43 +00:00
Glenn Morris
9c6791afcd ; Merge from origin/emacs-26
The following commit was skipped:

eb335c9 (origin/emacs-26) * src/keyboard.c: Undo last change, meant f...
2017-11-20 13:10:11 -05:00
Glenn Morris
5f1cf4b5c7 Merge from origin/emacs-26
fc5b8f1 Fix Bug#29149
5622b2e Merge branch 'emacs-26' of git.sv.gnu.org:/srv/git/emacs into...
4da8799 (emacs-26) Fix misbehavior when drawing three-pixel high hori...
1b082c8 MH-E: don't automatically download external-body parts
069f978 ; * lisp/emacs-lisp/byte-run.el: Fix a typo in a comment.
504a56c ; Fix last commit
a34e44e ; Fix last commit
a8892b4 Further fix for Bug#29291
d14923b Fix divider frame params on NS (bug#29352)
b2518ac Spelling fixes

# Conflicts:
#	etc/NEWS
#	test/lisp/net/tramp-tests.el
2017-11-20 13:10:11 -05:00
Glenn Morris
7aa59d42a7 ; Merge from origin/emacs-26
The following commit was skipped:

18b2359 * src/keyboard.c: Make xterm-mouse clicks on mode-line work
2017-11-20 13:08:35 -05:00
Glenn Morris
33bfbfee7e Merge from origin/emacs-26
6e6bf60 Don't let delete_frame select a tooltip frame (Bug#27647)
e9dd580 Filter obtrusive events in help-read-key-sequence.
90075e8 Fix symlink flag in tramp-gvfs-handle-file-attributes
c355529 Fix bug in tramp-handle-file-truename
4c21d04 Fix a typo in doc string of electric-indent-functions-without...
319c2de Avoid assertion violations in echo_area_display
63c7733 ; * lisp/ido.el (ido-find-alternate-file): Doc fix.  (Bug#29278)
cbd319a Fix case-folding in Occur
29520b0 Fix quick-calc in C mode with hex values
3e80124 Improve documentation of dired-next/prev-marked-file
90add18 Prevent aborts in line-move-visual
648c128 More fixes in src/.gdbinit
104f3e5 Document how to enter whitespace when using grep-read-files
2017-11-20 13:08:35 -05:00
Glenn Morris
7cf41d8088 ; Merge from origin/emacs-26
The following commit was skipped:

d8e0951 ; Remove Tramp test instrumentation.  Do not merge
2017-11-20 13:08:34 -05:00
Glenn Morris
93a4953463 Merge from origin/emacs-26
42c8768 Fix .gdbinit following lisp.h changes
720322a ; Spelling fixes
617c556 * lisp/simple.el (shell-command): Doc fixes.
1faade8 Fix marker adjustment for undo (Bug#29118)
2017-11-20 13:08:34 -05:00
Stefan Monnier
7da1e9cd18 * lisp/erc/erc-services.el: Use lexical-binding 2017-11-20 13:05:28 -05:00
Olaf Rogalsky
51a5ccbe85 * src/keyboard.c: Make xterm-mouse clicks on mode-line work
Copyright-paperwork-exempt: yes

(read_key_sequence): Recompute first_event
after replay_sequence, since it might have changed (bug#29104).
2017-11-20 12:47:39 -05:00
Stefan Monnier
eb335c97b2 * src/keyboard.c: Undo last change, meant for master only 2017-11-20 12:45:20 -05:00
Michael Albinus
fc5b8f1055 Fix Bug#29149
* lisp/net/tramp.el (tramp-drop-volume-letter): Handle also
backup file names.
(tramp-handle-find-backup-file-name):
Call `tramp-drop-volume-letter' on the results.  (Bug#29149)
2017-11-20 14:28:22 +01:00
Michael Albinus
5622b2e263 Merge branch 'emacs-26' of git.sv.gnu.org:/srv/git/emacs into emacs-26 2017-11-20 14:16:28 +01:00
Martin Rudalics
4da87999c2 Fix misbehavior when drawing three-pixel high horizontal dividers (Bug#29353)
* src/xterm.c (x_draw_window_divider):
* src/w32term.c (w32_draw_window_divider): Fix misbehavior when
drawing three-pixel high horizontal dividers (Bug#29353).

The misbehavior was noted by Keith David Bershatsky and analyzed by Alan
Third.
2017-11-20 09:18:59 +01:00
Mike Kupfer
1b082c886c MH-E: don't automatically download external-body parts
* lisp/mh-e/mh-mime.el (mh-mime-display-single): Use
mm-automatic-display-p to verify that a part should be
displayed before doing the inline checks (SF#475).
2017-11-19 10:34:58 -08:00
Eli Zaretskii
069f978484 ; * lisp/emacs-lisp/byte-run.el: Fix a typo in a comment. 2017-11-19 17:51:08 +02:00
Johan Bockgård
369c67a6bb copyright.el: Avoid inadvertent point motion
* lisp/emacs-lisp/copyright.el (copyright-update-year): Enlarge the
scope of save-excursion. Reported in:
https://lists.gnu.org/archive/html/emacs-devel/2017-04/msg00271.html
2017-11-19 16:29:14 +01:00
Michael Albinus
504a56cf32 ; Fix last commit 2017-11-19 12:50:05 +01:00
Michael Albinus
a34e44e8ee ; Fix last commit
* test/lisp/net/tramp-tests.el (tramp-test24-file-acl):
Check for local ACL support.  (Bug#29291)
2017-11-19 12:22:30 +01:00
Michael Albinus
f41bcae3e5 ; * test/lisp/net/tramp-tests.el (tramp-test24-file-acl):
Remove test instrumentation.
2017-11-19 12:18:37 +01:00
Michael Albinus
a8892b4e62 Further fix for Bug#29291
* test/lisp/net/tramp-tests.el (tramp-test24-file-acl):
Check for local ACL support.  (Bug#29291)
2017-11-19 12:11:18 +01:00
Alan Third
d14923b4d4 Fix divider frame params on NS (bug#29352)
* src/nsfns.m (Fx_create_frame): Set right-divider-width and
bottom-divider-width parameters.
2017-11-19 11:02:56 +00:00
Michael Albinus
ecda09c22d ; * test/lisp/net/tramp-tests.el (tramp-test24-file-acl): More instrumentation 2017-11-19 11:06:19 +01:00
Vibhav Pant
afbd8140e4
lisp/erc/erc-services.el: Fix arg eval order of inline functions.
* lisp/erc/erc-services.el (erc-nickserv-alist-sender,
  erc-nickserv-alist-regexp, erc-nickserv-alist-nickserv,
  erc-nickserv-alist-ident-keyword, erc-nickserv-alist-use-nick-p,
  erc-nickserv-alist-ident-command,
  erc-nickserv-alist-identified-regexp): Use `inline-letevals' to make
  sure that `network' is evaluated first and independently of `entry'.
2017-11-19 15:08:17 +05:30
Paul Eggert
b2518ac750 Spelling fixes
* lisp/help-fns.el (help-fns--analyze-function):
Rename from help-fns--analyse-function.
All uses changed.
2017-11-19 00:21:09 -08:00
Olaf Rogalsky
18b2359411 * src/keyboard.c: Make xterm-mouse clicks on mode-line work
(read_key_sequence): Recompute first_event
after replay_sequence, since it might have changed (bug#29104).
2017-11-18 23:23:58 -05:00
Martin Rudalics
6e6bf60eab Don't let delete_frame select a tooltip frame (Bug#27647)
* src/frame.c (delete_frame): Don't select a tooltip
frame. (Bug#27647)
2017-11-18 19:19:32 +01:00
Eric Abrahamsen
d547f417c8 Further fixes to writing of object names
Pursuant to 1ef6d2b0e6

* lisp/emacs-lisp/eieio.el (object-write): Only write the name in the
  comment when the comment's also present. Newline should only be
  printed if the name is.
2017-11-18 10:18:53 -08:00
Alan Mackenzie
e9dd580cc8 Filter obtrusive events in help-read-key-sequence.
This fixes most of bug #29272.

* lisp/help.el (help-read-key-sequence): After a mouse event, pause for 0.01s,
discarding any events (such as <help-echo>) received in this time, before
polling for the double-click (etc.) events which may follow.  This fixes the
infinite loop which occurred whwn <help-echo> events triggered a sit-for
whilst handling menu events.
2017-11-18 14:52:39 +00:00
Michael Albinus
90075e8e1e Fix symlink flag in tramp-gvfs-handle-file-attributes
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-attributes):
Set proper symlink file mode flag.
2017-11-18 15:08:32 +01:00
Vibhav Pant
52cc9a57f4
Reimplement inline functions in ERC with define-inline.
* lisp/erc/erc-backend.el: (erc-server-reconnect-p): Reimplement using
  define-inline.

* lisp/erc/erc-dcc.el: (erc-dcc-unquote-filename, erc-dcc-get-parent):
  Reimplement using define-inline.

* lisp/erc/erc-services.el: (erc-nickserv-alist-sender,
  erc-nickserv-alist-regexp, erc-nickserv-alist-nickserv,
  erc-nickserv-alist-ident-keyword, erc-nickserv-alist-use-nick-p,
  erc-nickserv-alist-ident-command,
  erc-nickserv-alist-identified-regexp): Reimplement using define-inline.

* lisp/erc/erc.el: (erc-get-channel-user, erc-get-server-user,
  erc-add-server-user, erc-remove-server-user, erc-channel-user-owner-p,
  erc-channel-user-admin-p, erc-channel-user-op-p,
  erc-channel-user-halfop-p, erc-channel-user-voice-p, erc-log):
  Reimplement using define-inline.
2017-11-18 19:10:08 +05:30
Michael Albinus
c355529bae Fix bug in tramp-handle-file-truename
* lisp/net/tramp.el (tramp-handle-file-truename): Expand localname.

* test/lisp/net/tramp-tests.el (tramp-test21-file-links): Check also
relative symbolic links.
2017-11-18 14:24:03 +01:00
Eli Zaretskii
4c21d04057 Fix a typo in doc string of electric-indent-functions-without-reindent
* lisp/electric.el (electric-indent-functions-without-reindent):
Doc fix.  (Bug#29304)
2017-11-18 13:46:13 +02:00
Eli Zaretskii
319c2de9da Avoid assertion violations in echo_area_display
* src/xdisp.c (echo_area_display): Don't try redisplaying the echo
area if the selected-frame's mini-window is nil.  (Bug#27647)
2017-11-18 13:41:03 +02:00
Eli Zaretskii
63c773399e ; * lisp/ido.el (ido-find-alternate-file): Doc fix. (Bug#29278) 2017-11-18 13:14:52 +02:00
Eli Zaretskii
cbd319a351 Fix case-folding in Occur
* lisp/replace.el (occur-engine): Bind case-fold-search in each
buffer we search.  (Bug#29254)
2017-11-18 13:06:22 +02:00
OGAWA Hirofumi
29520b083f Fix quick-calc in C mode with hex values
* lisp/calc/calc-aent.el (math-read-token): Make sure the match
against "0[xX][0-9a-fA-F]+" is found at math-exp-pos.  See
http://lists.gnu.org/archive/html/emacs-devel/2017-11/msg00174.html
for the details.

Copyright-paperwork-exempt: yes
2017-11-18 12:29:41 +02:00
Eli Zaretskii
3e80124098 Improve documentation of dired-next/prev-marked-file
* lisp/dired.el (dired-next-marked-file, dired-prev-marked-file):
Doc fixes.  (Bug#29340)
2017-11-18 11:42:06 +02:00
Phillip Lord
6b8e9b74bd Rebrand Uninstaller
* admin/nt/dist-build/emacs.nsi: Add MUI_UNICON
2017-11-17 23:03:03 +00:00
Phillip Lord
d20eab9831 Fix install location for windows installer 2017-11-17 23:03:03 +00:00
Eli Zaretskii
90add182a4 Prevent aborts in line-move-visual
* src/indent.c (line_number_display_width): Avoid assertion
violations in init_iterator when the window's buffer was
temporarily switched without updating window-start.  (Bug#29326)
2017-11-17 21:37:04 +02:00
Eli Zaretskii
648c128b5f More fixes in src/.gdbinit
* src/.gdbinit (pwinx): Update to match 'struct window'.
(pcursorx): Use "." instead of "->" because the argument is a
struct, not a pointer.
2017-11-17 17:41:23 +02:00
Robert Pluim
104f3e51fe Document how to enter whitespace when using grep-read-files
* lisp/progmodes/grep.el (lgrep, rgrep, grep-read-files): Explain
how to enter whitespace when using grep-read-files.  (Bug#29303)
* lisp/progmodes/project.el (project-find-regexp): Likewise.
* lisp/vc/vc-git.el (vc-git-grep): Likewise.
2017-11-17 15:39:02 +02:00
Michael Albinus
345c7d9c7b ; * test/lisp/net/tramp-tests.el (tramp-test24-file-acl): Instrument test. 2017-11-17 13:38:52 +01:00
Michael Albinus
d8e0951d5f ; Remove Tramp test instrumentation. Do not merge
* test/Makefile.in: Remove instrumentation for tramp-tests.

* test/lisp/net/tramp-tests.el (tramp-test41-asynchronous-requests):
Remove instrumentation.
2017-11-17 13:14:58 +01:00
Eli Zaretskii
42c8768134 Fix .gdbinit following lisp.h changes
* src/.gdbinit (xsymname, pwinx, pgx, xbuffer, xcar, xcdr, xlist)
(xprintstr): Adapt to latest changes in Lisp object C structures.
(Bug#29332)
2017-11-17 12:08:06 +02:00
Paul Eggert
720322aab8 ; Spelling fixes 2017-11-16 00:01:00 -08:00
Phillip Lord
bc462efec8 Rebrand Windows installer
* admin/nt/dist-build/emacs.nsi: Use two icons.
 * etc/images/splash.bmp,etc/images/icons/hicolor/scalable/apps/emacs.ico:
   New files.
2017-11-15 22:53:31 +00:00
Charles A. Roelli
617c556813 * lisp/simple.el (shell-command): Doc fixes. 2017-11-15 20:35:18 +01:00
Noam Postavsky
1faade8821 Fix marker adjustment for undo (Bug#29118)
* lisp/simple.el (primitive-undo): Compare marker against absolute
value of POS, because the sign of POS is irrelevant to markers.
2017-11-15 07:05:35 -05:00