1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-11 16:08:13 +00:00
Commit Graph

131062 Commits

Author SHA1 Message Date
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
Charles A. Roelli
11db253c08 Remove incorrect NEWS item about VC state indicator (Bug#28817)
* etc/NEWS (VC and related modes): Remove news item about the VC
state indicator.  This should have been done with commit 7882dc6
of 2016-03-06 'Revert "Use colors in the VC mode lines"'.
2017-11-21 20:37:19 +01:00
Glenn Morris
2fdc01c036 * lisp/emacs-lisp/byte-run.el (defsubst): Doc fix. 2017-11-21 13:28:00 -05:00
Alan Mackenzie
735c8b516e Make c-defun-name analyze more thoroughly a function type which is a struct
This fixes bug #29293.

* lisp/progmodes/cc-cmds.el (c-defun-name): When a struct (etc.) type is
encountered, check whether it is the return type of a function rather than a
declaration of the struct itself.  Similarly adapt the cond arm which deals
with functions properly to recognize struct return types.
2017-11-21 18:06:11 +00:00
Glenn Morris
92f0c4cd56 Avoid bogus abbreviated file names if HOME changes
* lisp/files.el (abbreviate-file-name):
If HOME changes, ignore `abbreviated-home-dir'.  (Bug#19657#20)
* test/lisp/files-tests.el (files-test-abbreviated-home-dir): New.
2017-11-21 12:27:36 -05:00
Glenn Morris
8d450453fa * lisp/emacs-lisp/byte-run.el (inline): Give it a doc. 2017-11-21 08:53:31 -08:00
Jay Kamat
37a3b4ea40 Fix erc keep-place module with new defaults (Bug#29111)
* lisp/erc/erc-goodies.el (erc-keep-place): Allow erc
keep-place to continue working with
switch-to-buffer-preserve-window-point set to t, the new default.

Copyright-paperwork-exempt: yes
2017-11-21 08:31:40 +01:00
Alan Third
6c312605bf Add window divider faces to NS (bug#29353)
* src/nsterm.m (ns_draw_window_divider): Use
window-divider-first-pixel and window-divider-last-pixel faces.
2017-11-20 20:38:05 +00: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
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
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
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
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
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
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
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
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
Martin Rudalics
796c7f7a94 ; Fix last fix of 'mouse-drag-and-drop-region'
* lisp/mouse.el (mouse-drag-and-drop-region): Use 'car-safe'
instead of 'car' to ignore 'select-window' events.  Thanks to
Stefan Monnier for spotting this.
2017-11-14 18:36:12 +01:00
Daniel Pittman
40d41dd497 Fix Bug#28139
* tramp-sh.el: Set TERM and INSIDE_EMACS environment earlier.
(tramp-remote-process-environment): Remove TERM and INSIDE_EMACS.
(tramp-remote-process-environment): Document their special handling.
(tramp-open-shell): Set TERM and INSIDE_EMACS prior to starting the
initial remote shell, so that it is also aware of the environment
in which it is operating.  (Bug#28139)
2017-11-14 11:38:30 +01:00
Michael Albinus
a5ec644caa Fix Bug#29291
* test/lisp/net/tramp-tests.el (tramp-test24-file-acl):
Preserve permissions when copying.  (Bug#29291)
2017-11-14 10:38:41 +01:00
Michael Albinus
8b900e5ba2 Fix Bug#2928
* test/lisp/net/tramp-tests.el (tramp-test25-file-selinux):
Enhance test.  (Bug#29287)
(tramp-test44-delay-load): Fix for older Emacsen.
2017-11-14 10:21:55 +01:00
Martin Rudalics
ff7bd84b23 Make 'mouse-drag-and-drop-region' work with 'mouse-autoselect-window' non-nil
* lisp/mouse.el (mouse-drag-and-drop-region): Ignore
'select-window' events to make it work with
'mouse-autoselect-window'.
2017-11-14 10:09:24 +01:00
Alexander Gramiak
0491de8dad * etc/PROBLEMS: Remove fixed xterm-mouse-mode problems
See: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=29143#26
2017-11-14 00:00:18 -06:00
Katsumi Yamaoka
caa39f495c Fix cookie handling (bug#29282)
* lisp/url/url-cookie.el (url-cookie-handle-set-cookie):
Regard a Set-Cookie header as it contains a single cookie;
prefer Max-Age to Expires and convert it to Expires;
remove support for old time string styles (bug#29282).
2017-11-13 23:56:26 +00:00
Gemini Lasswell
93304e3115 Improve documentation of Edebug and macros
* doc/lispref/edebug.texi (Instrumenting Macro Calls): Improve
discussion of when it might be necessary to find and evaluate macro
specifications before instrumenting.
(Specification List): Clarify what "defining form" means to Edebug
and when 'def-form' or 'def-body' should be used instead of 'form'
or 'body'.
2017-11-13 13:22:39 -08:00
Paul Eggert
79108894db Port to IBM xlc 12.01
Work around a compiler bug by using a separate enum for alignment.
* src/alloc.c (roundup_size): Declare in a separate enum.
2017-11-13 10:16:52 -08:00
Paul Eggert
d14956099d Simplify by removing HAVE_STRUCT_ATTRIBUTE_ALIGNED
* configure.ac (HAVE_STRUCT_ATTRIBUTE_ALIGNED): Remove.  No longer
needed, since we no longer rely on __attribute__ ((aligned (8))).
All uses removed.
* src/emacs-module.c (HAVE_STRUCT_ATTRIBUTE_ALIGNED): Remove.
(lisp_to_value): Simplify now that we no longer need to worry
whether HAVE_STRUCT_ATTRIBUTE_ALIGNED is false.
2017-11-13 10:16:52 -08:00
Paul Eggert
b1573a97e1 Use alignas to fix GCALIGN-related bugs
Use alignas and unions to specify alignments of objects needing
addresses that are at least a multiple of GCALIGNMENT.  Using
these standard C facilities should be safer than relying on ad hoc
and poorly-understood features like GCC’s __attribute__
((aligned (N))), the root cause for recent porting bugs like
Bug#29040.  The alignas macro was standardized by C11 and Gnulib
supports alignas for pre-C11 platforms.  I have tested this on Sun
Studio 12 sparc (2007) and GCC 4.4.7 x86-64 (2012) as well as on
more recent platforms like GCC 7.2.1 (2017) on Fedora 26 (both
x86-64 and x86).
* lib-src/make-docfile.c (close_emacs_globals): lispsym is now
just an array of struct Lisp_Symbol, since struct Lisp_Symbol is
now properly aligned.  All uses changed.
* src/alloc.c (NEXT_FREE_LISP_STRING): Just use the new u.next
member; this is simpler and safer than casting a pointer that
might not be aligned properly.
(aligned_Lisp_Symbol): Remove.  No longer needed, now that struct
Lisp_Symbol is aligned properly.  All uses replaced with struct
Lisp_Symbol.
* src/lisp.h (GCALIGNED): Remove, as it does not work as expected:
it can cause the natural alignment to be ignored.  All uses
replaced by unions with a ‘char alignas (GCALIGNMENT)’ member as
described below.
(struct Lisp_Symbol, struct Lisp_Cons, struct Lisp_String):
Change definition from ‘struct TAG { MEMBERS };’ to
‘struct TAG { union { struct { MEMBERS } s; char alignas
(GCALIGNMENT) gcaligned; } u; };’.  This guarantees ‘struct TAG’
to have an alignment that at least max (GCALIGNMENT, N) where N is
its old alignment.  All uses like ‘PTR->MEMBER’ changed to
‘PTR->u.s.MEMBER’; these uses were supposed to be mostly private
anyway.  Verify that the resulting ‘struct TAG’ is properly
aligned for Emacs.
(union vectorlike_header): New member ‘gcaligned’ to guarantee
that this type, and its containing types like ‘struct Lisp_Subr’,
‘struct buffer’ and ‘struct thread_state’, are all properly
aligned for Emacs.
(struct Lisp_String): New union member ‘next’, for the benefit
of NEXT_FREE_LISP_STRING.
(union Aligned_Cons, union Aligned_String): Remove.  All uses
replaced by struct Lisp_Cons and struct Lisp_String, since they
are now properly aligned.
(USE_STACK_CONS, USE_STACK_STRING): Simplify now that we can
assume struct Lisp_Cons and struct Lisp_String are properly
aligned.
2017-11-13 10:16:51 -08:00