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
Stefan Monnier
2d69b99e59
* lisp/emacs-lisp/package.el (package-activate-1): Don't add unnecessarily
...
to load-path.
2013-08-28 13:57:12 -04:00
Juri Linkov
274919fde2
* lisp/isearch.el (isearch-reread-key-sequence-naturally): Use non-nil
...
arg DONT-DOWNCASE-LAST of `read-key-sequence'.
(isearch-other-meta-char): Handle an undefined shifted printing
character by downshifting it.
Fixes: debbugs:15200
2013-08-28 19:39:51 +03:00
Juri Linkov
121f8c95b2
* lisp/isearch.el (isearch-search): Change regexp error message for non-regexp searches.
...
Fixes: debbugs:15166
2013-08-28 19:33:02 +03:00
Jan Djärv
5ab473cdda
* nsterm.m (last_window): New variable.
...
(EV_TRAILER2): New macro.
(EV_TRAILER): Call EV_TRAILER2.
(mouseMoved:): Add support for mouse-autoselect-window
on nextstep.
Fixes: debbugs:6888
2013-08-28 18:20:15 +02:00
Andreas Schwab
78779650d6
* regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE, CHAR_HEAD_P)
...
(SINGLE_BYTE_CHAR_P, SAME_CHARSET_P, MAKE_CHAR, BYTE8_TO_CHAR):
Remove unused macro definitions.
(CHARSET_RANGE_TABLE_BITS, EXTEND_RANGE_TABLE)
(SET_RANGE_TABLE_WORK_AREA_BIT, SET_RANGE_TABLE_WORK_AREA): Only
define if emacs.
2013-08-28 15:50:55 +02:00
Dmitry Antipov
c3c4768d2b
Prefer enum glyph_row_area to int where appropriate.
...
* dispextern.h (enum glyph_row_area): Add ANY_AREA member.
Fix comment.
(window_box, window_box_width, window_box_left, window_box_left_offset)
(window_box_right, window_box_right_offset): Adjust prototypes.
* xdisp.c (window_box, window_box_width, window_box_left)
(window_box_left_offset, window_box_right, window_box_right_offset):
Use enum glyph_row_area. Adjust users and tweak comment where needed.
(window_box_edges): Likewise. Lost 2nd arg since it is always ANY_AREA.
* nsterm.m (ns_clip_to_row):
* w32term.c (w32_clip_to_row):
* xterm.c (x_clip_to_row): Likewise.
2013-08-28 15:00:03 +04:00
Glenn Morris
c65a2df9e3
Auto-commit of generated files.
2013-08-28 06:17:39 -04:00
Katsumi Yamaoka
efa44122aa
lisp/gnus/mm-decode.el (mm-temp-files-delete): Fix file deletion logic
2013-08-28 08:38:28 +00:00
Dmitry Antipov
6bdcbfe1e3
* buffer.c (Foverlays_at, Foverlays_in, Fnext_overlay_change)
...
(Fprevious_overlay_change): Fast path for buffer with no overlays.
2013-08-28 12:33:12 +04:00
Paul Eggert
50b13cdedb
* Makefile.in (SHELL): Now @SHELL@, not /bin/sh,
...
for portability to hosts where /bin/sh has problems.
2013-08-27 23:01:52 -07:00
Dmitry Antipov
f60e429a1a
Redesign redisplay interface to drop global output_cursor.
...
* dispextern.h (struct redisplay_interface): Remove cursor_to member.
(toplevel): Remove declaration of output_cursor.
(set_output_cursor, x_cursor_to): Remove prototype.
* window.h (struct window): New member output_cursor.
(output_cursor_to): New function to replace RIF member.
* dispnew.c (redraw_overlapped_rows, update_marginal_area)
(update_text_area, set_window_cursor_after_update): Use it.
* xdisp.c (output_cursor, set_output_cursor, x_cursor_to): Remove.
(x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
* nsterm.m (ns_update_window_begin, ns_update_window_end):
* w32term.c (x_update_window_begin, x_update_window_end):
* xterm.c (x_update_window_begin, x_update_window_end):
Adjust to use per-window output cursor.
2013-08-28 09:45:38 +04:00
Stefan Monnier
0acfedd349
Try to reduce redundancy in doc/misc/Makefile.in.
...
* configure.ac (DOCMISC_W32): New var to replace DOCMISC_*_W32.
* doc/misc/Makefile.in (DOCMISC_W32): New var to replace DOCMISC_*_W32.
(TARGETS): New intermediate variable.
(DVI_TARGETS, HTML_TARGETS, PDF_TARGETS, PS_TARGETS): Use it.
2013-08-27 21:37:13 -04:00
Stefan Monnier
95888bca5d
* lisp/emacs-lisp/cconv.el (cconv--analyse-function): Improve warning.
2013-08-27 21:33:31 -04:00
Glenn Morris
63e984f8fd
Update location of Emacs on MS Windows FAQ
2013-08-27 15:40:24 -04:00
Paul Eggert
d486344e6f
Simplify SELECT_TYPE-related code.
...
Like EMACS_TIME, this portability layer is no longer needed, since
Emacs has been using fd_set as a portability layer for some time.
* sysselect.h (FD_SETSIZE): Rename from MAXDESC. All uses changed.
(SELECT_TYPE): Remove. All uses changed to fd_set.
(fd_set) [!FD_SET]: New typedef.
2013-08-27 12:36:28 -07:00
Paul Eggert
b73517d9ec
Spelling fixes.
2013-08-27 12:02:42 -07:00
Paul Eggert
43aac990c3
Simplify EMACS_TIME-related code.
...
This portability layer is no longer needed, since Emacs has been
using struct timespec as a portability layer for some time.
Merge from gnulib, incorporating:
2013-08-27 timespec: new convenience constants and function
* src/atimer.h, src/buffer.h, src/dispextern.h, src/xgselect.h:
Include <time.h> rather than "systime.h"; that's all that's needed now.
* src/dispnew.c: Include <timespec.h> rather than "systime.h";
that's all that's needed now.
* src/systime.h (EMACS_TIME): Remove. All uses changed to struct timespec.
(EMACS_TIME_RESOLUTION): Remove. All uses changed to
TIMESPEC_RESOLUTION.
(LOG10_EMACS_TIME_RESOLUTION): Remove. All uses changed to
LOG10_TIMESPEC_RESOLUTION.
(EMACS_SECS, emacs_secs_addr): Remove. All uses changed to tv_sec.
(EMACS_NSECS): Remove. All uses changed to tv_nsec.
(make_emacs_time): Remove. All used changed to make_timespec.
(invalid_timespec): Rename from invalid_emacs_time. All uses changed.
(current_timespec): Rename from current_emacs_time. All uses changed.
(add_emacs_time): Remove. All uses changed to timespec_add.
(sub_emacs_time): Remove. All uses change dot timespec_sub.
(EMACS_TIME_SIGN): Remove. All uses changed to timespec_sign.
(timespec_valid_p): Rename from EMACS_TIME_VALID_P. All uses changed.
(EMACS_TIME_FROM_DOUBLE): Remove. All uses changed to dtotimespec.
(EMACS_TIME_TO_DOUBLE): Remove. All uses changed to timespectod.
(current_timespec): Rename from current_emacs_time. All uses changed.
(EMACS_TIME_EQ, EMACS_TIME_LT, EMACS_TIME_LE): Remove. All uses
changed to timespec_cmp.
* src/xgselect.c: Include <timespec.h>, since our .h files don't.
2013-08-27 11:47:55 -07:00
Glenn Morris
278208b8e6
* doc/misc/efaq.texi: Rename from faq.texi, to match its output files.
...
* doc/misc/Makefile.in: Update for faq.texi name change.
* admin/admin.el (manual-misc-manuals): "faq" does not need special
treatment any more.
2013-08-27 13:19:04 -04:00
Juri Linkov
bbe558f195
* lisp/isearch.el (isearch-other-meta-char): Don't store kmacro commands
...
in the keyboard macro.
Fixes: debbugs:15126
2013-08-27 19:06:16 +03:00
Juri Linkov
26f98a7d3f
* lisp/isearch.el (isearch-quote-char): Comment out converting unibyte
...
to multibyte, thus syncing with its `quoted-insert' counterpart.
Fixes: debbugs:15166
2013-08-27 18:57:16 +03:00
Glenn Morris
3ed86db9c6
* configure.ac (DOCMISC_INFO_W32): Typo fix.
2013-08-27 08:44:07 -07:00
Martin Rudalics
7c97d35ecc
Add missing argument in call of get-largest-window (Bug#15185).
...
* window.el (display-buffer-use-some-window): Add missing
argument in call of get-largest-window (Bug#15185). Reported by
Stephen Leake.
2013-08-27 14:46:00 +02:00
Glenn Morris
ffeb6dec74
Auto-commit of generated files.
2013-08-27 06:17:45 -04:00
Dmitry Antipov
15091df55b
* configure.ac (DOCMISC_DVI_W32, DOCMISC_HTML_W32, DOCMISC_INFO_W32)
...
(DOCMISC_PDF_W32, DOCMISC_PS_W32): No spaces!
2013-08-27 13:21:46 +04:00
Glenn Morris
79c238dc2f
* doc/misc/efaq-w32.texi (EMACSVER): Get it from emacsver.texi.
2013-08-27 01:14:58 -07:00
Glenn Morris
c076ba953a
* doc/misc/Makefile.in (webhack): Remove; it's nothing to do with Emacs.
...
Presumably it is some Gnus thing.
2013-08-27 01:04:08 -07:00
Glenn Morris
a0b5606ec7
Merge from emacs-24; up to 2013-01-03T01:56:56Z!rgm@gnu.org
2013-08-27 01:01:13 -07:00
Glenn Morris
1857cd3f9e
Move source for Emacs on MS Windows FAQ here from Emacs webpages repository
...
* Makefile.in (mostlyclean, clean, distclean, bootstrap-clean)
(maintainer-clean, check-declare): Remove pointless subshells.
Check cd return value.
* configure.ac (DOCMISC_DVI_W32, DOCMISC_HTML_W32, DOCMISC_INFO_W32)
(DOCMISC_PDF_W32, DOCMISC_PS_W32): New output variables.
* Makefile.in (check-info-dir): Ignore efaq-w32.
* admin/admin.el (manual-misc-manuals): Use INFO_COMMON rather than
INFO_TARGETS.
* doc/misc/efaq-w32.texi: Move here from the web-pages repository.
* doc/misc/Makefile.in (DOCMISC_DVI_W32, DOCMISC_HTML_W32, DOCMISC_INFO_W32)
(DOCMISC_PDF_W32, DOCMISC_PS_W32): New configure output variables.
(INFO_COMMON, INFO_INSTALL): New derivations of INFO_TARGETS.
(DVI_TARGETS, HTML_TARGETS, PDF_TARGETS, PS_TARGETS):
Add DOCMISC_*_W32 variables.
(echo-info): Use INFO_INSTALL rather than INFO_TARGETS.
(efaq_w32_deps): New variable.
(efaq-w32, $(buildinfodir)/efaq-w32$(INFO_EXT), efaq-w32.dvi)
(efaq-w32.pdf, efaq-w32.html): New rules.
(clean): Remove efaq-w32 products.
2013-08-27 00:57:39 -07:00
Glenn Morris
61ac6b9f82
* Makefile.in (mostlyclean, clean, distclean, bootstrap-clean)
...
(maintainer-clean, check-declare): Remove pointless subshells.
Check cd return value.
2013-08-26 23:58:08 -07:00
Dmitry Antipov
d350e350ea
* xterm.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE:)
...
* nsterm.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
Remove the leftovers.
* gtkutil.c (toplevel): Do not declare Qxft but include
font.h to do so.
* image.c (toplevel): Do not declare Vlibrary_cache because
it's already done in lisp.h.
2013-08-27 08:23:54 +04:00
Dmitry Antipov
9fed97293c
* lisp.h (Mouse_HLInfo): Move from here...
...
* dispextern.h (Mouse_HLInfo): ...to here and offload lisp.h.
(reset_mouse_highlight): New function.
* msdos.c (dos_set_window_size, IT_update_begin)
(internal_terminal_init):
* nsterm.m (ns_update_window_end, x_free_frame_resources)
(ns_initialize_display_info):
* w32console.c (initialize_w32_display):
* w32term.c (x_update_window_end, x_free_frame_resources)
(w32_initialize_display_info):
* xterm.c (x_update_window_end, x_free_frame_resources, x_term_init):
* window.c (Fdelete_other_windows_internal):
* xdisp.c (clear_mouse_face, cancel_mouse_face): Use it.
* termchar.h (toplevel):
* xterm.h (toplevel): Include dispextern.h.
2013-08-27 07:52:21 +04:00
Stefan Monnier
9e89d835b0
* lisp/progmodes/python.el (python-font-lock-keywords): Don't return nil
...
from a matcher-function unless there's no more matches.
Fixes: debbugs:15161
2013-08-26 22:41:41 -04:00
Paul Eggert
12c4970d70
Minor merge from gnulib (mostly just for texinfo.tex).
2013-08-26 15:17:31 -07:00
Paul Eggert
f462f0750f
Fix minor problems found by static checking.
...
* image.c (XGetPixel, XPutPixel) [HAVE_NS]: Now static.
(expect): Avoid nested-if warning.
(x_build_heuristic_mask) [HAVE_NS]: Avoid unused-var warning.
* nsmenu.m (fillWithWidgetValue:): Avoid type warning.
* nsterm.h, nsterm.m (ns_select):
* xgselect.c, xgselect.h (xg_select):
Adjust signature to better match pselect's.
* nsterm.m (ns_select):
Don't set *TIMEOUT, since pselect doesn't.
* regex.c (whitespace_regexp): Now const_re_char *, to avoid
diagnostic about assigning const char * to it.
* xfaces.c (x_display_info) [HAVE_NS]: Remove; unused.
2013-08-26 14:31:50 -07:00