Dmitry Antipov
0ab10992ed
* xterm.c (toplevel): Drop obsolete comment and move compose_status...
...
(handle_one_xevent): ...to here.
(STORE_KEYSYM_FOR_DEBUG): Move under ENABLE_CHECKING and make no-op
otherwise.
2013-09-02 09:59:35 +04:00
Dmitry Antipov
0c7f856e9f
* msdos.c (IT_set_terminal_window): Remove no-op.
...
(initialize_msdos_display): Adjust terminal setup.
* w32console.c (w32con_set_terminal_window): Remove no-op.
(initialize_w32_display): Adjust terminal setup.
* w32term.c (w32_set_terminal_window): Remove no-op.
(w32_create_terminal): Adjust terminal setup.
* xterm.c (XTset_terminal_window): Remove no-op.
(x_create_terminal): Adjust terminal setup.
2013-09-02 07:39:06 +04:00
Fabián Ezequiel Gallina
e5c144d64d
* progmodes/python.el (python-nav-if-name-main): New command.
2013-09-02 00:37:18 -03:00
Fabián Ezequiel Gallina
cd16c5f1f5
* progmodes/python.el (python-shell-completion-get-completions):
...
Drop use of deleted `comint-last-prompt-overlay'.
2013-09-02 00:21:13 -03:00
Dmitry Antipov
a892a94c42
* nsterm.m (ns_set_terminal_modes, ns_reset_terminal_modes):
...
Remove no-ops.
(ns_create_terminal): Adjust terminal setup.
* w32term.c (w32_set_terminal_modes, w32_reset_terminal_modes):
Remove no-ops.
(w32_create_terminal): Adjust terminal setup.
* xterm.c (XTset_terminal_modes, XTreset_terminal_modes):
Remove no-ops.
(x_create_terminal): Adjust terminal setup.
2013-09-01 20:39:20 +04:00
Dmitry Antipov
cf91889acb
* dispextern.h (SET_TEXT_POS_FROM_MARKER): Indent.
...
(CLIP_TEXT_POS_FROM_MARKER): New macro.
* dispnew.c (buffer_posn_from_coords):
* window.c (Fwindow_end, displayed_window_lines):
* xdisp.c (redisplay_mode_lines): Use it.
2013-09-01 20:21:48 +04:00
Glenn Morris
a30edef8a9
Auto-commit of loaddefs files.
2013-09-01 06:25:27 -04:00
Glenn Morris
dfdf7fe5cf
Auto-commit of generated files.
2013-09-01 06:19:10 -04:00
Jan Djärv
5b0891df61
* fontset.c (face_for_char): Check char in the current face font first
...
if HAVE_NS.
Fixes: debbugs:15138
2013-09-01 11:59:19 +02:00
Glenn Morris
f8ccce0306
Tweak to Makefile rules that list *.el files
...
* lisp/Makefile.in (setwins, setwins_almost, setwins_for_subdirs):
* test/automated/Makefile.in (setwins):
Avoid leading space in $wins. Otherwise the sed command used by
eg compile-main ends up containing "/*.el".
Fixes: debbugs:15170
2013-08-31 19:12:32 -07:00
Glenn Morris
2e4a0a9071
Further tweak previous change
2013-08-31 18:52:54 -07:00
Glenn Morris
79a15a36a9
Tweak previous change
2013-08-31 18:32:41 -07:00
Glenn Morris
e73c3a0d89
* lisp/frame.el (frame-background-mode): Doc fix.
...
Fixes: debbugs:15226
2013-08-31 18:29:50 -07:00
Glenn Morris
3a2a2fada1
* lispintro/emacs-lisp-intro.texi (beginning-of-buffer complete):
...
Put back a version of the removed paragraph about raw prefix arg.
2013-08-31 18:23:06 -07:00
Dani Moncayo
5229f00af6
* emacs-lisp-intro.texi (beginning-of-buffer complete): Update function details.
...
Fixes: debbugs:15085
2013-08-31 18:18:41 -07:00
Glenn Morris
2c347217ca
* configure.ac (--with-sound): Rename ossaudio to bsd-ossaudio,
...
and voxware to oss.
2013-08-31 13:00:22 -07:00
Ulrich Müller
e0936eed9b
* configure.ac: Allow for --with-sound=voxware that will enable
...
sound but otherwise disable ALSA. This will use the OSS device,
typically /dev/dsp, for sound output.
Fixes: debbugs:15067
2013-08-31 12:54:17 -07:00
Ulrich Müller
5d85cfe6f7
* doc/emacs/xresources.texi (Motif Resources):
...
Rename from LessTif Resources. Update xrefs.
* doc/emacs/emacs.texi: Update menu.
* doc/man/emacs.1: Update manual links.
Fixes: debbugs:15145
2013-08-31 12:49:52 -07:00
Glenn Morris
7605d081ba
Update nt installation instructions to point to supported method
...
* nt/INSTALL: Rename from INSTALL.MSYS.
* nt/INSTALL.OLD: Rename from INSTALL.
* nt/configure.bat: Update for INSTALL name changes.
* make-dist: Update for nt/INSTALL* changes.
2013-08-31 11:26:59 -07:00
Martin Rudalics
0a357e98dc
In temp_output_buffer_show make sure window returned by display_buffer is live (Bug#15213).
...
* window.c (temp_output_buffer_show): Make sure window returned
by display_buffer is live (Bug#15213).
2013-08-31 11:22:53 +02:00
Glenn Morris
415f808eb1
* bytecomp.el (byte-recompile-directory): Fix is-this-a-directory logic.
...
Fixes: debbugs:15220
2013-08-30 13:40:39 -04:00
Dmitry Antipov
9d7693d74c
Minor cleanup to avoid forward declarations.
...
* coding.h (struct ccl_spec): Remove forward declaration.
* composite.h (toplevel): Include font.h.
(struct composition_it, struct face, struct font_metrics):
Remove forward declaration.
* dispextern.h (struct image, struct atimer): Likewise.
* emacsgtkfixed.h (struct frame): Likewise.
* emacsgtkfixed.c (toplevel): Reorder headers and drop stdio.h.
* font.h (struct font_driver, struct font, struct glyph_string)
(struct face): Remove forward declaration.
* fontset.h (struct face, struct font): Likewise.
* frame.h (toplevel): Style cleanup.
(enum output_method): Move to...
* termhooks.h (enum output_method): ...here.
(struct glyph, struct frame, struct ns_display_info)
(struct x_display_info, struct w32_display_info):
Remove forward declaration.
* xterm.h (toplevel): Include termhooks.h.
(struct font, struct window, struct glyph_matrix, struct frame)
(struct input_event, struct face, struct image): Remove forward
declaration.
* gtkutil.h (struct _widget_value): Likewise.
* keyboard.h (toplevel): Include termhooks.h.
(struct input_event): Remove forward declaration.
2013-08-30 16:17:44 +04:00
Stefan Monnier
112798c18d
* lisp/textmodes/css-mode.el: Use SMIE.
...
(css-smie-grammar): New var.
(css-smie--forward-token, css-smie--backward-token)
(css-smie-rules): New functions.
(css-mode): Use them.
(css-navigation-syntax-table): Remove var.
(css-backward-sexp, css-forward-sexp, css-indent-calculate-virtual)
(css-indent-calculate, css-indent-line): Remove functions.
2013-08-29 17:00:18 -04:00
Stefan Monnier
40f7e0e853
Misc changes to reduce use of `(lambda...); and other cleanups.
...
* lisp/cus-edit.el: Use lexical-binding.
(customize-push-and-save, customize-apropos)
(custom-buffer-create-internal): Use closures.
* lisp/progmodes/bat-mode.el (bat-mode-syntax-table): "..." are strings.
* lisp/progmodes/ada-xref.el: Use setq.
* lisp/net/tramp.el (with-tramp-progress-reporter): Avoid setq.
* lisp/dframe.el: Use lexical-binding.
(dframe-frame-mode): Fix calling convention for hooks. Use a closure.
* lisp/speedbar.el (speedbar-frame-mode): Adjust call accordingly.
* lisp/descr-text.el: Use lexical-binding.
(describe-text-widget, describe-text-sexp, describe-property-list):
Use closures.
* lisp/comint.el (comint-history-isearch-push-state): Use a closure.
* lisp/calculator.el: Use lexical-binding.
(calculator-number-to-string): Make it work with lexical-binding.
(calculator-funcall): Same and use cl-letf.
2013-08-29 15:55:58 -04:00
Stefan Monnier
7763d67c87
* admin/notes/elpa: Update to the new Git setup.
2013-08-29 15:20:42 -04:00
Stefan Monnier
2da4c3ab6f
* lisp/emacs-lisp/lisp.el (lisp--company-doc-buffer)
...
(lisp--company-doc-string, lisp--company-location): New functions.
(lisp-completion-at-point): Use them to improve Company support.
2013-08-29 15:18:16 -04:00
Stefan Monnier
f069bba87c
* lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Add rule for formal
...
params of lambda expressions.
(ruby-smie--implicit-semi-p): Refine rule.
(ruby-smie--opening-pipe-p): New function.
(ruby-smie--forward-token, ruby-smie--backward-token): Handle Ruby
symbols and matched |...| for formal params.
(ruby-smie-rules): Don't let the formal params of a "do" prevent it
from being treated as hanging. Handle "rescue".
Fixes: debbugs:15208
2013-08-29 14:06:46 -04:00
Glenn Morris
6758b6a8db
* lisp/progmodes/cc-engine.el (c-pull-open-brace): Move definition before use.
...
Ref: http://lists.gnu.org/archive/html/emacs-devel/2013-08/msg00773.html
2013-08-29 13:26:48 -04:00
Dmitry Antipov
032f74518a
* intervals.c (set_point_from_marker): New function.
...
* editfns.c (Fgoto_char):
* process.c (Finternal_default_process_filter):
* window.c (select_window_1): Use it.
* buffer.h (set_point_from_marker): Add prototype.
2013-08-29 20:36:54 +04:00
Eli Zaretskii
3f940c5aa6
A possible fix for bug #14333 with hanging at exit on MS-Windows.
...
src/w32.c (term_winsock): Call release_listen_threads before calling
WSACleanup.
(_sys_wait_accept): Wait for accept event in a loop with a finite
timeout, instead of waiting indefinitely. Will hopefully avoid
hanging during exit because WSACleanup deadlocks waiting for the
event object to be released.
src/w32proc.c (release_listen_threads): New function, signals all
the reader threads that listen for connections to stop waiting.
src/w32.h (release_listen_threads): Add prototype.
2013-08-29 18:32:04 +03:00
Dmitry Antipov
20de2834a5
* lisp.h (XSETMARKER): Remove unused macro (it doesn't work
...
anyway because XMISCTYPE is a function and can't be an lvalue).
2013-08-29 19:28:45 +04:00
Dmitry Antipov
101ed2bbbd
* alloc.c (Fmake_marker, build_marker): Zero need_adjustment
...
field of new marker (for sanity and safety).
2013-08-29 15:22:28 +04:00
Dmitry Antipov
1f5cf2009a
* xterm.c (x_clear_area): Lost 7th arg because it is always False.
...
(x_after_update_window_line, x_scroll_bar_create):
(x_scroll_bar_set_handle, XTset_vertical_scroll_bar):
(handle_one_xevent, x_clear_frame_area):
* gtkutil.c (xg_clear_under_internal_border, xg_update_scrollbar_pos):
* xfns.c (x_set_menu_bar_lines, x_set_tool_bar_lines): Adjust users.
* xterm.h (x_clear_area): Adjust prototype.
2013-08-29 11:27:27 +04:00
Dmitry Antipov
d2b3681358
Hook scanning and indentation functions to find_newline. This helps
...
to avoid duplicated code and renders more respect to newline cache.
* lisp.h (scan_newline): Prefer ptrdiff_t to EMACS_INT.
* cmds.c (Fforward_line):
* indent.c (scan_for_column, Fcurrent_indentation, indented_beyond_p):
Use find_newline and avoid unnecessary point movements.
* search.c (scan_newline): Implement on top of find_newline.
2013-08-29 11:03:18 +04:00
Stefan Monnier
e8dfd19797
* lisp/emacs-lisp/cl-macs.el (cl-defsubst): Make it clear that args
...
are immutable. Don't use `unsafe' any more.
(cl--defsubst-expand): Don't substitute at the same time as keeping
a residual unused let-binding. Don't use `unsafe' any more.
2013-08-28 23:49:10 -04:00
Glenn Morris
ba579ea660
* calendar/cal-china.el (calendar-chinese-year-cache): Recenter on 2015.
2013-08-28 20:21:33 -07:00
Glenn Morris
8201a87ea9
* nxml/nxml-util.el (nxml-debug-clear-inside): Use cl-loop rather than loop.
2013-08-28 21:20:05 -04:00
Glenn Morris
f21407b2d5
* admin/notes/bzr: Mention origin of commit email From header.
2013-08-28 21:18:51 -04:00
Glenn Morris
6ee877c795
* lisp/net/eww.el (eww-mode-map): Lower-case menu bar entries look bad.
...
(If "eww" is supposed to be an acronym then maybe capitalize the whole thing.)
2013-08-28 21:17:10 -04:00
Glenn Morris
375d2e4922
* admin/notes/hydra: Misc small edits
2013-08-28 21:12:51 -04:00
Glenn Morris
f05ff1f556
* etc/spook.lines: Minor commentary update
2013-08-28 21:05:19 -04:00
Glenn Morris
cc585c965a
* lisp/progmodes/sh-script.el (sh-builtins) <bash>: Add some bash4-isms.
2013-08-28 21:02:46 -04:00
Glenn Morris
397440a1b6
* lisp/progmodes/antlr-mode.el: No need to require cc-mode twice.
2013-08-28 19:32:25 -04:00
Glenn Morris
2bb762d48a
* lisp/progmodes/cc-bytecomp.el (cc-require): Handle uncompiled case.
2013-08-28 19:31:52 -04:00
Glenn Morris
27be8d3996
* lisp/progmodes/cc-mode.el (c-define-abbrev-table): Handle NAME unbound.
2013-08-28 19:31:06 -04:00
Stefan Monnier
f663baa7dd
* lisp/simple.el (repeat-complex-command--called-interactively-skip):
...
New function.
(repeat-complex-command): Use it.
Fixes: debbugs:14136
2013-08-28 17:19:54 -04:00
Stefan Monnier
dd4f8b743d
* lisp/progmodes/cc-mode.el: Minor cleanup of var declarations.
...
(c-define-abbrev-table): Add `doc' argument.
(c-mode-abbrev-table, c++-mode-abbrev-table)
(objc-mode-abbrev-table, java-mode-abbrev-table)
(idl-mode-abbrev-table, pike-mode-abbrev-table)
(awk-mode-abbrev-table): Use it.
(c-mode-syntax-table, c-mode-map, c++-mode-syntax-table)
(c++-mode-map, objc-mode-syntax-table, objc-mode-map)
(java-mode-syntax-table, java-mode-map, idl-mode-syntax-table)
(idl-mode-map, pike-mode-syntax-table, pike-mode-map, awk-mode-map):
Move initialization into the declaration; and remove any
autoload cookie.
2013-08-28 16:24:18 -04:00
Stefan Monnier
b58969f781
* lisp/epg.el (epg--process-filter): Use with-current-buffer, save-excursion
...
and dynamic let binding.
2013-08-28 15:28:30 -04:00
Stefan Monnier
4021d6a62a
* lisp/vc/smerge-mode.el: Remove redundant :group args.
2013-08-28 15:26:18 -04:00
Stefan Monnier
3ec7babc5c
* src/eval.c (Ffuncall): Fix handling of ((lambda ..) ..) in lexically
...
scoped code.
Fixes: debbugs:11258
2013-08-28 14:27:26 -04:00