Juri Linkov
a4b0fffe25
Display man pages immediately and use process-filter to format them asynchronously.
...
* lisp/man.el (Man-width): Doc fix.
(man): Doc fix.
(Man-start-calling): Use `with-selected-window' to get
`frame-width' and `window-width'.
(Man-getpage-in-background): Call `Man-notify-when-ready'
immediately after creating a new buffer. Call `Man-mode' and set
`mode-line-process' in the created buffer. Set process-filter to
`Man-bgproc-filter' in start-process branch. In call-process branch
call either `Man-fontify-manpage' or `Man-cleanup-manpage'.
Use `Man-start-calling' inside `with-current-buffer'.
(Man-fontify-manpage): Don't print messages. Fix boundary condition.
(Man-cleanup-manpage): Don't print messages.
(Man-bgproc-filter): New function.
(Man-bgproc-sentinel): Add `save-excursion' to keep point when
user moved it during asynchronous formatting. Move calls of
`Man-fontify-manpage' and `Man-cleanup-manpage' to
`Man-bgproc-filter'. Move the call of `Man-mode' to
`Man-getpage-in-background'. Use `quit-restore-window'
instead of `kill-buffer'. Use `message' instead of `error'
because errors are catched by process sentinel.
(Man-mode): Move calls of `Man-build-page-list',
`Man-strip-page-headers', `Man-unindent', `Man-goto-page' to
`Man-bgproc-sentinel'. Doc fix. (Bug#2588, bug#5054, bug#9084, bug#17831)
2014-07-02 02:54:59 +03:00
Mario Lang
dd72a0ca55
* net/gnutls.el (gnutls-negotiate): Prevent destructive modification of
...
customization option `gnutls-verify-error.
2014-07-01 20:48:24 +02:00
Stefan Monnier
6372fc12fe
* lisp/simple.el (deactivate-mark, set-mark-command, handle-shift-selection):
...
Don't keep transient-mark-mode buffer-local when not needed.
Fixes: debbugs:6316
2014-07-01 14:13:28 -04:00
Stefan Monnier
854b22ea18
* lisp/xt-mouse.el (turn-on-xterm-mouse-tracking-on-terminal)
...
(turn-off-xterm-mouse-tracking-on-terminal): Don't burp if the terminal
is suspended.
Fixes: debbugs:17857
2014-07-01 12:10:02 -04:00
Michael Albinus
005f996739
* net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
...
Prefer utf-8 coding. (Bug#17859)
2014-07-01 16:06:11 +02:00
Glenn Morris
a519335cc3
Auto-commit of loaddefs files.
2014-07-01 06:18:16 -04:00
Fabián Ezequiel Gallina
911ba4d915
* lisp/emacs-lisp/subr-x.el (string-reverse): Define as obsolete alias
...
for `reverse'.
2014-06-30 17:17:17 -03:00
Fabián Ezequiel Gallina
a24225d513
Changelog, NEWS and Copyright fixes.
2014-06-30 16:58:56 -03:00
Jan Djärv
98bfa4f1e6
Fix use of deallocated memory.
...
* nsterm.h (EmacsScroller): Remove dealloc.
* nsterm.m (judge): EmacsScroller: Move dealloc code here.
(dealloc): Remove for EmacsScroller.
2014-06-30 20:44:56 +02:00
Glenn Morris
0224bf74b2
Get rid of the AUTOGEN_VCS variable in lisp/Makefile
...
* lisp/emacs-lisp/autoload.el (autoload-ensure-writable): New variable.
(autoload-ensure-default-file): Maybe make existing output writable.
* lisp/Makefile.in (AUTOGEN_VCS): Remove.
(autoloads): Use autoload-ensure-writable rather than AUTOGEN_VCS.
2014-06-30 14:26:34 -04:00
Eli Zaretskii
c6ecf7f23d
Fix bug #17881 with infloop in decoding emacs-mule encoded text.
...
src/coding.c (MIN_CHARBUF_SIZE): Enlarge to 32.
2014-06-30 18:39:29 +03:00
Jan Djärv
9c660a187c
Remove unnecessary redisplays in NS port.
...
* nsmenu.m (update_frame_tool_bar): Set wait_for_tool_bar to NO
when setNeedsDisplay is called so we don't trigger redisplay for every
tool bar update.
* nsterm.m (any_help_event_p): New variable.
(mouseMoved:): Set any_help_event_p to YES if help event is
generated. Remove else with empty help event that triggered redisplay
for every mouse move.
(windowDidResignKey:): If any_help_event_p, generate empty help
event.
2014-06-30 14:38:09 +02:00
Fabián Ezequiel Gallina
de12301ea1
* lisp/emacs-lisp/subr-x.el (string-reverse): Use `reverse'.
2014-06-30 01:54:46 -03:00
Fabián Ezequiel Gallina
c08f8be29f
New if-let, when-let, thread-first and thread-last macros.
...
* lisp/emacs-lisp/subr-x.el
(internal--listify, internal--check-binding)
(internal--build-binding-value-form, internal--build-binding)
(internal--build-bindings): New functions.
(internal--thread-argument, thread-first, thread-last)
(if-let, when-let): New macros.
* test/automated/subr-x-tests.el
(subr-x-test-if-let-single-binding-expansion)
(subr-x-test-if-let-single-symbol-expansion)
(subr-x-test-if-let-nil-related-expansion)
(subr-x-test-if-let-malformed-binding, subr-x-test-if-let-true)
(subr-x-test-if-let-false, subr-x-test-if-let-bound-references)
(subr-x-test-if-let-and-lazyness-is-preserved)
(subr-x-test-when-let-body-expansion)
(subr-x-test-when-let-single-binding-expansion)
(subr-x-test-when-let-single-symbol-expansion)
(subr-x-test-when-let-nil-related-expansion)
(subr-x-test-when-let-malformed-binding)
(subr-x-test-when-let-true, subr-x-test-when-let-false)
(subr-x-test-when-let-bound-references)
(subr-x-test-when-let-and-lazyness-is-preserved)
(subr-x-test-thread-first-no-forms)
(subr-x-test-thread-first-function-names-are-threaded)
(subr-x-test-thread-first-expansion)
(subr-x-test-thread-last-no-forms)
(subr-x-test-thread-last-function-names-are-threaded)
(subr-x-test-thread-last-expansion): New tests.
2014-06-30 01:11:43 -03:00
Grégoire Jadi
f8e16324a0
* net/rcirc.el (rcirc-buffer-process): Restore previous behaviour.
...
Fixes: debbugs:17772
2014-06-30 10:55:14 +08:00
Glenn Morris
f9bae01ee8
* update_autogen: Find loaddefs targets rather than parsing lisp/Makefile.in
...
* lisp/Makefile.in: Comment.
2014-06-29 17:01:51 -07:00
Michael Albinus
87ed944822
* automated/tramp-tests.el (tramp--instrument-test-case):
...
Print debug buffer in any case.
2014-06-29 20:32:35 +02:00
Dmitry Antipov
8d56de7901
* xfns.c (Qsuppress_icon): Remove; no real users.
...
(syms_of_xfns): Don't DEFSYM it. Remove ancient comments.
* w32fns.c (Qsuppress_icon): Remove, for the same reason.
(syms_of_w32fns): Don't DEFSYM it.
2014-06-29 20:12:08 +04:00
Alan Mackenzie
e3be29073e
Don't call c-parse-state when c++-template-syntax-table is active.
...
* progmodes/cc-engine.el (c-guess-continued-construct CASE G)
(c-guess-basic-syntax CASE 5D.3): Rearrange so that
c-syntactic-skip-backwards isn't called with the pertinent syntax
table.
2014-06-29 11:26:47 +00:00
Glenn Morris
51a0825e84
* admin/update_autogen: Remove need to cd into/out of lisp/.
2014-06-28 18:33:32 -07:00
Glenn Morris
a1212016db
* src/Makefile.in (ns-app): Mark as PHONY.
2014-06-28 17:49:59 -07:00
Glenn Morris
c8bd285ff8
* admin/grammars/Makefile.in (bootstrap-clean): Don't delete Makefile,
...
for sake of top-level maintainer-clean rule.
2014-06-28 17:46:40 -07:00
Glenn Morris
78cc32a191
* src/Makefile.in ($(lwlibdir)/liblw.a, $(oldXMenudir)/libXMenu11.a):
...
Fully revert earlier dumbness.
2014-06-28 16:35:17 -07:00
Glenn Morris
ef990bfd1f
* src/Makefile.in: Fix thinko in previous.
2014-06-28 16:29:06 -07:00
Glenn Morris
8aa079fb75
Small cleanup for src/Makefile liblw.a, libXMenu11.a rules
...
* src/Makefile.in ($(lwlibdir)/liblw.a, $(oldXMenudir)/libXMenu11.a):
Remove prerequisites, sub-makes will figure it out.
(FORCE): Remove.
(mostlyclean): There are no libXMenu11.a, liblw.a in this directory.
* oldXMenu/deps.mk (${OBJS}): Depend on ../src/config.h.
2014-06-28 16:19:04 -07:00
Glenn Morris
93160ec392
Use gcc auto-dependency information for lwlib and oldXMenu
...
* configure.ac (lwlib_deps_frag, oldxmenu_deps_frag): New output files.
* make-dist (lwlib, oldXMenu): Distribute *.mk.
* lwlib/Makefile.in: Move old dependency information to new file deps.mk.
(MKDIR_P, DEPFLAGS, MKDEPDIR, lwlib_deps_frag):
New, set by configure.
(DEPDIR): New variable.
(ALL_CFLAGS): Add DEPFLAGS.
(.c.o): Add MKDEPDIR.
(clean, mostlyclean): Delete DEPDIR.
* lwlib/deps.mk, lwlib/autodeps.mk: New files.
* oldXMenu/Makefile.in: Move old dependency information to new file deps.mk.
(MKDIR_P, DEPFLAGS, MKDEPDIR, oldxmenu_deps_frag):
New, set by configure.
(DEPDIR): New variable.
(ALL_CFLAGS): Add DEPFLAGS.
(.c.o): Add MKDEPDIR.
(clean, mostlyclean): Delete DEPDIR.
* oldXMenu/deps.mk, oldXMenu/autodeps.mk: New files.
* src/deps.mk: Comment update.
* .bzrignore: Ignore lwlib/deps, oldXMenu/deps.
2014-06-28 15:57:23 -07:00
Glenn Morris
e0d9c3c9a2
Merge from emacs-24; up to 2014-06-12T14:55:48Z!monnier@iro.umontreal.ca
2014-06-28 10:27:29 -07:00
Glenn Morris
14202f05ac
* test/automated/Makefile.in (GDB): New variable.
...
(emacs): Use $GDB.
Fixes: debbugs:15991
2014-06-28 10:18:05 -07:00
Glenn Morris
8eb6542f53
Disable logging in the short form of the test Makefile rules
...
* test/automated/Makefile.in (WRITE_LOG): New variable.
(%.log): Use WRITE_LOG.
(test_template): Disable logging.
2014-06-28 10:05:00 -07:00
Kenichi Handa
7ac67e08e5
merge trunk
2014-06-28 22:41:19 +09:00
Kenichi Handa
fda6144e04
* coding.c (MAX_CHARBUF_SIZE): Renamed from CHARBUF_SIZE.
...
(MIN_CHARBUF_SIZE): New macro.
(ALLOC_CONVERSION_WORK_AREA): New arg SIZE. Callers changed.
2014-06-28 22:38:36 +09:00
Andreas Schwab
b084415e27
Fixes: debbugs:17865
...
* coding.c (encode_coding_utf_8): Correctly count produced_chars
also in unibyte case.
2014-06-28 09:24:01 +02:00
Glenn Morris
90f33ead9b
* calc-test.el: Set copyright to FSF; standardize permissions notice
2014-06-27 20:11:24 -07:00
Leo Liu
39ef0f7495
* test/automated/calc-tests.el: New file and add tests for math-bignum.
...
Fixes: debbugs:17556
2014-06-28 10:15:13 +08:00
Glenn Morris
01c442500f
ChangeLog fix
2014-06-27 21:55:17 -04:00
Stefan Monnier
b1c4d6861e
* lisp/progmodes/hideif.el: Use lexical-binding. Fix up cl-lib usage.
2014-06-27 21:52:38 -04:00
Kenichi Handa
f036e167fe
merge trunk
2014-06-28 10:35:48 +09:00
Kenichi Handa
1fc00e5c9e
Fix Bug#17739.
...
* composite.el: Setup composition-function-table for dotted circle.
(compose-gstring-for-dotted-circle): New function.
* international/characters.el: Add category "^" to all
non-spacing characters.
2014-06-28 10:34:17 +09:00
Glenn Morris
2c4e2e6fd3
* lisp/Makefile.in (doit): Remove force rule.
...
(custom-deps, finder-data, autoloads, update-subdirs)
(compile-one-process): PHONY targets do not need force rules.
2014-06-27 21:26:09 -04:00
Glenn Morris
bca0df810d
lisp/Makefile tiny simplification
...
* lisp/Makefile.in (compile-main, compile, compile-always):
No need to explicitly pass variables to ourself in recursive calls.
2014-06-27 21:16:23 -04:00
Glenn Morris
06a9b8f6eb
Add short test aliases that always re-run the tests
...
* test/automated/Makefile.in (TESTS): New list of short PHONY aliases.
(test_template): New definition. Apply to TESTS.
2014-06-27 21:11:04 -04:00
Stefan Monnier
8076b12438
* lisp/files.el (minibuffer-with-setup-hook): Evaluate the first arg eagerly.
2014-06-27 21:10:27 -04:00
Michael Albinus
453cac385f
* automated/dbus-tests.el (dbus--test-register-service)
...
(dbus-test02-register-service-session): Replace `dbus-ping' calls
by `dbus-list-known-names'.
Fixes: debbugs:17858
2014-06-27 20:20:21 +02:00
Glenn Morris
96ef7eb9eb
ChangeLog fix: relocate entry to correct position
2014-06-27 13:51:00 -04:00
Glenn Morris
31eac1d10e
Have `make check' re-run all the tests, every time
...
* test/automated/Makefile.in (check-maybe): Rename from check.
(check): Re-run all the tests, every time.
(clean, mostlyclean): Also delete *.log~.
2014-06-27 09:27:08 -07:00
Stephen Berman
b9d484082c
* calendar/todo-mode.el (todo-set-top-priorities): Fix logic to
...
account for file-wide setting of todo-top-priorities-overrides.
Make code a bit cleaner.
2014-06-27 17:15:30 +02:00
Eli Zaretskii
4f1e55070b
src/w32heap.c: Minor formatting and whitespace changes.
2014-06-27 11:31:20 +03:00
Luke Lee
d9824c5167
* lisp/progmodes/hideif.el: Style fixes. Fix doc-strings and comment style,
...
also add a change log entry for the latest hideif.el changes.
2014-06-27 16:25:21 +08:00
Glenn Morris
2549d174e4
Regenerate ldefs-boot.el
2014-06-26 22:53:13 -07:00
Leo Liu
708dc66d7b
Backport fix for http://debbugs.gnu.org/17556 from trunk
...
* lisp/calc/calc.el (math-bignum): Handle most-negative-fixnum.
2014-06-27 12:10:04 +08:00