bpt/emacs.git
10 years agoPort the font backend from the Mac port.
Jan Djärv [Sun, 15 Sep 2013 17:58:46 +0000 (19:58 +0200)]
Port the font backend from the Mac port.

* configure.ac: Add check for OSX 10.5, required for macfont.o.

* etc/NEWS: Mention the macfont backend.

* src/Makefile.in (NS_OBJ, SOME_MACHINE_OBJECTS): Add macfont.o.

* src/font.c (syms_of_font): Call syms_of_macfont.

* src/font.h: Declare syms_of_macfont.

* src/nsfns.m: Include macfont.h.
(Fx_create_frame): Register macfont driver, make a better default font.
(Fns_popup_font_panel): Get font from macfont driver, if used.

* src/nsfont.m (ns_tmp_flags, ns_tmp_font): Remove.
(nsfont_open): Set font driver type.
Set font->ascent and font->descent.  Figure out font instead of
ns_tmp_font, and flags instead of ns_tmp_flags.
Fix indentation. Remove call to ns_draw_text_decoration,
moved to nsterm.

* src/nsterm.m: Include macfont.h.
(ns_tmp_flags, ns_tmp_font): Remove.
(ns_compute_glyph_string_overhangs): Check for driver Qns.
(ns_draw_glyph_string): Use local variables instead of ns_tmp_flags,
ns_tmp_font.  Call ns_draw_text_decoration here instead of nsfont.m.
(changeFont:): Fix code style.  Check for font driver type when
getiing font.

* src/nsterm.h (FONT_DESCENT, FONT_ASCENT): Define to (f)->ascent and
(f)->descent.

