1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-15 07:41:09 -08:00
Commit graph

116079 commits

Author SHA1 Message Date
Glenn Morris
012e2f9fda * files.el (hack-local-variables): Warn about misplaced lexical-binding.
(hack-local-variables--warned-lexical): New.

Fixes: debbugs:15616
2013-10-15 18:33:16 -07:00
Glenn Morris
62ad85e6af * net/eww.el (eww-render): Always set eww-current-url, and update header line.
(eww-display-html): ... Rather than just doing it here.

Fixes: debbugs:15622
2013-10-15 18:30:55 -07:00
Dmitry Gutov
0fb17a18b9 * etc/NEWS: improve wording. 2013-10-16 04:21:06 +04:00
Dmitry Gutov
750ae9b2e9 * etc/NEWS: Mention the homepage-related changes in package.el. 2013-10-16 04:17:38 +04:00
Paul Eggert
5e15c624f9 * print.c (print_object): Print " ..." when truncating bool vectors. 2013-10-15 14:03:00 -07:00
Eli Zaretskii
6456c0ea41 Support mouse wheel in TTY menus.
lisp/menu-bar.el (tty-menu-navigation-map): Bind mouse wheels to TTY
 menu navigations commands.
2013-10-15 21:40:22 +03:00
Eli Zaretskii
5d64d7704e Support mouse wheel on MS-Windows text-mode console.
src/w32inevt.c (do_mouse_event): Support mouse wheel and all the 5
 standard mouse buttons.
 src/termhooks.h (struct input_event): Remove incorrect commentary.
2013-10-15 21:38:26 +03:00
Paul Eggert
454e2fb9b9 Disallow bool vector operations on mixed-length operands.
The old behavior left garbage in the result vector sometimes,
and didn't seem to be useful.
* data.c (Qwrong_length_argument): New static var.
(wrong_length_argument): New function.
(bool_vector_binop_driver): Check that args agree in length.
2013-10-15 09:38:36 -07:00
Paul Eggert
c911772ee8 * keyboard.c, keyboard.h (all_kboards): Now static. 2013-10-15 06:57:37 -07:00
Xue Fuqiao
57f623e268 Add usage note of buffer-invisibility-spec.
* src/buffer.c (syms_of_buffer) <buffer-invisibility-spec>: Add usage
note from the lispref.
2013-10-15 20:47:57 +08:00
Xue Fuqiao
2641f1a547 * doc/lispref/display.texi (Warning Basics): Mention the ‘*Warnings*’ buffer. 2013-10-15 16:43:56 +08:00
Paul Eggert
ffb3f67aae Space after comma in ChangeLogs. 2013-10-14 23:36:43 -07:00
Dmitry Antipov
47c4d1e97e * nsterm.h (struct ns_display_info): Remove set-but-unused
member image_cache (image caches are per-terminal anyway).
(FRAME_X_IMAGE_CACHE): Remove.
* nsterm.m (ns_initialize_display_info): Adjust user.
2013-10-15 06:45:03 +04:00
Dmitry Gutov
1bd9995dc0 * indent/ruby.rb: Fix an example, remove wrong example, and add two more. 2013-10-15 04:21:22 +03:00
Xue Fuqiao
f55f544f40 * doc/misc/cl.texi (Argument Lists): Add indexes for &key and &aux. 2013-10-15 06:25:14 +08:00
Xue Fuqiao
c463be09eb Comment 2013-10-15 06:20:52 +08:00
Dima Kogan
c2de5588b4 * lisp/progmodes/subword.el (subword-capitalize): Be careful when
the search for [[:alpha:]] fails.

Fixes: debbugs:15580
2013-10-14 15:20:29 -04:00
Eli Zaretskii
279066b2b3 Attempt to fix time_t related problems with MinGW 4.0 runtime.
nt/inc/mingw_time.h: New file.
 nt/inc/ms-w32.h: Include mingw_time.h instead of doing its job.

 src/w32proc.c: Include mingw_time.h.
 src/w32.c: Include mingw_time.h.
2013-10-14 19:23:10 +03:00
Eli Zaretskii
ccd4a7833f Implement scrolling of TTY menus when the screen is too short.
src/term.c (tty_menu_display): Accept an additional argument, the
 menu item from which to start displaying the menu.  Account for
 the value of Y when limiting the menu to the number of available
 screen lines.
 (mi_result): New enumeration.
 (read_menu_input): Return enumerated value.  When the y coordinate
 hits min_y or max_y, return scroll indication instead of wrapping
 around the menu.
 (tty_menu_activate): Handle the scrolling indications from
 read_menu_input.  Compute the first menu item to display and pass
 it to tty_menu_display.

 lisp/menu-bar.el (tty-menu-navigation-map): Bind shifted mouse clicks
 to commands that scroll the menu.
