bpt/emacs.git
13 years agoAdd ability to use xdg-open, i.e. your desktop default browser.
Jan Djärv [Tue, 17 Aug 2010 08:01:10 +0000 (10:01 +0200)]
Add ability to use xdg-open, i.e. your desktop default browser.

* net/browse-url.el (browse-url-default-browser): Add cond
for browse-url-xdg-open
(browse-url-can-use-xdg-open, browse-url-xdg-open): New functions

13 years agoFix some Org errors revealed by `make check-declare'.
Glenn Morris [Tue, 17 Aug 2010 07:29:26 +0000 (00:29 -0700)]
Fix some Org errors revealed by `make check-declare'.

* ob.el (tramp-compat-make-temp-file, org-edit-src-code)
(org-entry-get, org-table-import): Fix declarations.
(org-match-string-no-properties): Remove declaration.
* ob-sh.el (org-babel-comint-in-buffer)
(org-babel-comint-wait-for-output, org-babel-comint-buffer-livep)
(org-babel-comint-with-output): Remove unnecessary declarations.
* ob-R.el (orgtbl-to-tsv): Fix declaration.
* org-list.el (org-entry-get): Fix declaration.

13 years agoSilence more Gnus compiler warnings.
Glenn Morris [Tue, 17 Aug 2010 07:04:35 +0000 (00:04 -0700)]
Silence more Gnus compiler warnings.
* lisp/gnus/gnus-sync.el: Require Gnus components whose functions are used.

13 years agoSilence some Gnus compiler warnings.
Glenn Morris [Tue, 17 Aug 2010 07:00:16 +0000 (00:00 -0700)]
Silence some Gnus compiler warnings.

* lisp/gnus/gnus-art.el (bookmark-make-record-function):
* lisp/gnus/gnus-sum.el (bookmark-yank-point, bookmark-current-bookmark):
Declare for compiler.

* lisp/gnus/mm-url.el (mml-compute-boundary): Autoload.

13 years agoSilence some cc-mode compiler warnings.
Glenn Morris [Tue, 17 Aug 2010 06:54:03 +0000 (23:54 -0700)]
Silence some cc-mode compiler warnings.
* lisp/progmodes/cc-engine.el (c-new-BEG, c-new-END)
(c-fontify-recorded-types-and-refs): Define for compiler.
* lisp/progmodes/cc-mode.el (c-new-BEG, c-new-END): Move definitions
before use.

13 years agoMinor icalendar fix.
Glenn Morris [Tue, 17 Aug 2010 06:48:37 +0000 (23:48 -0700)]
Minor icalendar fix.
* lisp/calendar/icalendar.el (icalendar--convert-recurring-to-diary):
Fix format call.

13 years ago* net/tramp.el (tramp-handle-make-symbolic-link): Flush file
Michael Albinus [Tue, 17 Aug 2010 04:52:16 +0000 (06:52 +0200)]
* net/tramp.el (tramp-handle-make-symbolic-link): Flush file
properties.
(tramp-handle-process-file): Call the program in a subshell, in
order to preserve working directory.
(tramp-action-password): Hide password prompt before next run.
(tramp-process-actions): Widen connection buffer for the trace.

13 years ago* nsselect.m (syms_of_nsselect): Don't intern QPRIMARY.
Jan D [Mon, 16 Aug 2010 08:17:02 +0000 (10:17 +0200)]
* nsselect.m (syms_of_nsselect): Don't intern QPRIMARY.

