Eli Zaretskii
f34729eaec
Fix submenus and screen restoration.
2013-09-24 19:07:35 +03:00
Eli Zaretskii
df78230943
Use overriding-terminal-local-map for menu navigation.
2013-09-23 16:15:29 +03:00
Eli Zaretskii
7ace926507
Half-solution for menus popped up by mouse clicks.
2013-09-22 18:23:06 +03:00
Eli Zaretskii
824682ea45
Restore help-echo for menu items, ifdef away unneeded MSDOS code.
2013-09-22 14:07:12 +03:00
Eli Zaretskii
474163ac51
Prevent redisplay and keystroke echo during menu navigation.
2013-09-22 13:47:58 +03:00
Eli Zaretskii
f0177f86f7
Fix infinite loop in menu input due to block_input.
2013-09-21 17:53:04 +03:00
Eli Zaretskii
e11a3bd1d1
Make F10 pop up the File menu.
2013-09-19 18:25:55 +03:00
Eli Zaretskii
2fa833dafe
Fix a blatant bug in restore_current_matrix.
2013-09-19 16:51:38 +03:00
Eli Zaretskii
9e30f0e14e
Fix a buglet in calculating menu width.
2013-09-19 15:03:40 +03:00
Eli Zaretskii
fa93733d34
Fixed screen restoration after popping down a menu.
2013-09-19 14:28:37 +03:00
Eli Zaretskii
96114a3014
Fixed frame save/restore and 'mouse position' tracking.
2013-09-19 13:06:12 +03:00
Eli Zaretskii
a01f89afb4
Fixed minor issues with truncation of menu items.
2013-09-18 23:31:07 +03:00
Eli Zaretskii
42a1ea0411
No need to pay attention to window margins.
2013-09-18 19:20:37 +03:00
Eli Zaretskii
8a0529f22e
Record and use cursor coordinates in menu. Active face and help echo work!
2013-09-18 18:49:42 +03:00
Eli Zaretskii
0de83597c9
Crude code to simulate keyboard/mouse input in menus via GDB.
2013-09-18 14:33:22 +03:00
Eli Zaretskii
06284c3256
Fixed the menu item encoding for tty menus.
2013-09-18 11:51:45 +03:00
Eli Zaretskii
28a1644921
Turn off text cursor when dropping down menus.
2013-09-18 11:26:03 +03:00
Eli Zaretskii
f1303b5259
Converted compile-time tests to run-time tests. Menus display!
2013-09-17 20:38:40 +03:00
Eli Zaretskii
dfe3ac0296
Use AREF instead of XVECTOR; crashes still here.
2013-09-17 18:58:43 +03:00
Eli Zaretskii
342cf49489
Fixed display and padding of menu items; File menu displays OK.
2013-09-17 18:31:37 +03:00
Eli Zaretskii
ffc3882f6c
Minor fixes to interfaces, avoid assertion violation under GLYPH_DEBUG.
2013-09-17 15:47:37 +03:00
Eli Zaretskii
5877bb8d7e
Removed unnecessary tests for GUI sessions and created menu faces.
2013-09-05 15:43:11 +03:00
Eli Zaretskii
e7873136dd
Fixed C compilation problems.
2013-09-05 14:00:55 +03:00
Eli Zaretskii
50a5f95ec5
Made HAVE_MENUS the default; comment fix in term.c.
2013-09-05 11:33:03 +03:00
Eli Zaretskii
4130631877
Merge from trunk after a lot of time.
2013-09-05 11:01:04 +03:00
Dmitry Antipov
257b3b03cb
Make --without-x compatible with --enable-gcc-warnings.
...
* configure.ac: If both --without-x and --enable-gcc-warnings are
specified, use -Wno-unused-variable, -Wno-unused-but-set-variable
and -Wno-unused-but-set-parameter.
* src/font.c (register_font_driver): Move check under HAVE_WINDOW_SYSTEM.
* src/font.h (struct font_driver): Move draw, get_bitmap and free_bitmap
members under HAVE_WINDOW_SYSTEM.
* src/keyboard.c (make_lispy_focus_out): Likewise.
(record_menu_key): Move under HAVE_MENUS.
* src/xdisp.c (toplevel): Move hourglass_shown_p, hourglass_atimer and
THIN_SPACE_WIDTH under HAVE_WINDOW_SYSTEM.
(syms_of_xdisp): Adjust user.
(window_box_edges): Define only if HAVE_WINDOW_SYSTEM.
(start_hourglass, cancel_hourglass):
* src/xfaces.c (toplevel): Likewise with PT_PER_INCH,
clear_font_table_count, CLEAR_FONT_TABLE_COUNT
and CLEAR_FONT_TABLE_NFONTS.
(set_font_frame_param, clear_face_gcs, realize_non_ascii_face):
Declare only if HAVE_WINDOW_SYSTEM.
(lface_same_font_attributes_p, clear_face_gcs): Define only
if HAVE_WINDOW_SYSTEM.
2013-09-05 10:25:12 +04:00
Dmitry Antipov
98b7f4bdef
* frame.c (check_minibuf_window): Update 'frame' with frame pointer.
...
* xterm.c (x_scroll_bar_handle_click) [!USE_TOOLKIT_SCROLL_BARS]:
Don't pass C integer to XINT (tiny fix for 2013-09-03 change).
2013-09-05 07:51:37 +04:00
Stefan Monnier
c0458e0b21
* lisp/subr.el (pop): Use `car-safe'.
...
* lisp/emacs-lisp/byte-opt.el (byte-optimize-form-code-walker): Remove hack
to detect unused `pop' return value.
* lisp/emacs-lisp/advice.el (defadvice): Add indent rule.
* lisp/international/mule-cmds.el: Require CL.
(find-coding-systems-for-charsets): Avoid add-to-list.
(sanitize-coding-system-list): New function, extracted from
select-safe-coding-system-interactively.
(select-safe-coding-system-interactively): Use it.
(read-input-method-name): Accept symbols for `default'.
* lisp/progmodes/python.el (python-nav-beginning-of-block): Remove unused
var `block-regexp'.
(python-nav--forward-sexp): Remove unused var `re-search-fn'.
(python-fill-string): Remove unused var `marker'.
(python-skeleton-add-menu-items): Remove unused var `items'.
2013-09-04 23:46:34 -04:00
Daniel Hackney
6c42fc3efb
* lisp/dired-x.el:
...
* lisp/net/ange-ftp.el:
* lisp/net/browse-url.el:
* lisp/net/dbus.el:
* lisp/net/eudc.el:
* lisp/net/eudcb-ldap.el:
* lisp/net/eww.el:
* lisp/net/imap.el:
* lisp/printing.el:
* lisp/vc/ediff-diff.el:
* lisp/vc/ediff-init.el:
* lisp/vc/ediff-merg.el:
* lisp/vc/ediff-mult.el:
* lisp/vc/ediff-util.el:
* lisp/vc/ediff-wind.el:
* lisp/vc/ediff.el:
* lisp/vc/emerge.el:
* lisp/vc/pcvs.el:
* vc/vc-annotate.el: Prefix unused arguments with `_' to silence
byte compiler. Remove some unused let-bound variables.
2013-09-04 23:30:07 -04:00
Stefan Monnier
4c528aabaa
* lisp/emacs-lisp/cconv.el: Use car-safe' rather than car' to access
...
a "ref-cell", since it gets better optimized.
Fixes: debbugs:14883
2013-09-04 23:05:44 -04:00
Stefan Monnier
a7e43722c7
* src/cmds.c (Fself_insert_command): Don't pass a non-integer to XINT.
2013-09-04 22:27:13 -04:00
Glenn Morris
2a6f417413
* semantic/fw.el (semantic-make-local-hook): Simplify by dropping Emacs <= 20.
2013-09-04 20:22:45 -04:00
Glenn Morris
bd15c39024
* lisp/progmodes/cc-awk.el (c-forward-sws): Declare.
2013-09-04 20:12:36 -04:00
Glenn Morris
1c3ac2e53e
rul-generic-mode-syntax-table fix for recent cc-mode changes
...
* lisp/generic-x.el [rul-generic-mode]: Require cc-mode.
(c++-mode-syntax-table): Declare.
(rul-generic-mode-syntax-table): Init in the defvar.
2013-09-04 19:55:08 -04:00
Paul Eggert
0c90b9eed9
* alloc.c (make_event_array): First arg is now ptrdiff_t, not int.
...
This fixes a type error on hosts where ptrdiff_t is wider than int.
2013-09-04 15:34:04 -07:00
Stefan Monnier
9c750ebae6
* lisp/vc/vc-dispatcher.el (vc-run-delayed): New macro.
...
(vc-do-command, vc-set-async-update):
* lisp/vc/vc-mtn.el (vc-mtn-dir-status):
* lisp/vc/vc-hg.el (vc-hg-dir-status, vc-hg-dir-status-files)
(vc-hg-pull, vc-hg-merge-branch):
* lisp/vc/vc-git.el (vc-git-dir-status-goto-stage, vc-git-pull)
(vc-git-merge-branch):
* lisp/vc/vc-cvs.el (vc-cvs-print-log, vc-cvs-dir-status)
(vc-cvs-dir-status-files):
* lisp/vc/vc-bzr.el (vc-bzr-pull, vc-bzr-merge-branch, vc-bzr-dir-status)
(vc-bzr-dir-status-files):
* lisp/vc/vc-arch.el (vc-arch-dir-status): Use vc-run-delayed.
* lisp/vc/vc-annotate.el: Use lexical-binding.
(vc-annotate-display-select, vc-annotate): Use vc-run-delayed.
(vc-sentinel-movepoint): Declare.
(vc-annotate): Don't use `goto-line'.
* lisp/vc/vc.el (vc-diff-internal): Prefer a closure to `(lambda...).
(vc-diff-internal, vc-log-internal-common): Use vc-run-delayed.
(vc-sentinel-movepoint): Declare.
* lisp/vc/vc-svn.el: Use lexical-binding.
(vc-svn-dir-status, vc-svn-dir-status-files): Use vc-run-delayed.
* lisp/vc/vc-sccs.el:
* lisp/vc/vc-rcs.el: Use lexical-binding.
2013-09-04 17:09:42 -04:00
Stefan Monnier
abae272cce
* lisp/autorevert.el (auto-revert-notify-handler): Explicitly ignore
...
`deleted'. Don't drop errors silently.
2013-09-04 16:56:54 -04:00
Stefan Monnier
6629638eb3
* src/keyboard.c (read_key_sequence_vs): New function.
...
(Fread_key_sequence_vector, Fread_key_sequence): Use it to factor out
common code.
2013-09-04 16:32:22 -04:00
Stefan Monnier
d99760fa44
* src/callint.c (Fcall_interactively): Always return a vector for 'K'.
2013-09-04 16:22:37 -04:00
Stefan Monnier
52b1cc7915
* lisp/emacs-lisp/gv.el (gv-get): Warn about CL-compiled places.
2013-09-04 16:03:52 -04:00
Paul Eggert
224e313d3b
Makefile improvements.
...
* Makefile.in (lib): Depend on am--refresh, to avoid a race.
(src): Remove duplicate dependency on FRC.
Invoke just one submake, not two. Avoid the need for 'pwd'.
* lwlib/Makefile.in (all): Put this first. Don't use double-colon
rules, as they are not portable according to POSIX. Mark as phony.
* oldXMenu/Makefile.in (all, tags): Don't use double-colon rules, as they
are not portable according to POSIX. Mark as phony.
* src/Makefile.in (config.status): Don't use double-colon rules, as
they are not portable according to POSIX. Fix shell typo with `;
I guess this rule has never been tested?
(VCSWITNESS): New macro, to override any environment var.
2013-09-03 23:45:44 -07:00
Dmitry Antipov
6d6ed1af81
* xterm.h (struct x_display_info): Do not track X connection
...
fd separately because it is always available from Display.
* xterm.c (x_term_init, x_delete_terminal, x_delete_display):
Adjust users.
2013-09-04 08:02:56 +04:00
Xue Fuqiao
adf2fc4a01
Merge from mainline.
2013-09-04 08:39:34 +08:00
Xue Fuqiao
63191d9f20
Some fixes for vc-ignore.
...
* lisp/vc/vc.el (vc-ignore): Rewrite.
(vc-default-ignore): New function.
(vc-default-ignore-completion-table): Use find-ignore-file.
* lisp/vc/vc-bzr.el (vc-bzr-ignore, vc-bzr-ignore-completion-table):
* lisp/vc/vc-git.el (vc-git-ignore, vc-git-ignore-completion-table):
* lisp/vc/vc-hg.el (vc-hg-ignore, vc-hg-ignore-completion-table):
Remove. Most code moved to vc.el.
* doc/emacs/maintaining.texi (VC Ignore): Mention `vc-ignore' with prefix argument.
2013-09-04 08:31:13 +08:00
Stefan Monnier
38726039b7
* lisp/net/tramp-gvfs.el (tramp-gvfs-mount-spec, tramp-synce-list-devices):
...
* lisp/net/tramp-smb.el (tramp-smb-get-file-entries):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-directory)
(tramp-compute-multi-hops): Fix misuses of `add-to-list'.
2013-09-03 16:14:58 -04:00
Stefan Monnier
fde38d4978
* lisp/finder.el (finder-compile-keywords): Don't mess with windows.
...
* lisp/net/eww.el (eww-display-raw): Remove unused argument `charset'.
Update call to it.
(eww-change-select): Remove unused var `properties'.
(eww-make-unique-file-name): Remove unused var `base'.
2013-09-03 15:49:54 -04:00
Stefan Monnier
84032db718
* lisp/calculator.el (calculator-funcall): Fix typo in last change.
2013-09-03 15:44:02 -04:00
Stefan Monnier
724f5e41b6
* lisp/vc/vc-git.el (vc-git-checkin): Make it possible to commit a merge.
2013-09-03 14:28:06 -04:00
Stefan Monnier
14b511d4e5
* lisp/emacs-lisp/package.el (package-activate-1): Don't let a missing
...
<pkg>-autoloads.el file stop us.
2013-09-03 14:21:41 -04:00
Stefan Monnier
9d3f707c59
* lisp/net/tramp.el (with-parsed-tramp-file-name): Silence compiler
...
warnings, and factor our common code.
2013-09-03 12:23:10 -04:00