Dmitry Antipov
fc54bdd599
Do not allow font caches to grow too large.
...
* alloc.c (compact_font_cache_entry, compact_font_caches):
New functions or stub if not HAVE_WINDOW_SYSTEM.
(compact_undo_list): Factor out from Fgarbage_collect.
Add comment.
(mark_face_cache): Mark face font. Move down to avoid
extra prototypes.
(mark_terminals): Do not mark font cache here.
(Fgarbage_collect): Call compaction functions described
above. Adjust comment.
2013-10-21 18:11:25 +04:00
Stefan Monnier
df74c4be16
* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Indent after + used as
...
an instruction.
2013-10-21 09:34:13 -04:00
Dmitry Gutov
c7e36328c6
* indent/ruby.rb: Fix a typo
2013-10-21 10:15:47 +04:00
Dmitry Gutov
cfef16c084
* lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Add (almost) all
...
infix operators.
(ruby-smie--implicit-semi-p): Add new operator chars.
2013-10-21 09:54:18 +04:00
Dmitry Gutov
8c1ae48154
* lisp/progmodes/ruby-mode.el (ruby-mode-map): Add binding for
...
`smie-down-list'.
(ruby-smie--args-separator-p): Check that there's no newline
between method call and its arguments.
(ruby-smie-rules): Handle new cases: curly block with and without
parameters, hash surrounded with parens, block passed to
paren-less method call.
* test/indent/ruby.rb: New examples for indentation of blocks. Example
of hash inside parens that inflooped before this commit.
2013-10-21 07:50:06 +04:00
Jan Djärv
a9f8deecce
* emacs.c (main): On Cocoa, if GUI session and 0 is not a tty,
...
chdir to HOME.
Fixes: debbugs:15607
2013-10-20 18:47:42 +02:00
Alan Mackenzie
87756ca9f4
Allow comma separated lists after Java "implements".
...
* progmodes/cc-engine.el (c-backward-over-enum-header): parse
commas.
* progmodes/cc-fonts.el (c-basic-matchers-after): Remove comma
from a "disallowed" list in enum fontification.
2013-10-20 14:27:22 +00:00
Johan Bockgård
4a5da22b39
* lisp/startup.el (default-frame-background-mode): Remove unused
...
defvar.
2013-10-20 13:28:58 +02:00
Johan Bockgård
c25f8957ba
* lisp/progmodes/verilog-mode.el (verilog-mode): Don't set
...
comment-indent-function globally.
2013-10-20 12:13:26 +02:00
Jan Djärv
d4816ab3aa
* src/nsterm.m (ns_get_color): Make selection color work for GNUStep also.
2013-10-20 11:55:25 +02:00
Johan Bockgård
43ad632e3b
* lisp/cedet/semantic/db-mode.el (global-semanticdb-minor-mode): Remove hooks
...
correctly.
(semanticdb-toggle-global-mode): Pass `toggle' to minor mode function.
2013-10-20 11:51:21 +02:00
Jan Djärv
5f161884b3
Make Info menu for GNUStep only for GUI.
...
* menu-bar.el: Put help-menu in menu-bar-final-items unconditionally.
Move Info menu item creation to ns-win.el.
* term/ns-win.el (ns-initialize-window-system): Rename Help to Info
in menu bar.
2013-10-20 11:26:15 +02:00
Jan Djärv
aca5fcdc4c
Fix GNUStep specific menu items.
...
* lisp/menu-bar.el: Move GNUStep specific menus...
* lisp/term/ns-win.el (ns-initialize-window-system): ... to here.
* src/nsterm.m (Qcocoa, Qgnustep): New variables.
(syms_of_nsterm): Defsym Qcocoa, Qgnustep. Fprovide appropriate one.
2013-10-20 10:50:34 +02:00
Stefan Monnier
914b7f9808
* lisp/simple.el (newline): Only run post-self-insert-hook when
...
called interactively.
2013-10-19 18:17:56 -04:00
Johan Bockgård
fba1763d95
NEWS fix.
2013-10-19 17:30:39 +02:00
Johan Bockgård
846ffe77bb
* lisp/icomplete.el (icomplete-with-completion-tables): Add :version.
2013-10-19 17:22:57 +02:00
Alan Mackenzie
033f22ddad
Fix fontification bugs with constructors and const.
...
* progmodes/cc-engine.el (c-forward-decl-or-cast-1): (Just after
CASE 2) Remove the check for the absence of a suffix construct
after a function declaration with only types (no identifiers) in
the parentheses. Also, accept a function declaration with just a
type inside the parentheses, if this type can be positively
recognised as such, or if a prefix keyword like "explicit" nails
down the construct as a declaration.
2013-10-19 15:11:07 +00:00
Xue Fuqiao
8d02f0ad3b
Add indexes for the ‘:box’ face attribute.
...
* doc/lispref/display.texi (Face Attributes): Add indexes for the ‘:box’ face attribute.
2013-10-19 21:53:01 +08:00
Eli Zaretskii
58ce0cfc08
Fix TTY menus when they lead to a minibuffer prompt.
...
lisp/menu-bar.el (tty-menu-navigation-map): Bind mouse-N to perform
TTY menu actions and down-mouse-N to tty-menu-ignore. This solves
the problem whereby selecting a menu item that leads to a
minibuffer prompt moves the cursor out of the minibuffer window,
making it hard to type at the prompt. Suggested by Stefan Monnier
<monnier@iro.umontreal.ca>.
2013-10-19 11:35:51 +03:00
Jan Djärv
50e28e7d3e
* menu-bar.el: Don't make Services menu.
2013-10-19 10:23:43 +02:00
Rüdiger Sonderfeld
7deed4bf2a
ffap.el: handle "/usr/include/c++/<version>" directories.
...
Ref: http://lists.gnu.org/archive/html/emacs-devel/2013-09/msg00387.html
* lisp/ffap.el (ffap-alist): Use ffap-c++-mode for c++-mode.
(ffap-c++-path): New variable.
(ffap-c++-mode): New function.
2013-10-18 19:35:20 -07:00
Joe Vornehm Jr.
7bcb455b5f
* lisp/ido.el (dired-other-frame): Only list directories.
...
Fixes: debbugs:15638
2013-10-18 20:39:31 -04:00
Xue Fuqiao
74f202ae2d
Another index for line height.
2013-10-18 22:27:44 +08:00
Xue Fuqiao
917ac5ebf7
* doc/lispref/display.texi (Line Height): Add an index for line height.
2013-10-18 22:22:55 +08:00
Eli Zaretskii
c4e3099ff4
Fix clicks on the menu bar when GPM mouse is in use.
...
src/keyboard.c (make_lispy_event): Remove GPM-specific code that
handles mouse clicks. Instead, let GPM use the same code as all
the other mice use. See the discussion starting at
http://lists.gnu.org/archive/html/emacs-devel/2013-10/msg00521.html
for the details of the problem with the menu bar this fixes.
2013-10-18 16:33:25 +03:00
Dmitry Antipov
d141d70112
Remove port-specific display name lists to avoid extra
...
complexity and data duplication with display info lists.
* xterm.h (x_display_name_list): Remove declaration.
* xterm.c (x_display_name_list): Remove.
(x_term_init, x_delete_display, syms_of_xterm): Adjust users.
* xfns.c (x_display_info_for_name, Fx_display_list):
Likewise. Use x_display_list where appropriate.
* w32term.h (w32_display_name_list): Remove declaration.
* w32term.c (w32_display_name_list): Remove.
(w32_initialize_display_info, x_delete_display, syms_of_w32term):
Adjust users.
* w32fns.c (x_display_info_for_name, Fx_display_list):
Likewise. Use x_display_list where appropriate.
* nsterm.h (ns_display_name_list): Remove declaration.
* nsterm.m (ns_display_name_list): Remove.
(ns_term_init, syms_of_nsterm): Adjust users.
* nsfns.m (ns_display_info_for_name, Fx_display_list):
Likewise. Use x_display_list where appropriate.
* termhooks.h (TERMINAL_FONT_CACHE): New macro.
* alloc.c (toplevel) [HAVE_WINDOW_SYSTEM]: Include TERM_HEADER.
(mark_terminals): Mark per-terminal font cache.
2013-10-18 16:57:44 +04:00
Michael Albinus
f0ff1cd576
* net/tramp-smb.el (tramp-smb-maybe-open-connection): Fix an error
...
introduced on 2013-09-08, which results in an infinite loop
requesting a password.
2013-10-18 12:22:02 +02:00
Reuben Thomas
0fc459a3f1
Remove erroneously-committed merge comment.
2013-10-18 09:48:33 +01:00
Glenn Morris
d64da4b71a
* lisp/progmodes/verilog-mode.el (verilog-case-fold): Add :version.
2013-10-18 00:56:45 -07:00
Wilson Snyder
ea89ff08fb
Sync with upstream verilog-mode revision 1a6ecec7
...
* progmodes/verilog-mode.el (verilog-mode-version): Update.
(verilog-mode-release-date): Remove.
(verilog-highlight-grouping-keywords, verilog-active-low-regexp)
(verilog-auto-inst-param-value, verilog-auto-input-ignore-regexp)
(verilog-auto-inout-ignore-regexp, verilog-auto-output-ignore-regexp)
(verilog-auto-tieoff-ignore-regexp)
(verilog-auto-unused-ignore-regexp, verilog-typedef-regexp)
(verilog-scan-cache-preserving, verilog-mode, verilog-at-struct-p)
(verilog-signals-with, verilog-dir-cache-preserving)
(verilog-auto-inst, verilog-auto-inout-param, verilog-auto): Doc fixes.
(verilog-case-fold): New option, to control case folding in
regexp searches, bug597.
(verilog-menu): Add verilog-sk-uvm-component, minor tweaks.
(verilog-string-match-fold, verilog-in-paren-count)
(verilog-in-struct-nested-p, verilog-at-struct-mv-p)
(verilog-at-close-struct-p): New functions.
(verilog-beg-block-re-ordered, verilog-extended-case-re)
(verilog-forward-sexp, verilog-set-auto-endcomments):
(verilog-leap-to-case-head): Handle "unique0" case.
(verilog-in-constraint-re): New constant.
(verilog-keywords, verilog-type-font-keywords):
Add some SystemVerilog 1800-2012 keywords.
(verilog-label-be): Remove unimplemented argument, bug669.
(verilog-batch-execute-func): When batch expanding clear create-lockfiles
to prevent spurious user locks when a file ends up not changing.
(verilog-calculate-indent, verilog-calc-1)
(verilog-at-close-constraint-p, verilog-at-constraint-p)
(verilog-do-indent): Fix indentation of nested constraints and structures.
(verilog-sig-tieoff, verilog-typedef-name-p, verilog-auto-inst)
(verilog-auto-inst-param): Use verilog-string-match-fold.
(verilog-read-inst-module-matcher): Fix AUTOINST on gate primitives with #1 .
(verilog-read-decls): Fix double-declaring user-defined typed signals.
Reads all user-defined typed variables.
(verilog-read-defines): Fix reading definitions inside comments, bug647.
(verilog-signals-matching-regexp)
(verilog-signals-not-matching-regexp, verilog-auto):
Respect verilog-case-fold.
(verilog-diff-report): Fix line count.
(verilog-auto-assign-modport): Remove unused local `modi'.
(verilog-auto-inst-port): Support [][] in AUTO_TEMPLATE to
better handle multidimensional arrays.
Fix packed array ports misadding bit index in AUTOINST, bug637.
(verilog-auto-output, verilog-auto-input): Fix AUTOINPUT and AUTOOUTPUT
to not double-declare existing outputs and inputs, respectively.
(verilog-template-map): Bind U to verilog-sk-uvm-component.
(verilog-sk-uvm-object): Rename from verilog-sk-uvm-class.
(verilog-sk-uvm-component): New skeleton.
(verilog-submit-bug-report): Add verilog-case-fold,
remove verilog-mode-release-date.
2013-10-18 00:46:36 -07:00
Glenn Morris
81b9ca36da
Standardize license notice
2013-10-18 00:03:48 -07:00
Barry O'Reilly
ef56692035
Don't run timers in input-pending-p. Its new check-timers param
...
provides the prior behavior..
* src/keyboard.c (Finput_pending_p): Accept optional check-timers
param.
* lisp/subr.el (sit-for): Call (input-pending-p t) so as to behave
as before.
* test/automated/timer-tests.el: New file. Tests that (sit-for 0)
allows another timer to run.
Fixes: debbugs:15045
2013-10-18 00:27:34 -04:00
Reuben Thomas
29df8a0b10
* lisp/textmodes/remember.el (remember): set buffer-offer-save in
...
remember buffers.
2013-10-18 03:26:28 +01:00
Daniel Colascione
04a19a79ba
IELM improvements.
2013-10-17 16:55:15 -08:00
Michael Albinus
4c1f03efec
Code cleanup.
...
* net/tramp.el (tramp-debug-message): Do not check for connection
buffer.
(tramp-message): Use "vector" connection property.
* net/tramp.el (tramp-rfn-eshadow-update-overlay)
(tramp-equal-remote, tramp-eshell-directory-change)
* net/tramp-adb.el (tramp-adb-handle-copy-file)
(tramp-adb-handle-rename-file)
* net/tramp-cmds.el (tramp-list-remote-buffers)
(tramp-cleanup-connection, tramp-cleanup-this-connection)
* net/tramp-compat.el (tramp-compat-process-running-p)
* net/tramp-ftp.el (tramp-ftp-file-name-handler)
* net/tramp-gvfs.el (tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-rename-file)
* net/tramp-sh.el (tramp-sh-handle-set-file-times)
(tramp-set-file-uid-gid)
* net/tramp-smb.el (tramp-smb-handle-copy-file)
(tramp-smb-handle-rename-file): Use `tramp-tramp-file-p' instead
of `file-remote-p'.
* net/tramp.el (tramp-connectable-p, tramp-handle-file-remote-p)
* net/tramp-gw.el (tramp-gw-gw-proc-sentinel)
(tramp-gw-aux-proc-sentinel, tramp-gw-process-filter)
(tramp-gw-open-network-stream): Suppress unrelated traces.
* net/tramp-adb.el (tramp-adb-maybe-open-connection)
* net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch)
* net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
* net/tramp-smb.el (tramp-smb-maybe-open-connection): Set "vector"
connection property.
* net/tramp-cache.el (top): Suppress traces when reading
presistency file.
* net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch):
Refactor common code. Improve debug message.
(tramp-maybe-open-connection)
* net/tramp-smb.el (tramp-smb-call-winexe): Do not request
connection buffer too early.
* net/tramp-smb.el (tramp-smb-actions-get-acl): New defconst, renamed
from `tramp-smb-actions-with-acl'.
(tramp-smb-actions-set-acl): New defconst.
(tramp-smb-handle-copy-directory)
(tramp-smb-action-get-acl): New defun, renamed from
`tramp-smb-action-with-acl'.
(tramp-smb-action-set-acl): New defun.
(tramp-smb-handle-set-file-acl): Rewrite.
2013-10-17 21:39:22 +02:00
Glenn Morris
642eb8b6af
* lisp/indent.el (indent-rigidly): Fix 2013-10-08 change.
...
Fixes: debbugs:15635
2013-10-17 15:31:11 -04:00
Xue Fuqiao
14cf4bfea9
Continuation of previous change.
2013-10-17 21:56:37 +08:00
Xue Fuqiao
475c7d3f4f
* doc/lispref/display.texi (Width): Fix arguments of ‘truncate-string-to-width’.
2013-10-17 21:46:44 +08:00
Xue Fuqiao
12b10f017c
Trivial doc fix.
2013-10-17 19:43:40 +08:00
Paul Eggert
3d798ba7db
Make some functions static in non-Microsoft builds.
...
On my platform (Fedora 19 x86-64), this shrinks the
Emacs executable (text+data) by 0.25%.
* dispextern.h (erase_phys_cursor) [!WINDOWSNT]:
(load_color) [!MSDOS]:
* gnutls.h (emacs_gnutls_transport_set_errno) [!WINDOWSNT]:
* keyboard.h (make_ctrl_char) [!WINDOWSNT]:
* lisp.h (check_existing):
* process.h (conv_sockaddr_to_lisp, network_interface_list)
(network_interface_info) [!WINDOWSNT]:
* termhooks.h (encode_terminal_code) [!WINDOWSNT]:
Remove extern decls.
* fileio.c (check_existing):
* keyboard.c (make_ctrl_char) [!WINDOWSNT]:
* process.c (conv_sockaddr_to_lisp, network_interface_list)
(network_interface_info) [!WINDOWSNT]:
* term.c (encode_terminal_code) [!WINDOWSNT]:
* xdisp.c (erase_phys_cursor) [!WINDOWSNT]:
* xfaces.c (load_color) [!MSDOS]:
Now static.
* fileio.c (check_existing, check_executable, check_writable):
* process.c (network_interface_list, network_interface_info):
Move earlier, so that we don't need forward decls.
* gnutls.c (fn_gnutls_transport_set_errno)
(emacs_gnutls_transport_set_errno) [!WINDOWNT]:
Remove; unused.
* w32.c (init_environment): Use faccessat rather than
check_existing, partly for consistency with the rest of the code
in this file, partly so that check_existing can be static.
2013-10-16 23:42:21 -07:00
Stefan Monnier
921c1d6298
* lisp/skeleton.el (skeleton-newline): Remove.
...
(skeleton-internal-1): Use (insert "\n") instead.
2013-10-17 00:51:05 -04:00
Stefan Monnier
e333fb100b
* lisp/emacs-lisp/lisp.el (lisp-completion-at-point): Complete var names for
...
let-bindings.
2013-10-17 00:49:42 -04:00
Stefan Monnier
85527ff309
* lisp/progmodes/sh-script.el (sh-find-prev-matching): Disable SMIE's
...
forward-sexp-function while we redo its job.
Fixes: debbugs:15613
2013-10-16 23:56:51 -04:00
Jay Belanger
c8722a9799
* calc/calc-comb.el (math-prime-test): Don't assume large integers are
...
represented by lists.
* doc/misc/calc.el (Data Type Formats): Don't specify the size at
which integers begin to be represented by lists.
2013-10-16 22:37:05 -05:00
Paul Eggert
bb9937df2d
Make VALMASK visible to GDB even if clang is used.
...
* emacs.c (MAIN_PROGRAM): New macro.
* lisp.h (DEFINE_GDB_SYMBOL_BEGIN, DEFINE_GDB_SYMBOL_END): New macros.
(ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG, VALMASK): Use them.
Fixes: debbugs:15574
2013-10-16 20:08:59 -07:00
Paul Eggert
f2752e013d
bool vector int width fixes
...
* data.c (bool_vector_spare_mask, Fbool_vector_count_matches)
(Fbool_vector_count_matches_at):
Use EMACS_INT, not ptrdiff_t, to record bit counts, as a bit count
can exceed PTRDIFF_MAX, at least in theory.
(Fbool_vector_count_matches_at):
Use int, not ptrdiff_t, to record a value that can't exceed INT_MAX.
2013-10-16 18:02:32 -07:00
Glenn Morris
7a550bbb1a
* lisp/tmm.el (tmm--history): New dynamic variable.
...
(tmm-prompt): Use tmm--history in place of `history'.
Fixes: debbugs:15623
2013-10-16 14:23:15 -04:00
Paul Eggert
0a2b8e3c26
* process.h (conv_sockaddr_to_lisp): New decl, for newly-extern func.
...
(struct sockaddr): Add forward decl, for platforms that lack it.
2013-10-16 10:36:04 -07:00
Jan Djärv
2318fccaa6
* nsselect.m (ns_string_from_pasteboard): Remove Fquit, just return
...
Qnil.
Fixes: debbugs:15628
2013-10-16 18:55:45 +02:00
Eli Zaretskii
3dffe39591
Implement network-interface-* functions for MS-Windows (bug #15610 ).
...
src/w32.c (network_interface_get_info, network_interface_list)
(network_interface_info): New functions.
(GetAdaptersInfo_Proc): New typedef.
(get_adapters_info): New wrapper function.
(globals_of_w32): Initialize g_b_init_get_adapters_info.
src/process.h (network_interface_list, network_interface_info): New
prototypes.
src/process.c (conv_sockaddr_to_lisp): Now externally-visible.
(Fnetwork_interface_list, Fnetwork_interface_info): Define for
all systems. Return non-nil for systems that HAVE_NET_IF_H and
for WINDOWSNT. Doc fix.
(syms_of_process): Defsubr Snetwork_interface_list and
Snetwork_interface_info unconditionally.
2013-10-16 18:44:02 +03:00