10 years agoIn window--state-put-2 don't process buffer state when buffer doesn't exist (Bug...
Martin Rudalics [Sun, 15 Sep 2013 16:08:04 +0000 (18:08 +0200)]
In window--state-put-2 don't process buffer state when buffer doesn't exist (Bug#15382).

* window.el (window--state-put-2): Don't process buffer state
when buffer doesn't exist any more (Bug#15382).

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Sun, 15 Sep 2013 10:22:42 +0000 (06:22 -0400)]
Auto-commit of loaddefs files.

10 years agoDrop VERTICAL_SCROLL_BAR_WIDTH_TRIM. For X, it is zero since 1999,
Dmitry Antipov [Sun, 15 Sep 2013 08:28:30 +0000 (12:28 +0400)]
Drop VERTICAL_SCROLL_BAR_WIDTH_TRIM.  For X, it is zero since 1999,
and it is always zero for others, so I assume that this is an ancient
leftover which nobody will want to change any more.
* xterm.h, w32term.h, nsterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Remove.
(VERTICAL_SCROLL_BAR_INSIDE_WIDTH):
* frame.c (x_set_scroll_bar_width):
* w32fns.c (w32_createscrollbar):
* w32term.c (w32_set_vertical_scroll_bar):
* xfns.c (x_set_scroll_bar_default_width):
* xterm.c (XTflash, x_scroll_bar_create, XTset_vertical_scroll_bar)
(x_scroll_bar_expose): Related users changed.

10 years ago* xterm.c, xfns.c (toplevel): Remove #ifdef HAVE_X_WINDOWS because
Dmitry Antipov [Sun, 15 Sep 2013 07:48:25 +0000 (11:48 +0400)]
* xterm.c, xfns.c (toplevel): Remove #ifdef HAVE_X_WINDOWS because
these modules are never compiled otherwise.

10 years ago* xterm.h (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET) [USE_X_TOOLKIT]:
Dmitry Antipov [Sun, 15 Sep 2013 07:28:38 +0000 (11:28 +0400)]
* xterm.h (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET) [USE_X_TOOLKIT]:
Define as such.
* w32term.h (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
Remove unused Xisms.

10 years ago* frame.h (FRAME_SMALLEST_CHAR_WIDTH, FRAME_SMALLEST_FONT_HEIGHT):
Dmitry Antipov [Sun, 15 Sep 2013 07:06:05 +0000 (11:06 +0400)]
* frame.h (FRAME_SMALLEST_CHAR_WIDTH, FRAME_SMALLEST_FONT_HEIGHT):
Define once here...
* nsterm.h, w32term.h, xterm.h: ...and not here.

10 years ago* xterm.h (FRAME_X_SCREEN_NUMBER): Add comment.
Dmitry Antipov [Sun, 15 Sep 2013 06:50:41 +0000 (10:50 +0400)]
* xterm.h (FRAME_X_SCREEN_NUMBER): Add comment.
(BLACK_PIX_DEFAULT, WHITE_PIX_DEFAULT): Use FRAME_X_SCREEN_NUMBER.

10 years ago* eshell/em-unix.el (eshell/rm): Make -f ignore missing files.
Glenn Morris [Sun, 15 Sep 2013 00:35:54 +0000 (17:35 -0700)]
* eshell/em-unix.el (eshell/rm): Make -f ignore missing files.
Does not work until bug=15379 gets fixed.

Fixes: debbugs:15373

10 years ago* lisp/eshell/esh-cmd.el (eshell--local-vars): New variable.
Glenn Morris [Sun, 15 Sep 2013 00:10:45 +0000 (17:10 -0700)]
* lisp/eshell/esh-cmd.el (eshell--local-vars): New variable.
(eshell-rewrite-for-command): Add for loop vars to eshell--local-vars.

* lisp/eshell/esh-var.el (eshell-get-variable): Respect eshell--local-vars.

* test/automated/eshell.el (eshell-test/for-name-shadow-loop):
New test.
(eshell-test/for-loop, eshell-test/for-name-loop): Doc fix.

Fixes: debbugs:15372

10 years ago* eshell/esh-var.el (eshell-variable-aliases-list): Fix doc typo.
Glenn Morris [Sat, 14 Sep 2013 23:55:15 +0000 (16:55 -0700)]
* eshell/esh-var.el (eshell-variable-aliases-list): Fix doc typo.

10 years ago* doc/misc/eshell.texi: Markup fixes.
Glenn Morris [Sat, 14 Sep 2013 23:47:54 +0000 (16:47 -0700)]
* doc/misc/eshell.texi: Markup fixes.

10 years ago* erc.el (erc-update-mode-line-buffer): Handle absent topic.
Vivek Dasmohapatra [Sat, 14 Sep 2013 23:33:19 +0000 (16:33 -0700)]
* erc.el (erc-update-mode-line-buffer): Handle absent topic.

Fixes: debbugs:15377

10 years agoMinor fixes for last change in lispref/display.texi.
Eli Zaretskii [Sat, 14 Sep 2013 16:33:12 +0000 (19:33 +0300)]
Minor fixes for last change in lispref/display.texi.

Fixes: debbugs:15375

10 years agoFix last change in lispref/display.texi.
Eli Zaretskii [Sat, 14 Sep 2013 15:34:33 +0000 (18:34 +0300)]
Fix last change in lispref/display.texi.

Fixes: debbugs:15375

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Sat, 14 Sep 2013 10:19:38 +0000 (06:19 -0400)]
Auto-commit of loaddefs files.

10 years agoFix src/ChangeLog entry of last commit.
Eli Zaretskii [Sat, 14 Sep 2013 09:26:42 +0000 (12:26 +0300)]
Fix src/ChangeLog entry of last commit.

10 years agoFix bug #15375 with inaccurate docs of display margin width values.
Eli Zaretskii [Sat, 14 Sep 2013 09:24:34 +0000 (12:24 +0300)]
Fix bug #15375 with inaccurate docs of display margin width values.

 doc/lispref/display.texi (Display Margins): State the units of measuring
 margin width.

 src/buffer.c (syms_of_buffer) <left-margin-width, right-margin-width>:
 Doc fix.

10 years ago* lisp/dired-x.el (dired-guess-default): Make `file' available in the env.
Glenn Morris [Fri, 13 Sep 2013 17:28:34 +0000 (13:28 -0400)]
* lisp/dired-x.el (dired-guess-default): Make `file' available in the env.
(dired-guess-shell-alist-user): Doc fix.

Fixes: debbugs:15363

10 years ago* test/automated/eshell.el (eshell-test/for-loop, eshell-test/for-name-loop):
Glenn Morris [Fri, 13 Sep 2013 17:13:52 +0000 (13:13 -0400)]
* test/automated/eshell.el (eshell-test/for-loop, eshell-test/for-name-loop):
Ensure environment variables don't confuse us.

10 years ago* frame.c (Fx_focus_frame) [HAVE_WINDOW_SYSTEM]: Fix last change.
Dmitry Antipov [Fri, 13 Sep 2013 16:55:48 +0000 (20:55 +0400)]
* frame.c (Fx_focus_frame) [HAVE_WINDOW_SYSTEM]: Fix last change.

10 years agoUnify Fx_focus_frame between all ports.
Dmitry Antipov [Fri, 13 Sep 2013 16:46:18 +0000 (20:46 +0400)]
Unify Fx_focus_frame between all ports.
* src/frame.h (x_focus_frame): New prototype.
* src/xfns.c (Fx_focus_frame): Remove.
(syms_of_xfns): Do not defsubr it.
(x_focus_frame): X implementation.
* src/nsfns.m (Fx_focus_frame): Remove.
(syms_of_nsfns): Do not defsubr it.
(x_focus_frame): NS implementation.
* src/w32term.c (Fx_focus_frame): Remove.
(x_focus_on_frame): Rename to...
(x_focus_frame): W32 implementation.
* src/w32term.h (x_focus_on_frame): Remove prototype.
* src/w32fns.c (Fx_focus_frame): Remove.
(syms_of_w32fns): Do not defsubr it.
* src/frame.c (Fx_focus_frame): Define here.
(syms_of_frame): Defsubr here.
* src/gtkutil.c (xg_tool_bar_callback): Use x_focus_frame.
* lisp/frame.el (x-focus-frame): Mark as declared in frame.c.

10 years ago* test/automated/eshell.el (eshell-test-command-result): Clean up when done
Glenn Morris [Fri, 13 Sep 2013 16:16:57 +0000 (09:16 -0700)]
* test/automated/eshell.el (eshell-test-command-result): Clean up when done

10 years ago* test/automated/eshell.el (eshell-test-command-result): New,
Glenn Morris [Fri, 13 Sep 2013 16:11:19 +0000 (09:11 -0700)]
* test/automated/eshell.el (eshell-test-command-result): New,
again using a temp directory.
Replace eshell-command-result with this throughout.

10 years agoUnify FRAME_window_system_DISPLAY_INFO macros between all ports.
Dmitry Antipov [Fri, 13 Sep 2013 15:03:51 +0000 (19:03 +0400)]
Unify FRAME_window_system_DISPLAY_INFO macros between all ports.
All of them are replaced with FRAME_DISPLAY_INFO, defined in
each port to reference the port-specific window system data.
* msdos.h (FRAME_X_DISPLAY_INFO): Remove.
(FRAME_DISPLAY_INFO): Define.
* w32term.h (FRAME_W32_DISPLAY_INFO, FRAME_X_DISPLAY_INFO): Remove.
(FRAME_DISPLAY_INFO): Define.  Adjust users.
* xterm.h (FRAME_X_DISPLAY_INFO): Remove.
(FRAME_DISPLAY_INFO): Define.  Adjust users.
* frame.h (FRAME_RES_X, FRAME_RES_Y): Unify.
* font.c, frame.c, gtkutil.c, image.c, menu.c, msdos.c, nsfns.m:
* nsfont.m, nsterm.m, w32fns.c, w32font.c, w32menu.c, w32term.c:
* w32xfns.c, widget.c, xdisp.c, xfaces.c, xfns.c, xfont.c, xmenu.c:
* xselect.c, xterm.c: All related users changed.

10 years ago* lisp/ls-lisp.el: Use advice-add.
Stefan Monnier [Fri, 13 Sep 2013 14:56:03 +0000 (10:56 -0400)]
* lisp/ls-lisp.el: Use advice-add.
(original-insert-directory): Remove.
(ls-lisp--insert-directory): Rename from insert-directory; add
`orig-fun' argument.
(insert-directory): Advise.

10 years agoFix bug #15337 with non-ASCII characters in file names used by ansi
Eli Zaretskii [Fri, 13 Sep 2013 13:22:47 +0000 (16:22 +0300)]
Fix bug #15337 with non-ASCII characters in file names used by ansi

 lisp/term.el (term-emulate-terminal): Decode the command string
 before passing it to term-command-hook.

10 years agodoc/lispref/text.texi (Not Intervals): Minor wording fix.
Eli Zaretskii [Fri, 13 Sep 2013 08:26:03 +0000 (11:26 +0300)]
doc/lispref/text.texi (Not Intervals): Minor wording fix.

10 years ago* lisp/erc/erc-desktop-notifications.el (dbus-debug): Declare.
Glenn Morris [Fri, 13 Sep 2013 07:34:15 +0000 (00:34 -0700)]
* lisp/erc/erc-desktop-notifications.el (dbus-debug): Declare.

10 years ago* lisp/gnus/mml2015.el (gnus-create-image): Autoload it.
Glenn Morris [Fri, 13 Sep 2013 07:30:32 +0000 (00:30 -0700)]
* lisp/gnus/mml2015.el (gnus-create-image): Autoload it.

10 years ago* lisp/gnus/gnus-spec.el (gnus-xmas-format): Fix weird error call.
Glenn Morris [Fri, 13 Sep 2013 07:28:16 +0000 (00:28 -0700)]
* lisp/gnus/gnus-spec.el (gnus-xmas-format): Fix weird error call.

10 years ago* lisp/gnus/gnus-html.el (image-size): Declare.
Glenn Morris [Fri, 13 Sep 2013 07:19:15 +0000 (00:19 -0700)]
* lisp/gnus/gnus-html.el (image-size): Declare.
(declare-function): Add compat stub for ancient Emacs.

10 years ago* eshell/esh-util.el (ange-cache): Move declaration earlier.
Glenn Morris [Fri, 13 Sep 2013 07:12:44 +0000 (00:12 -0700)]
* eshell/esh-util.el (ange-cache): Move declaration earlier.

10 years ago* lisp/eshell/esh-ext.el (eshell-search-path): Declare.
Glenn Morris [Fri, 13 Sep 2013 07:10:30 +0000 (00:10 -0700)]
* lisp/eshell/esh-ext.el (eshell-search-path): Declare.

10 years ago* lisp/eshell/em-prompt.el (eshell/pwd): Autoload it.
Glenn Morris [Fri, 13 Sep 2013 07:07:07 +0000 (00:07 -0700)]
* lisp/eshell/em-prompt.el (eshell/pwd): Autoload it.
Otherwise an error occurs if eshell-dirs module not loaded.

10 years agoSilence some url compilation warnings on systems without zlib
Glenn Morris [Fri, 13 Sep 2013 07:01:55 +0000 (00:01 -0700)]
Silence some url compilation warnings on systems without zlib

* url-http.el (url-handle-content-transfer-encoding):
* url-vars.el (url-mime-encoding-string): Silence compiler.

10 years ago* lisp/progmodes/gdb-mi.el (gud-cont, gud-step): Declare.
Glenn Morris [Fri, 13 Sep 2013 06:56:35 +0000 (23:56 -0700)]
* lisp/progmodes/gdb-mi.el (gud-cont, gud-step): Declare.

10 years ago* cedet/semantic/ia.el (semantic-ia-complete-symbol-menu):
Glenn Morris [Fri, 13 Sep 2013 06:37:39 +0000 (23:37 -0700)]
* cedet/semantic/ia.el (semantic-ia-complete-symbol-menu):
Comment it out, since it cannot work.

Fixes: debbugs:14522

10 years ago* net/tramp.el (tramp-check-proper-method-and-host): Rename it from
Michael Albinus [Fri, 13 Sep 2013 06:03:06 +0000 (08:03 +0200)]
* net/tramp.el (tramp-check-proper-method-and-host): Rename it from
`tramp-check-proper-host'.  Check for a valid method name.

* net/tramp-adb.el (tramp-adb-maybe-open-connection):
* net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
* net/tramp-sh.el (tramp-maybe-open-connection):
* net/tramp-smb.el (tramp-smb-maybe-open-connection): Call it.

* net/tramp-cache.el (tramp-cache-print): Don't print text properties
also for hash values.

10 years ago* xterm.h (x_window_to_frame, x_any_window_to_frame)
Dmitry Antipov [Fri, 13 Sep 2013 06:00:20 +0000 (10:00 +0400)]
* xterm.h (x_window_to_frame, x_any_window_to_frame)
(x_menubar_window_to_frame): Remove prototypes.
* xfns.c (x_window_to_frame, x_any_window_to_frame)
(x_menubar_window_to_frame, x_top_window_to_frame):
Move from here...
* xterm.c (x_window_to_frame, x_any_window_to_frame)
(x_menubar_window_to_frame, x_top_window_to_frame):
...to here and convert all but the last to static.

10 years ago* test/automated/eshell.el (with-temp-eshell): Use a temp directory
Glenn Morris [Fri, 13 Sep 2013 03:55:56 +0000 (20:55 -0700)]
* test/automated/eshell.el (with-temp-eshell): Use a temp directory
for eshell-directory-name.

It seems we don't have permission to write to HOME on hydra.

10 years agoChangeLog typo fix
Glenn Morris [Thu, 12 Sep 2013 20:42:40 +0000 (16:42 -0400)]
ChangeLog typo fix

10 years ago* test/automated/eshell.el (with-temp-eshell): Avoid hangs in batch mode
Glenn Morris [Thu, 12 Sep 2013 20:39:13 +0000 (16:39 -0400)]
* test/automated/eshell.el (with-temp-eshell): Avoid hangs in batch mode
due to "has a running proces; kill it?" prompts.

10 years ago* eshell/em-cmpl.el: Undo accidental part of last commit.
Stefan Monnier [Thu, 12 Sep 2013 20:38:35 +0000 (16:38 -0400)]
* eshell/em-cmpl.el: Undo accidental part of last commit.

10 years ago* lisp/term/ns-win.el (parameters): Don't declare as dynamic.
Stefan Monnier [Thu, 12 Sep 2013 20:21:41 +0000 (16:21 -0400)]
* lisp/term/ns-win.el (parameters): Don't declare as dynamic.
(before-make-frame-hook): Don't add ineffective function.

10 years ago* lisp/eshell/*.el: Use lexical-binding.
Stefan Monnier [Thu, 12 Sep 2013 20:15:53 +0000 (16:15 -0400)]
* lisp/eshell/*.el: Use lexical-binding.
* test/automated/eshell.el: Move from test/eshell.el.
(eshell-test/for-loop, eshell-test/for-name-loop): New tests.

Fixes: debbugs:15231

10 years ago* lisp/cedet/semantic/find.el (semantic-find-first-tag-by-name):
Glenn Morris [Thu, 12 Sep 2013 17:23:48 +0000 (13:23 -0400)]
* lisp/cedet/semantic/find.el (semantic-find-first-tag-by-name):
Replace obsolete function assoc-ignore-case with assoc-string.

10 years agolisp.mk (lisp): Add w32-common-fns.elc.
Eli Zaretskii [Thu, 12 Sep 2013 16:05:12 +0000 (19:05 +0300)]
lisp.mk (lisp): Add w32-common-fns.elc.

10 years agomerge trunk
Kenichi Handa [Thu, 12 Sep 2013 14:48:18 +0000 (23:48 +0900)]
merge trunk

10 years agocomposite.el (compose-gstring-for-graphic): Handle enclosing mark.
Kenichi Handa [Thu, 12 Sep 2013 14:45:28 +0000 (23:45 +0900)]
composite.el (compose-gstring-for-graphic): Handle enclosing mark.

10 years agoComments.
Xue Fuqiao [Thu, 12 Sep 2013 14:21:21 +0000 (22:21 +0800)]
Comments.

10 years ago* src/charset.c (char_charset): Document an exception for char-charset.
Xue Fuqiao [Thu, 12 Sep 2013 13:12:39 +0000 (21:12 +0800)]
* src/charset.c (char_charset): Document an exception for char-charset.

10 years ago* doc/lispref/functions.texi (Obsolete Functions): Add an index for obsolete functions.
Xue Fuqiao [Thu, 12 Sep 2013 12:22:17 +0000 (20:22 +0800)]
* doc/lispref/functions.texi (Obsolete Functions): Add an index for obsolete functions.

10 years ago* doc/emacs/text.texi (Enriched Justification): Explain values of default-justification.
Xue Fuqiao [Thu, 12 Sep 2013 12:04:18 +0000 (20:04 +0800)]
* doc/emacs/text.texi (Enriched Justification): Explain values of default-justification.

10 years ago* xterm.h (x_display_info): New field last_user_time...
Dmitry Antipov [Thu, 12 Sep 2013 07:29:33 +0000 (11:29 +0400)]
* xterm.h (x_display_info): New field last_user_time...
* xterm.c (toplevel): ...to replace static last_user_time.
(handle_one_xevent, x_ewmh_activate_frame): Adjust users.

10 years agoRemove superflous comment
Glenn Morris [Thu, 12 Sep 2013 07:00:52 +0000 (00:00 -0700)]
Remove superflous comment

10 years ago* vc/vc-dispatcher.el (vc-dir-refresh): Declare.
Glenn Morris [Thu, 12 Sep 2013 06:58:57 +0000 (23:58 -0700)]
* vc/vc-dispatcher.el (vc-dir-refresh): Declare.

10 years ago* vc/vc-svn.el (vc-svn-retrieve-tag): Mark unused argument.
Glenn Morris [Thu, 12 Sep 2013 06:55:15 +0000 (23:55 -0700)]
* vc/vc-svn.el (vc-svn-retrieve-tag): Mark unused argument.

10 years ago* vc/vc-svn.el (vc-svn-dir-status-files, vc-svn-dir-extra-headers)
Glenn Morris [Thu, 12 Sep 2013 06:53:57 +0000 (23:53 -0700)]
* vc/vc-svn.el (vc-svn-dir-status-files, vc-svn-dir-extra-headers)
(vc-svn-ignore): Mark unused arguments.

10 years agoRevert part of previous vc-bzr change
Glenn Morris [Thu, 12 Sep 2013 06:50:18 +0000 (23:50 -0700)]
Revert part of previous vc-bzr change

10 years agognus-icalendar small fix
Glenn Morris [Thu, 12 Sep 2013 06:47:07 +0000 (23:47 -0700)]
gnus-icalendar small fix

* gnus/gnus-icalendar.el (gnus-icalendar-event--build-reply-event-body):
Avoid using `find', which i) might not be defined at runtime;
ii) does not work, since its default test is eql, not equal.
(gnus-mime-action-alist): Declare.

10 years ago* subr.el (do-after-load-evaluation): Also give compiler warnings
Glenn Morris [Thu, 12 Sep 2013 06:37:02 +0000 (23:37 -0700)]
* subr.el (do-after-load-evaluation): Also give compiler warnings
when obsolete files are used (except by obsolete files).

10 years ago* xterm.c (x_set_scroll_bar_thumb) [USE_LUCID && !HAVE_XAW3D]: Clip
Dmitry Antipov [Thu, 12 Sep 2013 06:29:13 +0000 (10:29 +0400)]
* xterm.c (x_set_scroll_bar_thumb) [USE_LUCID && !HAVE_XAW3D]: Clip
scroll bar values to prevent thumb from disappear and update comment.

10 years ago* vc/vc-svn.el (vc-svn-parse-status): If there are multiple files
Glenn Morris [Thu, 12 Sep 2013 06:21:33 +0000 (23:21 -0700)]
* vc/vc-svn.el (vc-svn-parse-status): If there are multiple files
in the status output, assume `filename' is the first.

Fixes: debbugs:15322

10 years ago* lisp/vc/vc.el (vc-deduce-fileset): Doc fix.
Glenn Morris [Thu, 12 Sep 2013 06:10:12 +0000 (23:10 -0700)]
* lisp/vc/vc.el (vc-deduce-fileset): Doc fix.

10 years agoUpdate some function declarations
Glenn Morris [Thu, 12 Sep 2013 05:48:22 +0000 (22:48 -0700)]
Update some function declarations

* calc/calc-help.el (Info-goto-node):
* progmodes/cperl-mode.el (Info-find-node):
* vc/ediff.el (Info-goto-node): Update declarations.

10 years agoSilence some vc- compilation warnings
Glenn Morris [Thu, 12 Sep 2013 05:45:42 +0000 (22:45 -0700)]
Silence some vc- compilation warnings

* vc/vc-bzr.el (vc-exec-after): Remove unused declaration.
(vc-compilation-mode): Declare.
(vc-bzr-pull): Require vc-dispatcher.

* vc/vc-git.el (vc-compilation-mode): Declare.
(vc-git-pull): Require vc-dispatcher.

10 years ago* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function): Declare.
Glenn Morris [Thu, 12 Sep 2013 05:43:55 +0000 (22:43 -0700)]
* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function): Declare.

10 years ago* lisp/progmodes/octave.el (help-button-action): Declare.
Glenn Morris [Thu, 12 Sep 2013 05:43:23 +0000 (22:43 -0700)]
* lisp/progmodes/octave.el (help-button-action): Declare.

10 years agoFix some minor shell.el oddness related to usage of error and message
Glenn Morris [Thu, 12 Sep 2013 05:40:50 +0000 (22:40 -0700)]
Fix some minor shell.el oddness related to usage of error and message

* lisp/shell.el (shell-directory-tracker): Output error as a message
rather than just returning it as a string.
(shell-process-pushd): Remove useless use of message.

10 years agoUse with-demoted-errors now that it can format any error messages
Glenn Morris [Thu, 12 Sep 2013 05:32:57 +0000 (22:32 -0700)]
Use with-demoted-errors now that it can format any error messages

* dframe.el (dframe-timer-fn):
* files.el (dir-locals-read-from-file):
* mpc.el (mpc--status-timer-run, mpc--status-idle-timer-run, mpc-format):
* reveal.el (reveal-post-command):
* saveplace.el (load-save-place-alist-from-file):
* shell.el (shell-resync-dirs):
* w32-common-fns.el (x-get-selection-value):
* emacs-lisp/copyright.el (copyright-find-copyright):
* emacs-lisp/eldoc.el (eldoc-print-current-symbol-info):
* emulation/tpu-edt.el (tpu-copy-keyfile):
* play/bubbles.el (bubbles--mark-neighbourhood):
* progmodes/executable.el (executable-make-buffer-file-executable-if-script-p):
* term/pc-win.el (x-get-selection-value): Use with-demoted-errors.

10 years agoCleanup Eshell to rely less on dynamic scoping.
Stefan Monnier [Thu, 12 Sep 2013 05:20:07 +0000 (01:20 -0400)]
Cleanup Eshell to rely less on dynamic scoping.
* lisp/eshell/esh-opt.el (eshell-eval-using-options): Don't bind usage-msg,
last-value, and ext-command here.  Bind `args' closer to `body'.
(temp-args, last-value, usage-msg, ext-command, args): Don't defvar.
(eshell--args): Declare new dynamic var.
(eshell-do-opt): Add argument `args'.  Bind our own usage-msg,
last-value, and ext-command.  Pass `args' to `body'.
(eshell-process-args): Bind eshell--args.
(eshell-set-option): Use eshell--args.
* lisp/eshell/eshell.el (eshell): Use derived-mode-p.
* lisp/eshell/esh-var.el (eshell-parse-variable): Use backquote.
(eshell-parse-variable-ref): Remove unused vars `end' and `err'.
(eshell-glob-function): Declare.
* lisp/eshell/esh-util.el: Require cl-lib.
(eshell-read-hosts-file): Avoid add-to-list.
* lisp/eshell/esh-cmd.el (eshell-parse-lisp-argument): Remove unused var
`err'.
* lisp/eshell/em-unix.el (compilation-scroll-output, locate-history-list):
Declare.
(eshell/diff): Remove unused var `err'.
* lisp/eshell/em-rebind.el (eshell-delete-backward-char): Remove unused arg
`killflag'.
* lisp/eshell/em-pred.el (eshell-parse-modifiers): Remove unused var `err'.
* lisp/eshell/em-ls.el (eshell-ls-highlight-alist): Move defvars before
first use.
* lisp/eshell/em-glob.el (eshell-glob-matches, message-shown):
Move declaration before first use.
* lisp/eshell/em-alias.el (eshell-maybe-replace-by-alias): Use backquotes.
* autorevert.el (auto-revert-notify-handler): Use `cl-dolist' since we
rely on cl-return.

10 years ago* lisp/autorevert.el (auto-revert-notify-handler): Use `cl-dolist' since we
Stefan Monnier [Thu, 12 Sep 2013 04:56:51 +0000 (00:56 -0400)]
* lisp/autorevert.el (auto-revert-notify-handler): Use `cl-dolist' since we
rely on cl-return.

10 years ago* lisp/term/ns-win.el (global-map): Remove binding for ispell-next,
Glenn Morris [Thu, 12 Sep 2013 01:32:45 +0000 (21:32 -0400)]
* lisp/term/ns-win.el (global-map): Remove binding for ispell-next,
deleted 1999-05-29.

Fixes: debbugs:15357

10 years agoCharacter properties fix in lispref.
Xue Fuqiao [Wed, 11 Sep 2013 23:05:21 +0000 (07:05 +0800)]
Character properties fix in lispref.

* doc/lispref/nonascii.texi (Character Properties): Character properties fix
for decimal-digit-value and digit-value.

10 years agoComment
Glenn Morris [Wed, 11 Sep 2013 18:40:06 +0000 (14:40 -0400)]
Comment

10 years ago* lisp/play/landmark.el: Yet more typo fixes.
Glenn Morris [Wed, 11 Sep 2013 18:36:51 +0000 (14:36 -0400)]
* lisp/play/landmark.el: Yet more typo fixes.

10 years ago* lisp/echistory.el (electric-command-history): Remove call to deleted func.
Glenn Morris [Wed, 11 Sep 2013 18:33:58 +0000 (14:33 -0400)]
* lisp/echistory.el (electric-command-history): Remove call to deleted func.

10 years ago* lisp/play/landmark.el (landmark-mode): Fix typos.
Glenn Morris [Wed, 11 Sep 2013 18:32:32 +0000 (14:32 -0400)]
* lisp/play/landmark.el (landmark-mode): Fix typos.

10 years ago* lisp/vc/vc-cvs.el (cvs-append-to-ignore): Fix arg spec.
Glenn Morris [Wed, 11 Sep 2013 18:31:45 +0000 (14:31 -0400)]
* lisp/vc/vc-cvs.el (cvs-append-to-ignore): Fix arg spec.
Check cvs-sort-ignore-file is bound.

10 years ago* src/emacs.c (usage_message): Possessive apostrophe tweak.
Glenn Morris [Wed, 11 Sep 2013 17:31:29 +0000 (13:31 -0400)]
* src/emacs.c (usage_message): Possessive apostrophe tweak.

Likewise in some comments.

10 years ago* lisp/savehist.el: No need for cl when compiling on Emacs.
Glenn Morris [Wed, 11 Sep 2013 17:27:22 +0000 (13:27 -0400)]
* lisp/savehist.el: No need for cl when compiling on Emacs.

10 years ago* nsterm.m (syms_of_nsterm): Use Qns.
Dmitry Antipov [Wed, 11 Sep 2013 16:03:42 +0000 (20:03 +0400)]
* nsterm.m (syms_of_nsterm): Use Qns.
* w32fns.c (Fx_open_connection): Remove old '#if 0' code.
* w32term.c (w32_create_terminal, syms_of_w32term): Use Qw32.
* xfns.c (x_display_info_for_name, Fx_open_connection):
Remove old '#if 0' code.
(syms_of_xfns): Use Qx.

10 years ago* lisp/eshell/esh-mode.el (eshell-mode-syntax-table): Fix up initialization.
Stefan Monnier [Wed, 11 Sep 2013 16:00:37 +0000 (12:00 -0400)]
* lisp/eshell/esh-mode.el (eshell-mode-syntax-table): Fix up initialization.
(eshell-self-insert-command, eshell-send-invisible): Remove
unused argument.
(eshell-handle-control-codes): Remove unused var `orig'.
Avoid delete-backward-char.

Fixes: debbugs:15338

10 years agoMinor fixes for ido.texi.
Xue Fuqiao [Wed, 11 Sep 2013 14:06:22 +0000 (22:06 +0800)]
Minor fixes for ido.texi.

* doc/misc/ido.texi (Interactive Substring Matching): Use @key{RET}
instead of @kbd{RET}.
(Prefix Matching): Add an index.

10 years ago* termhooks.h (fullscreen_hook): Remove the leftover.
Dmitry Antipov [Wed, 11 Sep 2013 13:56:46 +0000 (17:56 +0400)]
* termhooks.h (fullscreen_hook): Remove the leftover.
(struct terminal): Fix typo in comment.

10 years agoCleaning up a few X scroll bar bits.
Dmitry Antipov [Wed, 11 Sep 2013 13:35:28 +0000 (17:35 +0400)]
Cleaning up a few X scroll bar bits.
* termhooks.h (enum scroll_bar_part): Add scroll_bar_nowhere member.
* xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS && USE_LUCID]:
New member last_seen_part, going to replace...
* xterm.c [USE_TOOLKIT_SCROLL_BARS]: ...global last_scroll_bar_part.
(xt_action_hook) [USE_LUCID]: Adjust user.
(xm_scroll_callback, xg_scroll_callback): Do not bloat with
Lucid-specific scroll bar support.
(xaw_jump_callback, xaw_scroll_callback): Prefer enum scroll_par_part
to int and adjust to use last_seen_part member.
(x_set_toolkit_scroll_bar_thumb) [USE_LUCID]: Adjust user.
(x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS && USE_LUCID]:
Initialize last_seen_part.

10 years ago* lisp/files.el (set-auto-mode): Simplify a bit further.
Stefan Monnier [Wed, 11 Sep 2013 12:36:59 +0000 (08:36 -0400)]
* lisp/files.el (set-auto-mode): Simplify a bit further.

10 years ago* src/insdel.c (insert_from_buffer_1): Don't mark buffer as modified when
Stefan Monnier [Wed, 11 Sep 2013 12:28:01 +0000 (08:28 -0400)]
* src/insdel.c (insert_from_buffer_1): Don't mark buffer as modified when
insert-buffer-substring an empty string.

10 years ago* xdisp.c (Ftool_bar_lines_needed): Declare as 'const' if ifdeffed out,
Paul Eggert [Wed, 11 Sep 2013 10:24:48 +0000 (03:24 -0700)]
* xdisp.c (Ftool_bar_lines_needed): Declare as 'const' if ifdeffed out,

avoiding a GCC warning.

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Wed, 11 Sep 2013 10:19:47 +0000 (06:19 -0400)]
Auto-commit of loaddefs files.

10 years agoIfdef away frame tool bar code when it is not really used.
Dmitry Antipov [Wed, 11 Sep 2013 08:56:33 +0000 (12:56 +0400)]
Ifdef away frame tool bar code when it is not really used.
* frame.h (struct frame) [HAVE_WINDOW_SYSTEM && !USE_GTK && !HAVE_NS]:
Move tool_bar_window, desired_tool_bar_string, current_tool_bar_string
and minimize_tool_bar_window_p under the above.
(fset_current_tool_bar_string, fset_desired_tool_bar_string)
(fset_tool_bar_window): Likewise.
* dispnew.c (clear_current_matrices, clear_desired_matrices)
(adjust_frame_glyphs_for_window_redisplay, free_glyphs, update_frame)
(change_frame_size_1):
* window.c (window_from_coordinates, Frecenter): Adjust users.
* window.h (WINDOW_TOOL_BAR_P): Define to zero when frame tool bar
code is not really used.
* xdisp.c (build_desired_tool_bar_string, display_tool_bar_line)
(tool_bar_lines_needed, MAX_FRAME_TOOL_BAR_HEIGHT, tool_bar_item_info)
(get_tool_bar_item, handle_tool_bar_click, note_tool_bar_highlight)
[!USE_GTK && !HAVE_NS]: Define as such.
(Ftool_bar_lines_needed, redisplay_tool_bar, show_mouse_face)
(note_mouse_highlight, expose_frame):
* xfns.c (x_set_tool_bar_lines):
* xterm.c (handle_one_xevent): Adjust users.

10 years agoFix corruption with multiple emacsclient -t instances.
Paul Eggert [Wed, 11 Sep 2013 08:24:05 +0000 (01:24 -0700)]
Fix corruption with multiple emacsclient -t instances.

This bug was introduced by my 2013-08-26 patch, which incorrectly
assumed that the terminfo implementation doesn't use termcap buffers.
* term.c (init_tty) [TERMINFO]: Remove optimization, as
these buffers apparently are used after all.
* termchar.h (TERMCAP_BUFFER_SIZE) [TERMINFO]: Define here too.
(struct tty_display_info): Define members termcap_term_buffer and
termcap_strings_buffer even if TERMINFO.

Fixes: debbugs:15222

10 years agoFix last change.
Dmitry Antipov [Wed, 11 Sep 2013 07:20:20 +0000 (11:20 +0400)]
Fix last change.
* data.c (Feqlsign, Flss, Fgtr, Fleq, Fgeq): Add convenient
'usage' docstring entry to pacify make-docfile.

10 years agoImprove previous interpreter-mode-alist change
Glenn Morris [Wed, 11 Sep 2013 06:44:35 +0000 (23:44 -0700)]
Improve previous interpreter-mode-alist change

* lisp/files.el (interpreter-mode-alist): Remove \\` \\' parts.
(set-auto-mode): Don't regexp-quote elements.

* lisp/progmodes/python.el (interpreter-mode-alist): Remove \\` \\'.

* lisp/progmodes/cc-mode.el (interpreter-mode-alist):
* lisp/progmodes/ruby-mode.el (interpreter-mode-alist):
Revert previous change.

* etc/NEWS: Update.

10 years agoComment formatting
Glenn Morris [Wed, 11 Sep 2013 06:33:28 +0000 (23:33 -0700)]
Comment formatting

10 years agoChange comparison functions =, <, >, <=, >= to take many arguments.
Barry O'Reilly [Wed, 11 Sep 2013 05:03:23 +0000 (01:03 -0400)]
Change comparison functions =, <, >, <=, >= to take many arguments.
* src/data.c: Change comparison functions' interface and
  implementation
* src/lisp.h: Make arithcompare available for efficient two arg
  comparisons
* src/bytecode.c: Use arithcompare
* src/fileio.c: Use new interface
* test/automated/data-tests.el: New tests for comparison functions
* etc/NEWS

10 years agoUse define-derived-mode (and derived-mode-p).
Stefan Monnier [Wed, 11 Sep 2013 03:31:56 +0000 (23:31 -0400)]
Use define-derived-mode (and derived-mode-p).
* lisp/play/snake.el (snake-mode):
* lisp/play/mpuz.el (mpuz-mode):
* lisp/play/landmark.el (lm-mode):
* lisp/play/blackbox.el (blackbox-mode):
* lisp/play/5x5.el (5x5-mode):
* lisp/obsolete/options.el (Edit-options-mode):
* lisp/net/quickurl.el (quickurl-list-mode):
* lisp/net/newst-treeview.el (newsticker-treeview-mode):
* lisp/mail/rmailsum.el (rmail-summary-mode):
* lisp/mail/mspools.el (mspools-mode):
* lisp/locate.el (locate-mode):
* lisp/ibuffer.el (ibuffer-mode):
* lisp/emulation/ws-mode.el (wordstar-mode):
* lisp/emacs-lisp/debug.el (debugger-mode):
* lisp/array.el (array-mode):
* lisp/net/eudc.el (eudc-mode): Use define-derived-mode.
* lisp/net/mairix.el (mairix-searches-mode-font-lock-keywords):
Move initialization into declaration.
(mairix-searches-mode): Use define-derived-mode.
* lisp/net/eudc-hotlist.el (eudc-hotlist-mode): Use define-derived-mode.
(eudc-edit-hotlist): Use dolist.
* lisp/man.el (Man-mode-syntax-table): Rename from man-mode-syntax-table.
(Man-mode): Use define-derived-mode.
* lisp/info.el (Info-edit-mode-map): Rename from Info-edit-map.
(Info-edit-mode): Use define-derived-mode.
(Info-cease-edit): Use Info-mode.
* lisp/eshell/esh-mode.el (eshell-mode-syntax-table): Move initialization
into declaration.
(eshell-mode): Use define-derived-mode.
* lisp/chistory.el (command-history-mode-map): Rename from
command-history-map.
(command-history-mode): Use define-derived-mode.
* lisp/calc/calc.el (calc-trail-mode-map): New var.
(calc-trail-mode): Use define-derived-mode.
(calc-trail-buffer): Set calc-main-buffer manually.
* lisp/bookmark.el (bookmark-insert-annotation): New function.
(bookmark-edit-annotation): Use it.
(bookmark-edit-annotation-mode): Make it a proper major mode.
(bookmark-send-edited-annotation): Use derived-mode-p.
* lisp/arc-mode.el (archive-mode): Move kill-all-local-variables a tiny bit
closer to its ideal place.  Use \' to match EOS.

* lisp/cedet/semantic/grammar.el (semantic-grammar-mode): Use define-derived-mode.
(semantic-grammar-mode-syntax-table): Rename from
semantic-grammar-syntax-table.
(semantic-grammar-mode-map): Rename from semantic-grammar-map.
* lisp/cedet/data-debug.el (data-debug-mode-map): Rename from data-debug-map.
(data-debug-mode): Use define-derived-mode.

* lisp/gnus/score-mode.el (gnus-score-mode-map): Move initialization
into declaration.
(gnus-score-mode): Use define-derived-mode.
* lisp/gnus/gnus-srvr.el (gnus-browse-mode): Use define-derived-mode.
* lisp/gnus/gnus-kill.el (gnus-kill-file-mode-map): Move initialization
into declaration.
(gnus-kill-file-mode): Use define-derived-mode.
(gnus-kill-file-edit-file, gnus-kill-file-enter-kill, gnus-kill):
Use derived-mode-p.
* lisp/gnus/gnus-group.el (gnus-group-mode): Use define-derived-mode.
(gnus-group-setup-buffer, gnus-group-name-at-point)
(gnus-group-make-web-group, gnus-group-enter-directory)
(gnus-group-suspend): Use derived-mode-p.
* lisp/gnus/gnus-cus.el (gnus-custom-mode): Use define-derived-mode.
* lisp/gnus/gnus-bookmark.el (gnus-bookmark-bmenu-mode): Use define-derived-mode.
* lisp/gnus/gnus-art.el (gnus-article-mode): Use define-derived-mode.
(gnus-article-setup-buffer, gnus-article-prepare)
(gnus-article-prepare-display, gnus-sticky-article)
(gnus-kill-sticky-article-buffer, gnus-kill-sticky-article-buffers)
(gnus-bind-safe-url-regexp, gnus-article-check-buffer)
(gnus-article-read-summary-keys): Use derived-mode-p.

10 years ago* keyboard.c (read_char): Fix last change.
Stefan Monnier [Wed, 11 Sep 2013 03:31:06 +0000 (23:31 -0400)]
* keyboard.c (read_char): Fix last change.

Fixes: debbugs:15332

10 years ago* src/keyboard.c (read_char): Don't break immediate_echo.
Stefan Monnier [Wed, 11 Sep 2013 02:41:00 +0000 (22:41 -0400)]
* src/keyboard.c (read_char): Don't break immediate_echo.

Fixes: debbugs:15332