1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-03 10:31:37 -08:00
Commit graph

115831 commits

Author SHA1 Message Date
Glenn Morris
6f287c898a ChangeLog fixes
Merged entries get today's date.
May as well combine consecutive separate entries by same author into one.
Backported entries should not appear twice.
2014-04-07 17:19:31 -04:00
Daniel Colascione
7e31acf6b8 Merge from emacs-24; up to 2014-04-01T20:18:12Z!eggert@cs.ucla.edu 2014-04-07 13:54:16 -07:00
Paul Eggert
608a4502b9 * alloc.c: Simplify by removing use of HAVE_EXECINFO_H.
We have a substitute execinfo.h on hosts that lack it.
(suspicious_free_history): Make it EXTERNALLY_VISIBLE so it
isn't optimized away.
2014-04-07 10:52:38 -07:00
Stefan Monnier
e3b838807b * src/alloc.c: Keep track of symbols referenced from pure space (bug#17168).
(symbol_block_pinned): New var.
(Fmake_symbol): Initialize `pinned'.
(purecopy): New function, extracted from Fpurecopy.  Mark symbols as
pinned and signal an error for un-purifiable objects.
(pure_cons): Use it.
(Fpurecopy): Use it, except for objects that can't be purified.
(mark_pinned_symbols): New function.
(Fgarbage_collect): Use it.
(gc_sweep): Remove hack made unnecessary.
* src/lisp.h (struct Lisp_Symbol): New bitfield `pinned'.
2014-04-07 12:08:46 -04:00
Glenn Morris
5da21a7f8a Auto-commit of loaddefs files. 2014-04-07 06:21:22 -04:00
João Távora
190f899aed Improve on previous quote autopairing change
Backported from trunk 2014-04-04T23:31:02Z!joaotavora@gmail.com

* lisp/elec-pair.el:
(electric-pair--syntax-ppss): When inside comments parse from
comment beginning.
(electric-pair--balance-info): Fix typo in comment.
(electric-pair--in-unterminated-string-p): Delete.
(electric-pair--unbalanced-strings-p): New function.
(electric-pair-string-bound-function): New var.
(electric-pair-inhibit-if-helps-balance): Decide quote pairing
according to `electric-pair--in-unterminated-string-p'

* test/automated/electric-tests.el (define-electric-pair-test): Don't
overtest..
(inhibit-in-mismatched-string-inside-ruby-comments): New test.
(inhibit-in-mismatched-string-inside-c-comments): New test.
2014-04-07 08:29:50 +01:00
João Távora
528c33b528 Inhibit quote autopairing more frequently
Backported from trunk 2014-04-02T09:59:06Z!joaotavora@gmail.com

* lisp/elec-pair.el (electric-pair-inhibit-if-helps-balance): Inhibit
quote pairing if point-max is inside an unterminated string.
(electric-pair--looking-at-unterminated-string-p):
Delete.
(electric-pair--in-unterminated-string-p): New function.

* test/automated/electric-tests.el (inhibit-if-strings-mismatched):
New test, change from `inhibit-only-of-next-is-mismatched'.
2014-04-07 08:24:03 +01:00
Glenn Morris
a9c921e66b * lisp/shell.el (shell-directory-tracker): Go back to just ignoring failures.
Fixes: debbugs:17159
2014-04-06 18:27:32 -07:00
Juanma Barranquero
9b01756328 lisp/ChangeLog, src/ChangeLog: Fix typos. 2014-04-07 02:51:52 +02:00
Glenn Morris
79ebc53034 ChangeLog fix 2014-04-06 17:04:00 -07:00
João Távora
be41113814 Fix electric-pair-delete-adjacent-pairs in modes binding backspace.
* lisp/elec-pair.el (electric-pair-backward-delete-char): Delete.
(electric-pair-backward-delete-char-untabify): Delete.
(electric-pair-mode-map): Bind backspace to a menu item filtering
a new `electric-pair-delete-pair' command.
(electric-pair-delete-pair): New command.

Fixes: debbugs:16981
2014-04-07 00:37:17 +01:00
João Távora
7aecc2f6ca Fix triple-quoting electricity in python-mode
* lisp/progmodes/python.el (python-electric-pair-string-delimiter): Fix
triple-quoting electricity. 

* test/automated/python-tests.el (python-triple-quote-pairing): New test.
(python-syntax-after-python-backspace): New test.

Fixes: debbugs:17192
2014-04-07 00:23:45 +01:00
João Távora
89f20f76d8 Fix electric-pair-skip-whitespace with quotes in text-mode
* lisp/elec-pair.el (electric-pair-post-self-insert-function): Don't
skip whitespace for quote syntax when `electric-pair-text-pairs'
and `electric-pair-pairs' were used.

* test/automated/electric-tests.el (electric-pair-define-test-form):
More readable test docstrings.
(whitespace-skipping-for-quotes-not-ouside)
(whitespace-skipping-for-quotes-only-inside)
(whitespace-skipping-not-without-proper-syntax):

Fixes: debbugs:17183
2014-04-07 00:09:19 +01:00
Stefan Monnier
9b69fd6f8b * lisp/gnus/gnus-srvr.el (gnus-tmp-how, gnus-tmp-name, gnus-tmp-where)
(gnus-tmp-status, gnus-tmp-agent, gnus-tmp-cloud)
(gnus-tmp-news-server, gnus-tmp-news-method, gnus-tmp-user-defined):
Silence compiler warnings.
(gnus-server-insert-server-line): Don't use dyn-bind var as argument.
2014-04-06 14:25:34 -04:00
Stefan Monnier
7b656e4a55 * lisp/dired-aux.el (dired-file-set-difference): Use lexical-scoping. 2014-04-06 14:15:09 -04:00
Eli Zaretskii
aa5ccb01a5 src/bidi.c: Describe the design of reordering engine in the commentary. 2014-04-06 18:56:01 +03:00
Eli Zaretskii
c8e7f832ea Fix bug #17199 with incorrect character produced by ipa-x-sampa IM.
lisp/leim/quail/ipa.el (ipa-x-sampa): Fix the character produced for "<F>".
2014-04-06 18:21:35 +03:00
Stefan Monnier
0beb7fb723 * lisp/mpc.el (mpc--status-timer-run): Disable timer if not displayed.
(mpc--status-idle-timer-run): Use mpc--status-timer-run.
2014-04-06 09:08:00 -04:00
Paul Eggert
faa5217493 Prefer 'ARRAYELTS (x)' to 'sizeof x / sizeof *x'.
* alloc.c (memory_full):
* charset.c (syms_of_charset):
* doc.c (Fsnarf_documentation):
* emacs.c (main):
* font.c (BUILD_STYLE_TABLE):
* keyboard.c (make_lispy_event):
* profiler.c (setup_cpu_timer):
* xgselect.c (xg_select):
* xterm.c (record_event, STORE_KEYSYM_FOR_DEBUG):
Use ARRAYELTS.
* font.c (FONT_PROPERTY_TABLE_SIZE): Remove.
Replace the only use with ARRAYELTS (font_property_table).
* xfaces.c (DIM): Remove.  All uses replaced by ARRAYELTS.
2014-04-05 12:30:36 -07:00
Glenn Morris
1b058e4252 ChangeLog fix
Related entries do not get separated by blank lines (per standards.info).
Use form from admin/notes/changelogs for repeated items.
2014-04-05 11:40:52 -07:00
Glenn Morris
50ea0f87d6 Minor doc updates related to dribble files
* doc/emacs/trouble.texi (Checklist):
* doc/lispref/os.texi (Recording Input): Dribble files may contain passwords.

* lisp/help.el (view-lossage): Doc tweak.

* src/keyboard.c (Fopen_dribble_file): Doc tweak.
2014-04-05 11:33:55 -07:00
Glenn Morris
ba8b8451d5 Auto-commit of loaddefs files. 2014-04-05 06:17:34 -04:00
Matthias Dahl
f5e4494cd0 Fix bug #16434 with handling the -rv command-line option.
lisp/faces.el (make-face-x-resource-internal): Do nothing when
 inhibit-x-resources is non-nil.  Don't touch the default face if
 reversed video is given--as was done in previous versions of Emacs.
 (face-set-after-frame-default): Don't call
 make-face-x-resource-internal here.
2014-04-05 10:44:56 +03:00
Matthias Dahl
fdafd487a9 Fix bug #16378 with mishandling of empty faces.
lisp/faces.el (face-spec-choose): Accept additional optional argument,
 whose value is returned if no matching attributes are found.
 (face-spec-recalc): Use the new optional argument when calling
 face-spec-choose.
2014-04-05 10:25:52 +03:00
Matthias Dahl
eb7a03cc76 Fix bug #16694 with theme face precedence.
lisp/faces.el (face-spec-recalc): Call make-face-x-resource-internal
 only when inhibit-x-resources is nil, and do that earlier in the
 function.  Doc fix.
2014-04-05 10:15:11 +03:00
Leo Liu
722237d55e * emacs-lisp/lisp-mode.el (lisp-imenu-generic-expression): Add
define-compilation-mode.
2014-04-05 10:33:36 +08:00
João Távora
5cb0cc903f Improve on previous quote autopairing change
* lisp/elec-pair.el:
(electric-pair--syntax-ppss): When inside comments parse from
comment beginning.
(electric-pair--balance-info): Fix typo in comment.
(electric-pair--in-unterminated-string-p): Delete.
(electric-pair--unbalanced-strings-p): New function.
(electric-pair-string-bound-function): New var.
(electric-pair-inhibit-if-helps-balance): Decide quote pairing
according to `electric-pair--in-unterminated-string-p'

* test/automated/electric-tests.el (define-electric-pair-test): Don't
overtest..
(inhibit-in-mismatched-string-inside-ruby-comments): New test.
(inhibit-in-mismatched-string-inside-c-comments): New test.
2014-04-05 00:31:02 +01:00
Stefan Monnier
6b31e6b1ec * lisp/textmodes/reftex-parse.el (reftex--index-tags): Rename `index-tags'.
Move declaration before first use.
(reftex-move-to-next-arg): Silence compiler warning.
2014-04-04 16:16:24 -04:00
Tassilo Horn
3ccd4eafd3 Fix bug#16090.
* lisp/doc-view.el (doc-view-bookmark-jump): Use
`bookmark-after-jump-hook' to jump to the right page after the
buffer is shown in a window.
2014-04-04 19:42:55 +02:00
Stefan Monnier
1f0e1785ee * lisp/erc/erc.el (erc-invite-only-mode, erc-toggle-channel-mode): Simplify.
(erc-load-script): Tighten a regexp.
2014-04-04 13:26:23 -04:00
Stefan Monnier
114d739bef src/buffer.h, src/frame.h: Clarify doc of optimization variables. 2014-04-04 12:59:50 -04:00
Jan Djärv
11a9c72faf Backport from trunk.
* nsmenu.m (update_frame_tool_bar): Return early if view or toolbar
is nil.  If waiting for toolbar to complete, force a redraw.
(free_frame_tool_bar): Set wait_for_tool_bar = NO

       * nsterm.h (EmacsView): Add wait_for_tool_bar.

* nsterm.m (updateFrameSize:): If waiting for the tool bar and tool
       bar is zero height, just return (Bug#16976).
       (initFrameFromEmacs:): Initialize wait_for_tool_bar.
2014-04-04 18:32:24 +02:00
Eli Zaretskii
97bac2112e src/keyboard.c: Fix a typo in a comment to read_char. 2014-04-04 16:19:35 +03:00
Joost Kremers
0de7d982ca Use window-total-width' instead of window-width'.
* textmodes/reftex-toc.el (reftex-toc, reftex-re-enlarge): Use
`window-total-width' instead of `window-width'.
2014-04-04 14:10:22 +02:00
Eli Zaretskii
b7cf27edd3 A better fix for bug #17169.
lisp/international/characters.el (mirroring): Fix last change:
 instead of loading uni-mirrored.el explicitly, do that implicitly
 by creating the 'mirroring' uniprop table.  This avoids announcing
 the loading of uni-mirrored.el.
2014-04-04 11:26:00 +03:00
Glenn Morris
8a1d24b11e Doc updates for buffer-stale-function now applying to file buffers too
* doc/emacs/arevert-xtra.texi (Supporting additional buffers):
* doc/lispref/backups.texi (Reverting):
Update for buffer-stale-function also applying to file-buffers.

* lisp/autorevert.el (auto-revert-buffers):
* lisp/files.el (buffer-stale--default-function)
(buffer-stale-function, revert-buffer--default): Doc tweaks.

* etc/NEWS: Related edits.
2014-04-03 22:09:35 -04:00
Glenn Morris
0360792967 Doc updates for default values of some -function vars no longer being nil
* doc/emacs/files.texi (Backup Names):
* doc/emacs/arevert-xtra.texi (Supporting additional buffers):
* doc/lispref/backups.texi (Making Backups, Reverting):
Update for default values of some -function vars no longer being nil.

* etc/NEWS: Related edits.
2014-04-03 21:49:28 -04:00
Daniel Colascione
c72d972c5d Rename EARRAYSIZE to ARRAYELTS 2014-04-03 13:46:04 -07:00
Eli Zaretskii
bbab1c4fb8 Fix bug #17169 with infinite recursion in bidi_initialize under force-load-messages.
lisp/international/characters.el: Preload uni-mirrored.el.
2014-04-03 22:53:43 +03:00
Ken Brown
ebe8e0765c Don't use manifest on Cygwin. (Bug#17176)
* nt/emacs.rc: Don't use manifest on Cygwin.
* configure.ac (EMACS_MANIFEST, UPDATE_MANIFEST): Leave these
variables empty on Cygwin. 
* src/Makefile.in (EMACS_MANIFEST): Update comment.
2014-04-03 15:10:35 -04:00
Glenn Morris
b54b4b12d4 Refix previous NEWS fix 2014-04-03 00:21:37 -07:00
Glenn Morris
d60a0a1716 Tweak previous NEWS change 2014-04-03 00:17:58 -07:00
Daniel Colascione
705cf384be Clean up array size calculations 2014-04-03 00:14:02 -07:00
Glenn Morris
d738ebdccf Doc updates related to changes in revert-buffer function variables
* lisp/files.el (make-backup-file-name-function)
(make-backup-file-name, make-backup-file-name--default-function)
(make-backup-file-name-1, find-backup-file-name)
(revert-buffer-function, revert-buffer-insert-file-contents-function)
(buffer-stale--default-function, buffer-stale-function)
(before-revert-hook, after-revert-hook, revert-buffer-in-progress-p)
(revert-buffer, revert-buffer--default)
(revert-buffer-insert-file-contents--default-function):
Doc fixes related to defaults no longer being nil.
(make-backup-file-name-function): Bump :version.
Restore nil as a valid but deprecated custom type.

* etc/NEWS: Related edit.
2014-04-03 00:06:40 -07:00
Glenn Morris
3a9e7a49de * make-dist: Further update AC_INIT regexp. 2014-04-02 21:16:18 -04:00
Daniel Colascione
170c12e054 Add missing src/ChangeLog text that somehow ended up in last commit message instead 2014-04-02 17:44:00 -07:00
Stefan Monnier
062e286b7c * lisp/progmodes/perl-mode.el (perl-syntax-propertize-function): Handle $'
used as a variable.

Fixes: debbugs:17174
2014-04-02 20:41:09 -04:00
Daniel Colascione
f59c276045 Fix typo
* alloc.c: Include execinfo.h if available.
(SUSPICIOUS_OBJECT_CHECKING): New macro; define unconditionally.
(suspicious_free_record): New structure.
(suspicious_objects,suspicious_object_index)
(suspicious_free_history, suspicious_free_history_index): New
variables.
(find_suspicious_object_in_range,detect_suspicious_free,Fsuspicious_object):
New functions.
(cleanup_vector): Call find_suspicious_object_in_range.
2014-04-02 17:37:51 -07:00
Daniel Colascione
01ae0fbf30 Add GC bug investigation code 2014-04-02 17:18:08 -07:00
Stefan Monnier
8a7fd44212 * lisp/progmodes/perl-mode.el (perl-syntax-propertize-function): Add "foreach"
and "for" statement modifiers introducing expressions.

Fixes: debbugs:17116
2014-04-02 15:50:05 -04:00