13 years agonsselect.m: include keyboard.h for QPRIMARY, remove its declaration (Bug#6863).
Jan D [Mon, 16 Aug 2010 08:03:27 +0000 (10:03 +0200)]
nsselect.m: include keyboard.h for QPRIMARY, remove its declaration (Bug#6863).

13 years agoDon't define QPRIMARY twice.
Jan Djärv [Mon, 16 Aug 2010 07:52:32 +0000 (09:52 +0200)]
Don't define QPRIMARY twice.

* keyboard.h (QPRIMARY): Declare (Bug#6864).

* xselect.c: Remove declaration of QPRIMARY (Bug#6864).

13 years agoDon't always log RCIRC process buffers to disk (Bug#6828).
Deniz Dogan [Mon, 16 Aug 2010 03:34:10 +0000 (23:34 -0400)]
Don't always log RCIRC process buffers to disk (Bug#6828).

* lisp/net/rcirc.el (rcirc-log-process-buffers): New option.
(rcirc-print): Use it.
(rcirc-generate-log-filename): New function.
(rcirc-log-filename-function): Change default to
rcirc-generate-log-filename (Bug#6828).

13 years agoLet all active regions set the primary selection.
Chong Yidong [Mon, 16 Aug 2010 02:33:17 +0000 (22:33 -0400)]
Let all active regions set the primary selection.
This includes both temporarily active regions (mouse drag and
shift-select) and those made with C-SPC and cursor motion.

* lisp/cus-start.el: Change defcustom for select-active-regions.

* lisp/simple.el (deactivate-mark): If select-active-regions is `only',
only set selection for temporarily active regions.

* src/insdel.c (prepare_to_modify_buffer): Handle `only' value of
select-active-regions.

* src/keyboard.c (command_loop_1): Avoid setting selection twice,
since it's done in deactivate-mark as well.
(Vselect_active_regions): Replace `lazy' value with `only',
meaning to only set PRIMARY for temporarily active regions.

13 years agoFix mouse dragging of words and lines (Bug#6840).
Chong Yidong [Mon, 16 Aug 2010 02:08:01 +0000 (22:08 -0400)]
Fix mouse dragging of words and lines (Bug#6840).

* mouse.el (mouse--drag-set-mark-and-point): New function.
(mouse-drag-track): Use LOCATION arg to push-mark.  Use
mouse--drag-set-mark-and-point to take click-count into
consideration when updating point and mark (Bug#6840).

13 years agognus-start-draft-setup: Move doc string forward.
Katsumi Yamaoka [Sun, 15 Aug 2010 23:30:04 +0000 (23:30 +0000)]
gnus-start-draft-setup: Move doc string forward.

13 years ago* keyboard.c (parse_tool_bar_item): Put in a bad label if :label
Jan D [Sun, 15 Aug 2010 13:18:14 +0000 (15:18 +0200)]
* keyboard.c (parse_tool_bar_item): Put in a bad label if :label
isn't a string.

13 years ago* keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
Andreas Schwab [Sun, 15 Aug 2010 09:30:06 +0000 (11:30 +0200)]
* keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.

13 years agoPotential buffer overrun and uninit variable fixed, bug 6855.
Jan D [Sun, 15 Aug 2010 08:13:02 +0000 (10:13 +0200)]
Potential buffer overrun and uninit variable fixed, bug 6855.

* keyboard.c (parse_tool_bar_item): malloc buf.  Set TOOL_BAR_ITEM_LABEL
to empty string if not set to new_lbl (Bug#6855).

13 years agoGive Ruby compilation rule a lower priority than Gnu (Bug#6778).
Chong Yidong [Sun, 15 Aug 2010 00:04:53 +0000 (20:04 -0400)]
Give Ruby compilation rule a lower priority than Gnu (Bug#6778).

* progmodes/compile.el (compilation-error-regexp-alist-alist):
Give the Ruby rule a lower priority than Gnu (Bug#6778).

* etc/compilation.txt: Make Cucumber test less verbose.

13 years agoAdd four macros to lisp-font-lock-keywords-2 (Bug#6025).
Štěpán Němec [Sat, 14 Aug 2010 23:42:07 +0000 (19:42 -0400)]
Add four macros to lisp-font-lock-keywords-2 (Bug#6025).

* font-lock.el (lisp-font-lock-keywords-2): Add
combine-after-change-calls, condition-case-no-debug,
with-demoted-errors, and with-silent-modifications (Bug#6025).

13 years agoFix ChangeLog entry in last commit.
Chong Yidong [Sat, 14 Aug 2010 23:32:25 +0000 (19:32 -0400)]
Fix ChangeLog entry in last commit.

13 years agoSave window excursion before prompting in copyright-update-* (Bug#5394).
Kevin Ryde [Sat, 14 Aug 2010 23:30:51 +0000 (19:30 -0400)]
Save window excursion before prompting in copyright-update-* (Bug#5394).

* emacs-lisp/copyright.el (copyright-update-year)
(copyright-update): Use save-window-excursion (Bug#5394).

13 years ago* lisp/progmodes/etags.el (tags-file-name): Mark safe if stringp (Bug#6733).
Tom Tromey [Sat, 14 Aug 2010 23:01:42 +0000 (19:01 -0400)]
* lisp/progmodes/etags.el (tags-file-name): Mark safe if stringp (Bug#6733).

13 years agoAllow delayed autojoin in ERC (Bug#5521).
Vivek Dasmohapatra [Sat, 14 Aug 2010 22:58:10 +0000 (18:58 -0400)]
Allow delayed autojoin in ERC (Bug#5521).

* erc/erc-join.el (erc-autojoin-timing, erc-autojoin-delay): New vars.
(erc-autojoin-channels-delayed, erc-autojoin-after-ident): New
functions.
(erc-autojoin-channels): Allow autojoining after ident (Bug#5521).

13 years agoTypo fix "hoo4a" -> "hook".
Katsumi Yamaoka [Sat, 14 Aug 2010 22:14:02 +0000 (22:14 +0000)]
Typo fix "hoo4a" -> "hook".
From Ted Zlatanov <tzz@lifelogs.com>.

* gnus-sync.el (gnus-sync-install-hooks): Typo fix.

13 years agoMinor doc fix.
Chong Yidong [Sat, 14 Aug 2010 21:13:49 +0000 (17:13 -0400)]
Minor doc fix.

13 years agoFix bug #6689 with mouse-2 pasting on Windows.
Eli Zaretskii [Sat, 14 Aug 2010 15:41:22 +0000 (18:41 +0300)]
Fix bug #6689 with mouse-2 pasting on Windows.

 mouse.el (mouse-yank-primary): On MS-Windows and MS-DOS, call
 x-get-selection-value in preference to x-get-selection.

13 years agoFix cursor drawing on stretch glyphs in R2L lines.
Eli Zaretskii [Sat, 14 Aug 2010 12:55:04 +0000 (15:55 +0300)]
Fix cursor drawing on stretch glyphs in R2L lines.

 xterm.c (x_draw_stretch_glyph_string):
 w32term.c (x_draw_stretch_glyph_string): In R2L rows, display the
 cursor on the right edge of the stretch glyph.
 xdisp.c (window_box_right_offset, window_box_right): Fix commentary.

13 years agoFix current-bidi-paragraph-direction within whitespace chars.
Eli Zaretskii [Sat, 14 Aug 2010 10:59:55 +0000 (13:59 +0300)]
Fix current-bidi-paragraph-direction within whitespace chars.

 xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
 direction when point is inside a run of whitespace characters.
 bidi.c (bidi_at_paragraph_end): Remove obsolete comment.

13 years agoAmmended for bug fix on the loader nunion.
Katsumi Yamaoka [Sat, 14 Aug 2010 10:50:20 +0000 (10:50 +0000)]
Ammended for bug fix on the loader nunion.
From Ted Zlatanov <tzz@lifelogs.com>.

* (gnus-sync-save): Keep unknown groups in `gnus-sync-newsrc-loader'.

13 years agoDoc fixes and keep unknown groups.
Katsumi Yamaoka [Sat, 14 Aug 2010 10:45:32 +0000 (10:45 +0000)]
Doc fixes and keep unknown groups.
From Ted Zlatanov <tzz@lifelogs.com>.

* gnus-sync.el: Fix docs.
(gnus-sync-save): Keep unknown groups in `gnus-sync-newsrc-loader'.
(gnus-sync-read): Don't wipe `gnus-sync-newsrc-loader' after reading.

13 years agoMinor fixes in TUTORIAL.he.
Eli Zaretskii [Sat, 14 Aug 2010 08:46:48 +0000 (11:46 +0300)]
Minor fixes in TUTORIAL.he.

 tutorials/TUTORIAL.he: Use MAQAF instead of hyphen where appropriate.
 Fix a few typos.

13 years ago(lispy_function_keys): Do not define VK_PACKET (bug#4836)
Jason Rumney [Sat, 14 Aug 2010 07:35:24 +0000 (15:35 +0800)]
(lispy_function_keys): Do not define VK_PACKET (bug#4836)

13 years ago* lisp/gnus/gnus-sync.el (gnus-sync): Fix defgroup version.
Glenn Morris [Sat, 14 Aug 2010 02:02:31 +0000 (19:02 -0700)]
* lisp/gnus/gnus-sync.el (gnus-sync): Fix defgroup version.

13 years ago* fns.c (Fmake_hash_table): Doc fix (Bug#6851).
Chong Yidong [Sat, 14 Aug 2010 00:39:08 +0000 (20:39 -0400)]
* fns.c (Fmake_hash_table): Doc fix (Bug#6851).

13 years agoFix for bug#5629: Use unicode message box if available.
Jason Rumney [Fri, 13 Aug 2010 14:54:32 +0000 (22:54 +0800)]
Fix for bug#5629: Use unicode message box if available.
* w32menu.c (simple_dialog_show): Use unicode message box if available.
(MessageBoxW_Proc): New function typedef.
(unicode-message-box): New function pointer.
(globals_of_w32menu): Import it from user32.dll.

13 years agoFix handling of tool-bar-position, also put into default-frame-alist.
Jan D [Fri, 13 Aug 2010 13:26:13 +0000 (15:26 +0200)]
Fix handling of tool-bar-position, also put into default-frame-alist.

* lisp/menu-bar.el (menu-bar-set-tool-bar-position): New function.
(menu-bar-showhide-tool-bar-menu-customize-enable-left)
(menu-bar-showhide-tool-bar-menu-customize-enable-right)
(menu-bar-showhide-tool-bar-menu-customize-enable-top)
(menu-bar-showhide-tool-bar-menu-customize-enable-bottom): Call
menu-bar-set-tool-bar-position.

* src/frame.h (Qtool_bar_position): Declare.

* src/xfns.c (Fx_create_frame): Call x_default_parameter for
Qtool_bar_position.

13 years agoFix compilation of xmenu.c and unexcoff.c, clean up MSDOS source files.
Eli Zaretskii [Fri, 13 Aug 2010 11:09:51 +0000 (14:09 +0300)]
Fix compilation of xmenu.c and unexcoff.c, clean up MSDOS source files.

 unexcoff.c: Remove the parts used when "emacs" is not defined.
 (report_error, report_error_1): Ditto.
 (write_segment): Remove "#if 0" unused code.
 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
 (start_of_text): Remove unused function (was used only if NO_REMAP
 was NOT defined).
 msdos.c (IT_set_face): Fix format string to match argument
 types.
 (IT_write_glyphs, IT_note_mode_line_highlight)
 (IT_set_frame_parameters): Remove unused variables.
 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
 (IT_set_terminal_modes): Disambiguate expression in if clause.
 (Fmsdos_remember_default_colors): Return Qnil.
 (IT_set_frame_parameters): Add parens to disambiguate boolean
 expression for logging the cursor type to termscript.
 (keyboard_layout_list, keypad_translate_map)
 (grey_key_translate_map): Add braces in inner initializers.
 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
 (dos_rawgetc): Remove unused label.
 (XMenuActivate): Add braces to remove ambiguous `else'.
 (dos_ttraw): Always return a value.
 (spawnve): Declare.
 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
 dosfns.h (x_set_title): Declare.
 w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
 Remove unused variables.
 dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
 variables.
 (init_dosfns): Declare get_lim_data.
 (system_process_attributes): Declare Fget_internal_run_time.
 xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
 list to be consistent with menu.h.

13 years agoOptimizations for gnus-sync.el.
Katsumi Yamaoka [Fri, 13 Aug 2010 11:03:19 +0000 (11:03 +0000)]
Optimizations for gnus-sync.el.
From Ted Zlatanov <tzz@lifelogs.com>.

* gnus-sync.el: Add docs about gnus-sync-backend
possibilities.
(gnus-sync-save): Remove unnecessary message.
(gnus-sync-read): Optimize and show what groups were skipped.

13 years agoMinor bug fixes for gnus-sync.el.
Katsumi Yamaoka [Fri, 13 Aug 2010 10:58:21 +0000 (10:58 +0000)]
Minor bug fixes for gnus-sync.el.
From Ted Zlatanov <tzz@lifelogs.com>.

* gnus-sync.el (gnus-sync-unload-hook, gnus-sync-install-hooks): Don't
read the sync on get-new-news.

13 years agoMinor bug fixes for gnus-sync.el.
Katsumi Yamaoka [Fri, 13 Aug 2010 10:54:05 +0000 (10:54 +0000)]
Minor bug fixes for gnus-sync.el.
From Ted Zlatanov <tzz@lifelogs.com>.

* gnus-sync.el (gnus-sync-save): Define `variable' so the compiler is
quiet.

* gnus-sync.el (gnus-sync-read): Use `gnus-sync-newsrc-offsets' (fix typo).

13 years agoadd lisp/gnus/gnus-sync.el
Katsumi Yamaoka [Fri, 13 Aug 2010 10:50:01 +0000 (10:50 +0000)]
add lisp/gnus/gnus-sync.el

13 years agoMake saving and restoring of hidden threads work with overlays.
Katsumi Yamaoka [Fri, 13 Aug 2010 10:44:22 +0000 (10:44 +0000)]
Make saving and restoring of hidden threads work with overlays.
Patch applied by Ted Zlatanov.

* gnus-sum.el (gnus-hidden-threads-configuration)
(gnus-restore-hidden-threads-configuration): Update to deal with text
properties, rather than searching for a magic character.

13 years agoAdd new gnus-sync.el library.
Katsumi Yamaoka [Fri, 13 Aug 2010 10:39:16 +0000 (10:39 +0000)]
Add new gnus-sync.el library.
From Ted Zlatanov <tzz@lifelogs.com>.

* gnus-registry.el (gnus-registry-follow-group-p): Use `gnus-grep-in-list'.

* gnus-util.el (gnus-grep-in-list): Moved from gnus-registry.el and
renamed from `gnus-registry-grep-in-list'.

* gnus-sync.el: New library for synchronization of marks.

13 years agoMake gnus-start-draft-setup interactive.
Katsumi Yamaoka [Fri, 13 Aug 2010 10:32:35 +0000 (10:32 +0000)]
Make gnus-start-draft-setup interactive.
From Ted Zlatanov <tzz@lifelogs.com>.

* gnus-start.el (gnus-start-draft-setup): Make it interactive.

13 years agoFix fallout from 2010-07-29T03:25:08Z!dann@ics.uci.edu, remove dead code in unexcoff.c.
Eli Zaretskii [Fri, 13 Aug 2010 10:29:48 +0000 (13:29 +0300)]
Fix fallout from 2010-07-29T03:25:08Z!dann@ics.uci.edu, remove dead code in unexcoff.c.

 unexcoff.c: Remove the parts used when "emacs" is not defined.
 (report_error, report_error_1): Ditto.
 (write_segment): Remove "#if 0" unused code.
 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
 (start_of_text): Remove unused function (was used only if NO_REMAP
 was NOT defined).

13 years agoFix -Wall compiler warnings in MSDOS sources.
Eli Zaretskii [Fri, 13 Aug 2010 09:21:31 +0000 (12:21 +0300)]
Fix -Wall compiler warnings in MSDOS sources.

 msdos.c (IT_set_face): Fix format string to match argument types.
 (IT_write_glyphs, IT_note_mode_line_highlight)
 (IT_set_frame_parameters): Remove unused variables.
 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
 (IT_set_terminal_modes): Disambiguate expression in if clause.
 (Fmsdos_remember_default_colors): Return Qnil.
 (IT_set_frame_parameters): Add parens to disambiguate boolean
 expression for logging the cursor type to termscript.
 (keyboard_layout_list, keypad_translate_map)
 (grey_key_translate_map): Add braces in inner initializers.
 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
 (dos_rawgetc): Remove unused label.
 (XMenuActivate): Add braces to remove ambiguous `else'.
 (dos_ttraw): Always return a value.
 (spawnve): Declare.
 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
 dosfns.h (x_set_title): Declare.
 w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
 Remove unused variables.
 dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused variables.
 (init_dosfns): Declare get_lim_data.
 (system_process_attributes): Declare Fget_internal_run_time.

13 years agoFix compilation error in xmenu.c for non-toolkit builds.
Eli Zaretskii [Fri, 13 Aug 2010 08:32:13 +0000 (11:32 +0300)]
Fix compilation error in xmenu.c for non-toolkit builds.

 xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument list
 to be consistent with menu.h.

13 years agoShut up compiler warnings due to "char *" and "const char *".
Eli Zaretskii [Fri, 13 Aug 2010 08:10:05 +0000 (11:10 +0300)]
Shut up compiler warnings due to "char *" and "const char *".

 w32menu.c (add_menu_item): Use explicit cast to "char *".
 (name_is_separator): Make `name' and `start' be "const char *".

13 years agoFix typo.
Jan D [Fri, 13 Aug 2010 06:57:12 +0000 (08:57 +0200)]
Fix typo.

13 years agoIntroduce a new comment style "c" flag.
Stefan Monnier [Thu, 12 Aug 2010 14:44:16 +0000 (16:44 +0200)]
Introduce a new comment style "c" flag.
* src/syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
(SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
(SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
(syntax_prefix_flag_p): New function.
(Fstring_to_syntax): Understand new "c" flag.
(Finternal_describe_syntax_value): Recognize new flag; use the
SYNTAX_FLAGS_* macros.
(scan_sexps_forward, Fparse_partial_sexp): Change representation of
comment style to accomodate the new styles.
(back_comment, forw_comment, Fforward_comment, scan_lists)
(scan_sexps_forward): Update code to obey the new comment style flag.
* src/syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
* src/casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
* lisp/progmodes/octave-mod.el (octave-mode-syntax-table): Use the new "c"
comment style.
* lisp/progmodes/scheme.el (scheme-mode-syntax-table):
* lisp/emacs-lisp/lisp-mode.el (lisp-mode-syntax-table): Remove spurious
"b" flag in "14b" syntax.

Fixes: debbugs:6834

13 years ago(add_registry): Set path for runemacs.exe to use.
Jason Rumney [Thu, 12 Aug 2010 14:28:43 +0000 (22:28 +0800)]
(add_registry): Set path for runemacs.exe to use.

13 years agoFix last change.
Stefan Monnier [Thu, 12 Aug 2010 12:46:24 +0000 (14:46 +0200)]
Fix last change.
* lisp/progmodes/octave-mod.el (octave-mode-syntax-table):
Better describe the problem.
(octave-fill-paragraph): Also update caller.
(octave-completion-at-point-function): Fix up typo.

13 years agoMisc code cleanup of octave-mode.el.
Stefan Monnier [Thu, 12 Aug 2010 11:22:16 +0000 (13:22 +0200)]
Misc code cleanup of octave-mode.el.
* lisp/progmodes/octave-mod.el (octave-mode-map): Remove special bindings
for (un)commenting the region and performing completion.
(octave-mode-menu): Use standard commands for help and completion.
(octave-mode-syntax-table): Support %{..%} comments (sort of).
(octave-mode): Use define-derived-mode.
Set completion-at-point-functions and don't set columns.
Don't disable adaptive-fill-regexp.
(octave-describe-major-mode, octave-comment-region)
(octave-uncomment-region, octave-comment-indent)
(octave-indent-for-comment): Remove.
(octave-indent-calculate): Rename from calculate-octave-indent.
(octave-indent-line): Update caller.
(octave-initialize-completions): No need to make an alist.
(octave-completion-at-point-function): New function.
(octave-complete-symbol): Use it.
(octave-insert-defun): Use define-skeleton.

13 years ago* lisp/progmodes/octave-mod.el (octave-mode-map): Use comment-dwim.
Stefan Monnier [Thu, 12 Aug 2010 10:46:44 +0000 (12:46 +0200)]
* lisp/progmodes/octave-mod.el (octave-mode-map): Use comment-dwim.
(octave-mode): Set comment-add.

Fixes: debbugs:6829

13 years ago* doc/misc/cl.texi (Mapping over Sequences): Rename mapc => cl-mapc.
Stefan Monnier [Thu, 12 Aug 2010 09:02:02 +0000 (11:02 +0200)]
* doc/misc/cl.texi (Mapping over Sequences): Rename mapc => cl-mapc.

Fixes: debbugs:6575

13 years ago* lisp/cus-edit.el (custom-save-variables, custom-save-faces): Fix up
Antoine Levitt [Thu, 12 Aug 2010 08:55:20 +0000 (10:55 +0200)]
* lisp/cus-edit.el (custom-save-variables, custom-save-faces): Fix up
indentation of inserted comment.

13 years ago* xfns.c (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
Jan D [Wed, 11 Aug 2010 18:47:34 +0000 (20:47 +0200)]
* xfns.c (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.

13 years agoTake colors for region face (selected text) from the Gtk+ theme.
Jan D [Wed, 11 Aug 2010 18:28:10 +0000 (20:28 +0200)]
Take colors for region face (selected text) from the Gtk+ theme.

* lisp/dynamic-setting.el (dynamic-setting-handle-config-changed-event):
Handle theme-name change.

* lisp/faces.el (region): Add type gtk that uses gtk colors.

* src/gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
(xg_create_frame_widgets): Connect theme name changes to
style_changed_cb.

* src/gtkutil.h (xg_check_special_colors): Declare.

* src/xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
first.

13 years agoFix -Wwrite_strings in general and for Gtk+ specific code.
Jan D [Wed, 11 Aug 2010 12:34:46 +0000 (14:34 +0200)]
Fix -Wwrite_strings in general and for Gtk+ specific code.

* callproc.c (synch_process_death): Make const.
(Fcall_process): Make signame const.

* emacs.c (main): Pass char[] to putenv instead of literal.

* floatfns.c (matherr): Use a const char* variable for x->name.

* font.c (font_open_by_name): Make name const.

* font.h (font_open_by_name): Make name const.

* gtkutil.c (get_utf8_string): Always return an allocated string.
Parameter is const.
(create_dialog, xg_create_one_menuitem, create_menus)
(xg_item_label_same_p, xg_update_menu_item): Free result from
get_utf8_string.
(xg_separator_p, xg_item_label_same_p): label is const.

* gtkutil.h: Replace widget_value with struct _widget_value.
(enum button_type, struct _widget_value): Remove and use the one from
keyboard.h.

* keyboard.h (_widget_value): Add defined USE_GTK.  Replace Boolean
with unsigned char and XtPointer with void *.

* menu.c (Fx_popup_menu): error_name is const.

* menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
is const char **.

* w32menu.c (w32_menu_show):
* nsmenu.m (ns_menu_show): error parameter is const char **.

* process.h (synch_process_death): Is const char*.

* xmenu.c (Fx_popup_dialog): error_name is const char*.
(xmenu_show): error parameter is const char **. pane_string is const
char *.
(button_names): Is const char *.
(xdialog_show): error_name and pane_string is const.

* xrdb.c (get_system_app): Make path const and use char *p for non-const
char.

* xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".

* xsmfns.c (NOSPLASH_OPT): Change to char[].
(smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
props.  Free them at the end.

* xterm.c (emacs_class): New char[] for EMACS_CLASS.
(xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
(x_term_init): Use char[] display_opt and name_opt instead of
string literal. file is const char*.

13 years agoFix -Wwrite-strings warnings in fakemail.c.
Jan D [Wed, 11 Aug 2010 09:16:35 +0000 (11:16 +0200)]
Fix -Wwrite-strings warnings in fakemail.c.

* fakemail.c: Include stdlib.h for getenv. Remove declaration of
popen, fclose and pclose.
(my_name, fatal, error, put_line): Use const char*
(main): Remove extern getenv, mail_program_name is const char*.

13 years agoUse const char* for -Wwrite_strings.
Jan D [Wed, 11 Aug 2010 08:58:56 +0000 (10:58 +0200)]
Use const char* for -Wwrite_strings.

* keyboard.h (_widget_value): name, value and key are const char*.

* nsfont.m (ns_descriptor_to_entity): Use const char*.

* nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
(addDisplayItemWithImage, update_frame_tool_bar): Use const char*.

* nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
(addDisplayItemWithImage): Use const char*.

13 years ago* unexmacosx.c (unexec_error): Use const char *.
Jan D [Wed, 11 Aug 2010 08:36:27 +0000 (10:36 +0200)]
* unexmacosx.c (unexec_error): Use const char *.

13 years agoFix warnings produced by compiling with -Wwrite_strings (i.e. use const char *).
Jan D [Wed, 11 Aug 2010 08:20:34 +0000 (10:20 +0200)]
Fix warnings produced by compiling with -Wwrite_strings (i.e. use const char *).

* b2m.c (concat, fatal): Use const char*.
(main): Don't assign labels a string literal.

* ebrowse.c (struct member): filename, def_filename is const.
(struct sym): filename, sfilename is const.
(struct kw): name is const.
(add_sym, yyerror, token_string, insert_keyword, main): Use const char*.

* emacsclient.c (message, sock_err_message, send_to_emacs)
(quote_argument, set_local_socket)
(start_daemon_and_retry_set_socket): Use const char*.

* etags.c (compressor, language, Ada_suffix, Ada_help, Asm_suffixes)
(Asm_help, default_C_suffixes, default_C_help, Cplusplus_suffixes)
(Cplusplus_help, Cjava_suffixes, Cobol_suffixes, Cstar_suffixes)
(Erlang_suffixes, Erlang_help, Forth_suffixes, Forth_help)
(Fortran_suffixes, Fortran_help, HTML_suffixes,  HTML_help)
(Lisp_suffixes, Lisp_help, Lua_suffixes, Lua_help)
(Makefile_filenames, Makefile_help, Objc_suffixes, Objc_help)
(Pascal_suffixes, Pascal_help, Perl_suffixes, Perl_interpreters)
(Perl_help, PHP_suffixes, PHP_help, plain_C_suffixses, PS_suffixes)
(PS_help, Prolog_suffixes, Prolog_help, Python_suffixes, Python_help)
(Scheme_suffixes, Scheme_help, TeX_suffixes, TeX_help, Texinfo_suffixes)
(Texinfo_help, Yacc_suffixes, Yacc_help, auto_help, none_help)
(no_lang_help, print_language_names)
(get_language_from_interpreter, get_language_from_filename)
(init, make_tag, struct C_stab_entry, write_classname, TEX_defenv)
(TEX_decode_env, nocase_tail, savestr, savenstr, fatal, pfatal)
(concat): Use const char*.

* make-docfile.c (error, fatal, scan_c_file, scan_lisp_file): Use
const char *.

* movemail.c (fatal, error, concat): Use const char *.

* pop.c (pop_multi_first, socket_connection, sendline): Use conat char*.

* pop.h (pop_multi_first): Use const char *.
(_ARGS): Remove.

* sorted-doc.c (error, fatal, states): Use const char *.

* update-game-score.c (get_prefix, write_scores, main): Use const char*.

13 years ago* lisp/emacs-lisp/pcase.el: Fix copyright header.
Glenn Morris [Wed, 11 Aug 2010 02:14:53 +0000 (19:14 -0700)]
* lisp/emacs-lisp/pcase.el: Fix copyright header.

13 years agoSuppress continuation prompts in SQL interactive mode
Michael Mauger [Tue, 10 Aug 2010 23:04:32 +0000 (19:04 -0400)]
Suppress continuation prompts in SQL interactive mode

        * progmodes/sql.el: Version 2.5
        (sql-product-alist): Add :prompt-cont-regexp property for several
        database products.
        (sql-prompt-cont-regexp): New variable.
        (sql-output-newline-count, sql-output-by-send): New
        variables. Record number of newlines in input text.
        (sql-send-string): Handle multiple filters and count newlines.
        (sql-send-magic-terminator): Count terminator newline.
        (sql-interactive-remove-continuation-prompt): Filters output to
        remove continuation prompts; one for each newline.
        (sql-interactive-mode): Set up new variables, prompt regexp and
        output filter.
        (sql-mode-sqlite-font-lock-keywords): Correct some keywords.
        (sql-make-alternate-buffer-name): Correct buffer name in edge
        cases.

13 years agoFixed my ChangeLog entry of 2010-08-08
Ulf Jasper [Tue, 10 Aug 2010 18:01:18 +0000 (20:01 +0200)]
Fixed my ChangeLog entry of 2010-08-08

13 years ago* configure.in (AC_PREREQ): Require autoconf 2.65.
Dan Nicolaescu [Tue, 10 Aug 2010 14:22:29 +0000 (07:22 -0700)]
* configure.in (AC_PREREQ): Require autoconf 2.65.

13 years ago* lisp/emacs-lisp/pcase.el: New file.
Stefan Monnier [Tue, 10 Aug 2010 13:18:14 +0000 (15:18 +0200)]
* lisp/emacs-lisp/pcase.el: New file.

13 years ago* net/tramp.el (tramp-vc-registered-read-file-names): Read input
Michael Albinus [Tue, 10 Aug 2010 09:58:15 +0000 (11:58 +0200)]
* net/tramp.el (tramp-vc-registered-read-file-names): Read input
as here-document, otherwise the command could exceed maximum
length of command line.
(tramp-handle-vc-registered): Call script accordingly.  Reported
by Toru TSUNEYOSHI <t_tuneyosi@hotmail.com>.

13 years agomerge trunk
Kenichi Handa [Tue, 10 Aug 2010 01:24:32 +0000 (10:24 +0900)]
merge trunk

13 years agolanguage/hebrew.el: Exclude U+05C3 (Hebrew SOF PASUQ) from the composable pattern.
Kenichi Handa [Tue, 10 Aug 2010 01:20:58 +0000 (10:20 +0900)]
language/hebrew.el: Exclude U+05C3 (Hebrew SOF PASUQ) from the composable pattern.

13 years agoRemove incorrect const use.
Dan Nicolaescu [Mon, 9 Aug 2010 22:03:38 +0000 (15:03 -0700)]
Remove incorrect const use.
* src/font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
(font_parse_name): font_open_by_name):
* src/font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
(font_parse_name): font_open_by_name): Remove const.

13 years ago* configure.in (AC_PREREQ): Require autoconf 2.66 to stop version churn.
Dan Nicolaescu [Mon, 9 Aug 2010 20:01:51 +0000 (13:01 -0700)]
* configure.in (AC_PREREQ): Require autoconf 2.66 to stop version churn.

13 years agoUse autoconf determined WORDS_BIGENDIAN instead of hardcoded definition.
Andreas Schwab [Mon, 9 Aug 2010 19:25:41 +0000 (21:25 +0200)]
Use autoconf determined WORDS_BIGENDIAN instead of hardcoded definition.

* m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
* m/amdx86-64.h: Likewise.
* m/arm.h: Likewise.
* m/hp800.h: Likewise.
* m/ia64.h: Likewise.
* m/ibmrs6000.h: Likewise.
* m/ibms390.h: Likewise.
* m/intel386.h: Likewise.
* m/iris4d.h: Likewise.
* m/m68k.h: Likewise.
* m/macppc.h: Likewise.
* m/mips.h: Likewise.
* m/sh3.h: Likewise.
* m/sparc.h: Likewise.
* m/template.h: Likewise.
* m/vax.h: Likewise.
* m/xtensa.h: Likewise.
* fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
WORDS_BIG_ENDIAN.
* lisp.h: Likewise.
* md5.c: Likewise.
* sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.

* CPP-DEFINES (WORDS_BIG_ENDIAN): Remove.

* configure.in: Add AC_C_BIGENDIAN.

13 years agoUse version-list-* functions in package.el.
Chong Yidong [Mon, 9 Aug 2010 18:05:56 +0000 (14:05 -0400)]
Use version-list-* functions in package.el.

* emacs-lisp/package-x.el (package-upload-buffer-internal): Use
version-to-list.
(package-upload-buffer-internal): Use version-list-<=.

* emacs-lisp/package.el (package-version-split)
(package--version-first-nonzero, package-version-compare):
Functions removed.
(package-directory-list, package-load-all-descriptors)
(package--built-in, package-activate, define-package)
(package-installed-p, package-compute-transaction)
(package-read-all-archive-contents)
(package--add-to-archive-contents, package-buffer-info)
(package-tar-file-info, package-list-packages-internal): Use
version-to-list and version-list-*.

13 years ago* configure.in (ORDINARY_LINK): Use on hpux* too.
Dan Nicolaescu [Mon, 9 Aug 2010 17:08:56 +0000 (10:08 -0700)]
* configure.in (ORDINARY_LINK): Use on hpux* too.

13 years agoFix typo in lisp/ChangeLog
Kenichi Handa [Mon, 9 Aug 2010 11:07:11 +0000 (20:07 +0900)]
Fix typo in lisp/ChangeLog

13 years agomerge trunk
Kenichi Handa [Mon, 9 Aug 2010 11:05:27 +0000 (20:05 +0900)]
merge trunk

13 years agoUse const char* instead of char*.
Dan Nicolaescu [Mon, 9 Aug 2010 09:35:21 +0000 (02:35 -0700)]
Use const char* instead of char*.
Reduce the number of warnings with -Wwrite-strings.
* src/xrdb.c (get_environ_db, get_system_name):
* src/unexelf.c (find_section):
* src/term.c (string_cost, string_cost_one_line, per_line_cost)
(get_named_tty, init_tty):
* src/sysdep.c (sys_subshell):
* src/sound.c (sound_perror, sound_warning, vox_open, vox_init)
(alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
* src/search.c (Freplace_match):
* src/process.c (Fmake_network_process, send_process, init_process):
* src/lread.c (Fload, init_lread):
* src/keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
* src/keyboard.c (parse_tool_bar_item, struct event_head):
* src/gtkutil.h (xg_get_font_name):
* src/gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
(make_widget_for_menu_item, make_menu_item, create_menus)
(xg_make_tool_item):
* src/font.c (parse_matrix, font_parse_name):
* src/floatfns.c (rounding_driver, float_error_fn_name):
* src/filelock.c (get_boot_time_1, lock_file_1):
* src/fileio.c (barf_or_query_if_file_exists, check_writable):
* src/editfns.c (get_system_name, get_operating_system_release)
(Fencode_time, Fset_time_zone_rule):
* src/dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
* src/buffer.c (defvar_per_buffer): Use const.

13 years agolanguage/hebrew.el: Exclude U+05BD (Hebre MAQAF) from the composable pattern.
Kenichi Handa [Mon, 9 Aug 2010 08:12:49 +0000 (17:12 +0900)]
language/hebrew.el: Exclude U+05BD (Hebre MAQAF) from the composable pattern.

13 years agocalc.texi (Customizing Calc): Rearrange description of new
Jay Belanger [Mon, 9 Aug 2010 02:30:10 +0000 (21:30 -0500)]
calc.texi (Customizing Calc): Rearrange description of new
variables to match the presentation of other variables.

13 years ago* tutorial.el (tutorial--default-keys): C-d is now bound to delete-forward-char.
Chong Yidong [Sun, 8 Aug 2010 23:14:33 +0000 (19:14 -0400)]
* tutorial.el (tutorial--default-keys): C-d is now bound to delete-forward-char.
(Bug#6826)

13 years agoFix typos in ChangeLogs.
Juanma Barranquero [Sun, 8 Aug 2010 23:05:49 +0000 (01:05 +0200)]
Fix typos in ChangeLogs.

13 years agoEnsure that erc-toggle-debug-irc-protocol logs protocol data.
Fran Litterio [Sun, 8 Aug 2010 22:13:53 +0000 (18:13 -0400)]
Ensure that erc-toggle-debug-irc-protocol logs protocol data.
http://lists.gnu.org/archive/html/emacs-devel/2010-07/msg01000.html

* erc-backend.el (erc-server-filter-function): Call
erc-log-irc-protocol.

* erc.el (erc-toggle-debug-irc-protocol): Bind
erc-toggle-debug-irc-protocol to t.

13 years agoFix 2010-07-03 change to mouse-drag-track.
Chong Yidong [Sun, 8 Aug 2010 21:57:34 +0000 (17:57 -0400)]
Fix 2010-07-03 change to mouse-drag-track.
* mouse.el (mouse-drag-track): Remove accidentally-removed check
for `double' value of mouse-1-click-follows-link (Bug#6807).

13 years agoMerge changes from emacs-23 branch.
Chong Yidong [Sun, 8 Aug 2010 21:15:44 +0000 (17:15 -0400)]
Merge changes from emacs-23 branch.

13 years agoMerge changes from emacs-23 branch
Chong Yidong [Sun, 8 Aug 2010 21:12:29 +0000 (17:12 -0400)]
Merge changes from emacs-23 branch

13 years agoUse const char* instead of char*.
Dan Nicolaescu [Sun, 8 Aug 2010 21:03:45 +0000 (14:03 -0700)]
Use const char* instead of char*.
* src/xterm.c (x_create_toolkit_scroll_bar):
* src/xfont.c (xfont_list_pattern):
* src/xfns.c (x_default_scroll_bar_color_parameter)
(xic_create_fontsetname, x_default_font_parameter)
(x_screen_planes):
* src/xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
(store_mode_line_string, decode_mode_spec, display_string):
* src/menu.c (digest_single_submenu):
* src/keymap.h (initial_define_key, initial_define_lispy_key):
* src/keymap.c (initial_define_key, initial_define_lispy_key):
* src/image.c (image_error, image_keyword):
* src/gtkutil.h (xg_create_widget, xg_create_scroll_bar):
* src/gtkutil.c (xg_create_widget, xg_create_scroll_bar):
* src/ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
(ftfont_list, ftfont_match):
* src/frame.c (frame_parm_table):
* src/font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
(font_unparse_fcname, font_unparse_fcname, font_open_by_name)
(font_add_log, font_deferred_log):
* src/font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
(font_unparse_fcname, font_unparse_fcname, font_open_by_name)
(font_add_log, font_deferred_log):
* src/emacs.c (argmatch):
* src/dispextern.h (struct it):
* src/coding.c (ENCODE_DESIGNATION):
* src/charset.c (define_charset_internal): Use const.

13 years agoFix query-replace-regexp incomplete highlighting (Bug#6808).
Johan Bockgård [Sun, 8 Aug 2010 20:55:52 +0000 (16:55 -0400)]
Fix query-replace-regexp incomplete highlighting (Bug#6808).

* replace.el (replace-highlight): Bind isearch-forward and
isearch-error, ensuring that highlighting is updated if the user
switches the search direction (Bug#6808).

* isearch.el (isearch-lazy-highlight-forward): New var.
(isearch-lazy-highlight-new-loop, isearch-lazy-highlight-search):
(isearch-lazy-highlight-update): Use it.

13 years ago* src/s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
Dan Nicolaescu [Sun, 8 Aug 2010 20:26:12 +0000 (13:26 -0700)]
* src/s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.

13 years agoCleanup xrdb.c.
Dan Nicolaescu [Sun, 8 Aug 2010 20:16:48 +0000 (13:16 -0700)]
Cleanup xrdb.c.
* src/xrdb.c: Remove include guard.  Remove
DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
Remove #if 0 code.  Replace malloc->xmalloc, free->xfree,
realloc->xrealloc instead of using #defines.

13 years agoFixed bug#6766 (icalendar.el)
Ulf Jasper [Sun, 8 Aug 2010 17:42:47 +0000 (19:42 +0200)]
Fixed bug#6766 (icalendar.el)

lisp/ChangeLog:

* calendar/icalendar.el (icalendar-uid-format): Doc fix.
(icalendar--split-value): Fixed splitting regexp. (Bug#6766)
(icalendar--get-weekday-numbers): New
(icalendar--create-uid, icalendar-export-region)
(icalendar--parse-summary-and-rest): Code formatting.
(icalendar--convert-recurring-to-diary): Handle multiple byday
values in weekly rules. (Bug#6766)

test/ChangeLog:

* icalendar-testsuite.el (icalendar-testsuite-run): Added internal tests.
(icalendar-testsuite--trim, icalendar-testsuite--compare-strings)
(icalendar-testsuite--run-internal-tests): New.
(icalendar-testsuite--test-convert-ordinary-to-ical)
(icalendar-testsuite--test-convert-block-to-ical)
(icalendar-testsuite--test-convert-anniversary-to-ical)
(icalendar-testsuite--test-parse-vtimezone)
(icalendar-testsuite--do-test-export): Code formatting.
(icalendar-testsuite--test-parse-vtimezone): Doc fix.
(icalendar-testsuite--do-test-import)
(icalendar-testsuite--do-test-cycle): Use icalendar-testsuite--compare-strings
(icalendar-testsuite--run-import-tests): Comment added.
(icalendar-testsuite--run-import-tests)
(icalendar-testsuite--run-real-world-tests): Fixed expected results.

13 years agoMake some doc strings bidi-friendly.
Eli Zaretskii [Sun, 8 Aug 2010 16:43:26 +0000 (19:43 +0300)]
Make some doc strings bidi-friendly.

 cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
 editfns.c (Fline_beginning_position, Fline_end_position): State
 in the doc strings that start and end of line are in the logical order.

13 years agoFix overlay arrow display (bug #6699).
Eli Zaretskii [Sun, 8 Aug 2010 16:23:11 +0000 (19:23 +0300)]
Fix overlay arrow display (bug #6699).

 xdisp.c (display_line): Move the handling of overlay arrow after
 the call to find_row_edges.

13 years agocalc.el (calc-trail-mode,calc-refresh): Use `face' property to italicize headers.
Jay Belanger [Sun, 8 Aug 2010 03:04:57 +0000 (22:04 -0500)]
calc.el (calc-trail-mode,calc-refresh): Use `face' property to italicize headers.
(calc-highlight-selections-with-faces): New variable.
(calc-selected-face, calc-nonselected-face): New faces.

calccomp.el (math-comp-highlight-string): Use
`calc-highlight-selections-with-faces' to determine how to highlight
subformulas.

calc-sel.el (calc-show-selections): Change message to something
appropriate.

calc.texi (Making Selections, Selecting Subformulas)
(Customizing Calc): Mention how to use faces to emphasize selected
subformulas.

13 years ago* progmodes/sql.el (sql-mode-sqlite-font-lock-keywords): Added
Michael Mauger [Sat, 7 Aug 2010 23:57:07 +0000 (19:57 -0400)]
* progmodes/sql.el (sql-mode-sqlite-font-lock-keywords): Added
        SQLite 3 keywords, functions and datatypes.
        (sql-interactive-mode): Removed `comint-process-echoes' set to t
        (Bug#6686).

13 years agoAvoid restrictions when copying window selection.
Chong Yidong [Sat, 7 Aug 2010 20:26:55 +0000 (16:26 -0400)]
Avoid restrictions when copying window selection.
* src/keyboard.c (command_loop_1):
* src/insdel.c (prepare_to_modify_buffer): Don't call validate_region.

13 years agoFix last change.
Chong Yidong [Sat, 7 Aug 2010 20:10:30 +0000 (16:10 -0400)]
Fix last change.

13 years agoChange `select-active-region' mechanics.
Chong Yidong [Sat, 7 Aug 2010 19:39:04 +0000 (15:39 -0400)]
Change `select-active-region' mechanics.
Save region text prior to buffer modification.
Set window selection lazily, during `deactivate-mark' or after each
command when the region is temporarily active.

* lisp/cus-start.el: Add custom declaration for select-active-regions.

* lisp/mouse.el (mouse-drag-track): Remove hacks to deal with old
select-active-regions implementation.
(mouse-yank-at-click): Doc fix.

* lisp/simple.el (select-active-regions): Move to keyboard.c.
(deactivate-mark): Used saved-region-selection.
(select-active-region): Function removed.
(activate-mark, set-mark, push-mark-command)
(handle-shift-selection): Don't call it.
(keyboard-quit): Avoid adding the region to the window selection.

* src/insdel.c (prepare_to_modify_buffer): Save active region text to
Vsaved_region_selection.

* src/keyboard.c (Vselect_active_regions): Move from simple.el.
(Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New
vars.
(command_loop_1): Set window selection prior to deactivating the
mark.

* src/xselect.c (QPRIMARY): Move to keyboard.c.

13 years agoNEWS: Mention the Hebrew translation of the tutorial.
Eli Zaretskii [Sat, 7 Aug 2010 10:26:42 +0000 (13:26 +0300)]
NEWS: Mention the Hebrew translation of the tutorial.