1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-31 09:20:54 -08:00
Commit graph

123284 commits

Author SHA1 Message Date
Alan Modra
856f4eaba8 ELF unexec: Tidy code
Separate out some of the more mechanical changes so following patches
are smaller.

* unexelf.c (unexec): Rearrange initialisation of program
header vars.  Use pointer vars in loops rather than indexing
section header array via macros.  Simplify _OBJC_ sym code
and reloc handling code.
2015-11-08 10:00:59 -08:00
Alan Modra
0bcd08ef05 ELF unexec: Correct section header index
First a small fix.  The code incorrectly uses "NEW_SECTION_H (n)" when
it should have been using "NEW_SECTION_H (nn)" to find the name of the
section currently being processed.  Of course, before the bss
sections, n and nn have the same value, so this doesn't matter except
in the case of .sbss.  For .sbss this probably meant .bss (most likely
the next section) was copied from memory.  A later patch removes the
bogus .sbss handling anyway.

* unexelf.c (unexec): Use correct index to look up names.
2015-11-08 10:00:59 -08:00
Michael Albinus
82c1b368a2 Fix Bug#21841
* lisp/filenotify.el (file-notify--rm-descriptor):
Use `descriptor' instead of computing its value.
(file-notify--descriptor): Additional argument FILE.  Adapt all callees.
(file-notify-rm-watch): Use `descriptor' when calling file name handler.
(Bug#21841)
2015-11-08 15:22:09 +01:00
Glenn Morris
d5f110e369 ; Auto-commit of ChangeLog files. 2015-11-08 06:23:33 -05:00
Paul Eggert
8a8613bcf4 Prefer xpalloc to doubling buffers by hand
* src/lread.c (grow_read_buffer): New function, which uses xpalloc.
(read1): Use it for simplicity.
* src/macros.c (store_kbd_macro_char):
* src/minibuf.c (read_minibuf_noninteractive):
* src/term.c (encode_terminal_code):
* src/xrdb.c (magic_db):
Prefer xpalloc to growing buffers by hand.
This doesn’t fix any bugs, but simplifies the code a bit.
2015-11-07 23:52:57 -08:00
Paul Eggert
6ea4ff5a36 Merge from gnulib
This incorporates:
2015-11-05 timespec-sub: fix overflow bug; add tests
2015-11-04 intprops: revise _WRAPV macros, revert _OVERFLOW
2015-11-03 intprops: add parentheses
* lib/intprops.h, lib/timespec-add.c, lib/timespec-sub.c:
Copy from gnulib.
2015-11-07 23:37:07 -08:00
Eli Zaretskii
b9acb9502f ;* test/automated/abbrev-tests.el: Fix a typo in a comment 2015-11-08 05:43:00 +02:00
David Reitter
35cd518145 Provide NS notification objects where required to eliminate warnings
* nsterm.m (windowDidResize:, toggleFullScreen:):
Call notification functions with notification objects
as per delegate APIs.
2015-11-07 20:46:58 -05:00
Eli Zaretskii
ea88d874a4 Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2015-11-07 20:05:43 +02:00
Noam Postavsky
76be8f28eb Add test for bug #21824
* test/automated/buffer-tests.el: New file.
(overlay-modification-hooks-message-other-buf): New test.
2015-11-07 20:04:00 +02:00
Kelvin White
044991f6c6 Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs 2015-11-07 13:03:03 -05:00
Kelvin White
ae24d821fa erc-pcomplete.el (pcomplete-erc-nicks): Fix bug#18771 2015-11-07 13:02:26 -05:00
l3thal
7a187017d0 erc-pcomplete.el (pcomplete-erc-nicks): Fix bug#18771 2015-11-07 12:54:58 -05:00
Thomas Fitzsimmons
88733e67df ; ChangeLog.2: Fix formatting of ntlm.el 2.0.0 entry 2015-11-07 09:10:20 -05:00
Thomas Fitzsimmons
2dc91e65b4 ; ChangeLog.2: Fix entry for soap-client 3.0.0 sync 2015-11-07 08:59:20 -05:00
Eli Zaretskii
0ea647d80d ; * lisp/abbrev.el (copy-abbrev-table): Remove forgotten debug code. 2015-11-07 15:50:40 +02:00
David Reitter
53def55b43 Ignore fullscreen exit notifications on NS when frame is dead
* nsterm.m (windowDidResize:,windowWillExitFullScreen:)
  (windowDidExitFullScreen:): Return if frame is dead.
  These functions may be called when a fullscreen frame
  is closed; they are called before, not after.

May address Bug#21428.
2015-11-07 08:40:13 -05:00
Eli Zaretskii
fc61ea4fd7 Speed up lookup in redisplay--variables
* lisp/frame.el (redisplay--variables): Make it a hash-table.

* src/xdisp.c (maybe_set_redisplay): Access redisplay--variables
as a hash-table.  This speeds up this function by an order of
magnitude: where previously a setq was slowed down by 100% by
introducing the maybe_set_redisplay test, it is now only 5%
slower.
(syms_of_xdisp) <redisplay--variables>: Doc fix.
2015-11-07 15:32:45 +02:00
Artur Malabarba
b74c8847e8 * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Fix a bug
The defsubst was being created as:
    (cl-defsubst name (args) ("DOC") ...)

* test/automated/cl-lib-tests.el (cl-lib-struct-constructors): Add test
2015-11-07 13:55:16 +00:00
Mihai Olteanu
e21e3b6ba9 Update doc string of hexl-mode
* lisp/hexl.el (hexl-mode): Doc fix.  (Bug#21800)

Copyright-paperwork-exempt: yes
2015-11-07 14:35:10 +02:00
Eli Zaretskii
bede518c38 Fix error in copy-abbrev-table
* lisp/abbrev.el (define-abbrev): Don't erase the :abbrev-table-modiff
property of the abbrev-table.  (Bug#21828)

* test/automated/abbrev-tests.el: New file.
2015-11-07 13:32:33 +02:00
Michael Albinus
b29be62888 Add test to auto-revert-tests.el for Bug#21841
* test/automated/auto-revert-tests.el
(auto-revert-test01-auto-revert-several-files): New test.
(auto-revert-test02-auto-revert-tail-mode)
(auto-revert-test03-auto-revert-mode-dired): Rename them.
2015-11-07 11:05:03 +01:00
Martin Rudalics
07178f43e1 * doc/lispref/windows.texi (Coordinates and Windows): Fix typo. 2015-11-07 09:19:03 +01:00
Martin Rudalics
e5a98644f8 In x_consider_frame_title don't set title of tooltip frames
* src/xdisp.c (x_consider_frame_title): Return immediately for
tooltip frames to avoid displaying empty tooltips.
2015-11-07 08:51:28 +01:00
Anders Lindgren
60959975b1 Fixed NextStep fullscreen problem (bug#21770).
* nsterm.m (ns_constrain_all_frames): Don't constrain fullscreen
frames.
2015-11-06 22:39:02 +01:00
Eli Zaretskii
19e09cfab6 Ensure redisplay after evaluation
* lisp/progmodes/elisp-mode.el (elisp--eval-last-sexp): Revert
last change.
* lisp/frame.el (redisplay--variables): Populate the
redisplay--variables list.
* src/xdisp.c (maybe_set_redisplay): New function.
(syms_of_xdisp) <redisplay--variables>: New variable.
* src/window.h (maybe_set_redisplay): Declare prototype.
* src/data.c (set_internal): Call maybe_set_redisplay.  (Bug#21835)
2015-11-06 21:21:52 +02:00
Artur Malabarba
8025fdbbea * test/automated/subr-tests.el (subr-test-when): Fix again 2015-11-06 16:18:32 +00:00
Eli Zaretskii
564d811725 Don't invoke overlay modification hooks in wrong buffer
* src/buffer.c (report_overlay_modification): When called with
AFTER non-zero, don't invoke overlay modification hooks if the
buffer recorded in last_overlay_modification_hooks is different
from the current buffer.  (Bug#21824)
2015-11-06 17:19:39 +02:00
Juanma Barranquero
3172a6ac39 * admin/notes/repo: Fix a few obsolete references to Bazaar 2015-11-06 14:08:12 +01:00
Artur Malabarba
9b912623ad * test/automated/subr-tests.el (subr-test-when): Fix test 2015-11-06 11:18:23 +00:00
Martin Rudalics
40014fe9fd Avoid division by zero crash observed by Yuan MEI.
See http://lists.gnu.org/archive/html/emacs-devel/2015-11/msg00194.html.

* src/dispnew.c (required_matrix_height, required_matrix_width):
Avoid division by zero.
* src/xterm.c (x_term_init): Init dpyinfo->smallest_font_height and
dpyinfo->smallest_char_width to 1.
2015-11-06 12:15:18 +01:00
Eli Zaretskii
29c360ee1c Ensure redisplay after "C-x C-e"
* lisp/progmodes/elisp-mode.el (elisp--eval-last-sexp): Make sure
redisplay happens to account for any side effects of the evaluated
sexp.  (Bug#21835)
2015-11-06 11:28:46 +02:00
Eli Zaretskii
2b316c0581 ; * CONTRIBUTE: Add section about the bug tracker
* CONTRIBUTE: Move less important sections after the more
important ones.  Add section about the bug tracker.
2015-11-06 10:56:59 +02:00
Michael Albinus
f353f53b64 Skip some file notification tests for cygwin
* test/automated/file-notify-tests.el (file-notify--test-with-events):
Remove argument TIMEOUT.  Adapt all callees.
(file-notify-test02-events, file-notify-test04-file-validity):
Skip for cygwin.  (Bug#21804)
2015-11-06 07:33:50 +01:00
Stephen Leake
267e0e80e1 * lisp/progmodes/xref.el: require semantic/symref during compilation. 2015-11-06 05:15:56 +02:00
Daiki Ueno
ddd0eada66 Suppress redundant Pinentry startup messages
* lisp/net/pinentry.el (pinentry-start): Add optional QUIET
argument.
* lisp/epg.el: Declare `pinentry-start'.
(epg--start): Call `pinentry-start' with QUIET argument set.
2015-11-06 10:56:49 +09:00
Xue Fuqiao
8311d3929a * doc/emacs/ack.texi (Acknowledgments): Updates. 2015-11-06 07:30:32 +08:00
Juanma Barranquero
7afaf0c0de * test/automated/elisp-mode-test.el: Silence some run-time warnings
(xref-elisp-deftest): Bind `find-file-suppress-same-file-warnings' to t.
2015-11-05 22:47:52 +01:00
Tassilo Horn
ddb8069d9b Add prettify symbol for \times
* lisp/textmodes/tex-mode.el (tex--prettify-symbols-alist): Add
prettification support for \times.
2015-11-05 21:12:37 +01:00
Juanma Barranquero
0880d5f6e1 * test/automated/process-tests.el: Skip tests when bash is not available
(process-test-sentinel-accept-process-output)
(process-test-sentinel-sit-for): skip-unless bash executable found.
2015-11-05 19:42:47 +01:00
Eli Zaretskii
3be53aaed1 Add test for bug #21831
* test/automated/process-tests.el
(start-process-should-not-modify-arguments): New test.  (Bug#21831)
Suggested by Nicolas Richard <youngfrog@members.fsf.org>
2015-11-05 20:12:19 +02:00
Glenn Morris
6540f6c586 ; Auto-commit of loaddefs files. 2015-11-05 06:17:56 -05:00
Juanma Barranquero
c9def83b49 ; * test/automated/elisp-mode-tests.el: Fix typo. 2015-11-05 12:01:25 +01:00
Stefan Monnier
54e2ed97bf * lisp/emacs-lisp/eieio-compat.el: Typo caught by tests
(eieio--generic-static-object-generalizer): Fix typo.
* test/automated/eieio-tests.el: Byte-compile it again.
It looks like the underlying cause of bug#17852 was fixed in the mean time.
2015-11-04 09:42:20 -05:00
Artur Malabarba
39355bc045 Revert "* lisp/subr.el (when): Use `macroexp-progn'"
This reverts commit 8e843831ea.
It breaks bootstrapping (duh).
2015-11-04 14:22:27 +00:00
Artur Malabarba
2fef1fc823 * lisp/files.el (report-errors): Obsolete
(normal-mode, hack-local-variables, dir-locals-find-file): Use
`with-demoted-errors' instead.
2015-11-04 13:00:04 +00:00
Artur Malabarba
8e843831ea * lisp/subr.el (when): Use `macroexp-progn'
* test/automated/subr-tests.el (subr-test-when): New test
2015-11-04 12:56:25 +00:00
Juanma Barranquero
587b232837 * lisp/progmodes/xref.el: Doc fixes
(xref-make-file-location, xref-make-buffer-location, xref-make)
(xref-make-bogus-location, xref-make-match): Add cross-references.
(xref--insert-xrefs): Fix typo in docstring.
2015-11-04 10:07:25 +01:00
Anders Lindgren
411b516d65 Render fringe bitmaps correctly on NextStep (bug#21301).
The fringe bitmaps were inverted, the background was not transparent,
the image data was horizontally mirrored, and periodic fringe bitmaps
were not supported.

* nsimage.m ([EmacsImage initFromXBM:width:height:fg:bg:]): When
both background and foreground colors are 0, set the background
alpha channel to 0 (making the background transparent).  When
copying the image data, do this from the most significant bit
(leftmost) to the least (rightmost), to avoid mirroring.
* nsterm.m (ns_draw_fringe_bitmap): Don't invert the image bits. Add
support for periodic images (e.g. the empty line indicator).
2015-11-04 06:50:19 +01:00
Michael Heerdegen
335cb1ee15 * lisp/emacs-lisp/pcase.el (pcase): Tweak docstring. 2015-11-03 23:59:42 +01:00