2013-10-14 18:37:12 +03:00
Dmitry Antipov
77e3b1b709 * termhooks.h (FRAME_MUST_WRITE_SPACES, FRAME_LINE_INS_DEL_OK)
(FRAME_CHAR_INS_DEL_OK, FRAME_SCROLL_REGION_OK)
(FRAME_SCROLL_REGION_COST, FRAME_MEMORY_BELOW_FRAME):
Adjust to match the change described below.
(struct terminal): Move must_write_spaces, line_ins_del_ok,
char_ins_del_ok, scroll_region_ok, scroll_region_cost and
memory_below_frame members to...
* termchar.h (struct tty_display_info): ...here because they're
relevant only on TTYs.  Prefer unsigned bitfield where appropriate.
* term.c (init_tty):
* nsterm.m (ns_create_terminal):
* w32term.c (w32_create_terminal):
* xterm.c (x_create_terminal): Adjust users.
* dispnew.c (line_hash_code, line_draw_cost): Pass frame arg
to filter out non-TTY frames.  Adjust comment.
(scrolling): Adjust user.  Prefer eassert for debugging check.
2013-10-14 16:19:21 +04:00
Dmitry Antipov
e558436b77 * xfaces.c (PT_PER_INCH): Remove unused macro.
* termhooks.h (struct terminal): Remove set-but-unused
member fast_clear_end_of_line.
(FRAME_FAST_CLEAR_END_OF_LINE): Remove.
* nsterm.m (ns_create_terminal):
* term.c (init_tty):
* w32term.c (w32_create_terminal):
* xterm.c (x_create_terminal): Adjust users.
2013-10-14 14:55:24 +04:00
Glenn Morris
3083cf6201 Auto-commit of generated files. 2013-10-14 06:17:44 -04:00
Paul Eggert
1c0a74936b * lisp.h (bool_vector_size): New function.
All uses of XBOOL_VECTOR (x)->size changed to bool_vector_size (x).
* data.c (bool_vector_spare_mask, bool_vector_binop_driver)
(Fbool_vector_not, Fbool_vector_count_matches_at):
Remove uses of 'eassume' that should no longer be needed,
because they are subsumed by the 'eassume' in bool_vector_size.
2013-10-14 00:12:49 -07:00
Dmitry Gutov
1eda1d8d34 * lisp/progmodes/ruby-mode.el (ruby-smie--args-separator-p): Handle
methods ending with `?' and `!'.

* test/indent/ruby.rb: More examples for bug#15594, both failing and
now passing.
2013-10-14 04:51:20 +03:00
Akinori MUSHA
e70181b829 * progmodes/ruby-mode.el (ruby-encoding-map): Add a mapping from
`japanese-cp932' to `cp932' to fix the problem where saving a
source file written in Shift_JIS twice would end up having
`coding: japanese-cp932' which Ruby could not recognize.
(ruby-mode-set-encoding): Add support for encodings mapped to nil
in `ruby-encoding-map'.
(ruby-encoding-map): Map `us-ascii' to nil by default, meaning it
doesn't need to be explicitly declared in magic comment.
(ruby-encoding-map): Add type declaration for better customize UI.
2013-10-14 03:23:29 +03:00
Glenn Morris
a5d38e349a * lisp/progmodes/sh-script.el (sh-mark-line, sh-learn-buffer-indent):
Occur buffers are read-only.  http://bugs.debian.org/720775
2013-10-13 16:21:56 -07:00
Glenn Morris
9148ee920e * configure.ac [alpha]: Explicit error in non-ELF case.
* doc/emacs/ack.texi (Acknowledgments): Comment out old alpha stuff.

* lisp/emacs-lisp/authors.el (authors-fixed-entries):
Comment out old alpha stuff.

Fixes: debbugs:15601
2013-10-13 16:01:20 -07:00
Dmitry Gutov
a9ba094b81 * lisp/progmodes/ruby-mode.el (ruby-mode): Add `ruby-mode-set-encoding'
to `after-save-hook' instead of `before-save-hook'.
(ruby-mode-set-encoding): Use the value of coding system used to
write the file.  Call `basic-save-buffer-1' after modifying the
buffer.
2013-10-14 00:35:31 +03:00
Alan Mackenzie
7a06871716 Fix indentation/fontification of Java enum with "implements"/generic.
* progmodes/cc-engine.el (c-backward-over-enum-header): Extracted from
the three other places and enhanced to handle generics.
(c-inside-bracelist-p): Uses new function above.
* progmodes/cc-fonts.el (c-font-lock-declarations): Uses new function
above.
(c-font-lock-enum-tail): Uses new function above.
2013-10-13 19:54:46 +00:00
Xue Fuqiao
3ccc2d283e NEWS tweak. 2013-10-13 20:14:28 +08:00
Kenichi Handa
4168439a5f merge trunk 2013-10-13 20:59:25 +09:00
Kenichi Handa
70c8ae6ebd merge trunk 2013-10-13 20:55:00 +09:00
Xue Fuqiao
524aabace8 Remove unnecessary @refill. 2013-10-13 18:22:34 +08:00
Glenn Morris
2d71060d59 Auto-commit of generated files. 2013-10-13 06:19:27 -04:00
Kenichi Handa
85b64f021c international/mule-cmds.el (select-safe-coding-system): Remove a superfluous condition in chekcing whether a coding system is safe or not. 2013-10-13 18:25:29 +09:00
Oleh Krehel
fc7f501bc0 * lisp/replace.el (how-many): Fix rstart and !rend case.
Fixes: debbugs:15589
2013-10-12 22:30:23 -07:00
Andreas Politz
fdcb2049f1 * lisp/progmodes/sql.el (sql-add-product): Fix paren typo.
Fixes: debbugs:15435
2013-10-12 22:23:42 -07:00
Glenn Morris
feab892d6b * menu-bar.el (menu-bar-update-buffers): Unify Buffers menu prompt string.
Fixes: debbugs:15576
2013-10-12 22:20:15 -07:00
Glenn Morris
b22d06865b Doc fixes for text-scale-adjust
* lisp/face-remap.el (text-scale-adjust): Doc fix. 

* doc/emacs/display.texi (Text Scale): Update text-scale-adjust details.

Fixes: debbugs:15434
2013-10-12 22:17:42 -07:00
Glenn Morris
8c106d177f Use accented form of some names
* doc/emacs/ack.texi (Acknowledgments):
* doc/emacs/emacs.texi (Acknowledgments):
* doc/lispref/intro.texi (Acknowledgments): Use accented form of some names.

* lisp/emacs-lisp/authors.el (authors-aliases, authors-ignored-files):
Add some entries.
(authors-fixed-entries): Use accented form of name.
2013-10-12 17:31:19 -07:00
Glenn Morris
e903c210b6 ChangeLog fixes prompted by M-x authors 2013-10-12 17:28:30 -07:00
Stefan Monnier
650fa7bfb4 * lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Add rule for paren-free
method calls (bug#bug#15594).
(ruby-smie--args-separator-p): New function.
(ruby-smie--forward-token, ruby-smie--backward-token): Use it to
recognize paren-free method calls.
2013-10-12 16:40:50 -04:00
Paul Eggert
46e5e833d9 Merge from gnulib.
This incorporates:
2013-10-10 strtoumax: port to Solaris 8
2013-10-09 strtoimax, strtoumax: port to HP-UX 11.11
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* lib/inttypes.in.h, lib/strtoimax.c, m4/inttypes.m4, m4/strtoimax.m4:
* m4/strtoumax.m4:
Update from gnulib.
2013-10-12 13:00:38 -07:00
Eli Zaretskii
2f4586ad04 Make the MinGW32 build compatible with MinGW runtime 4.x.
nt/inc/dirent.h (struct dirent) [__MINGW_MAJOR_VERSION >= 4]: Make
 the layout of 'struct dirent' be compatible with MinGW32 runtime
 versions 4.0 and later.
 nt/inc/ms-w32.h (__MINGW_MAJOR_VERSION, __MINGW_MINOR_VERSION)
 (__MINGW_PATCHLEVEL) [!__MINGW64_VERSION_MAJOR]: Define, if not
 defined, but not for MinGW64.
 (_USE_32BIT_TIME_T) [__MINGW64_VERSION_MAJOR]: Define, to force
 use of 32-bit time_t type.
2013-10-12 16:11:14 +03:00
Glenn Morris
18f19af2a7 Auto-commit of generated files. 2013-10-12 06:17:41 -04:00
Eli Zaretskii
7135884547 Update nt/INSTALL with respect to giflib. 2013-10-12 12:00:21 +03:00
Eli Zaretskii
567f95ecac Avoid compilation warnings in image.c.
src/image.c (GIFLIB_MAJOR, GIFLIB_MINOR, GIFLIB_RELEASE): Move back
 after inclusion of gif_lib.h, thus fixing compiler warnings caused
 by 2013-10-10T19:15:33Z!eggert@cs.ucla.edu.
2013-10-12 11:48:31 +03:00
Stefan Monnier
1b12c797ae * lisp/isearch.el (isearch-pre-command-hook): Don't build in knowledge about
internals of universal-argument.
2013-10-11 21:10:25 -04:00
Dmitry Gutov
55ee77a3f9 * test/indent/ruby.rb: Add two more cases. 2013-10-11 23:45:14 +03:00
Stefan Monnier
c5fc017811 * configure.ac (LIBGNUTLS): Don't set LIBGNUTLS_* back to the empty
string when gnutls2 is installed but gnutls3 is not.
2013-10-11 14:29:18 -04:00