1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-05 11:21:04 -08:00
Commit graph

95699 commits

Author SHA1 Message Date
Jan Djärv
489cd5bd5a Add command C-c m in report-emacs-bug that puts the bug into preferred mailer.
Depends on xdg-email being available.

* lisp/mail/emacsbug.el (report-emacs-bug-insert-to-mailer)
(report-emacs-bug-can-use-xdg-email): New functions.
(report-emacs-bug): Set can-xdg-email to result of
report-emacs-bug-can-use-xdg-email.  If can-xdg-email bind
\C-cm to report-emacs-bug-insert-to-mailer and add help text
about it.
2010-08-17 12:07:41 +02:00
Jan Djärv
2269b349e3 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
2010-08-17 10:01:10 +02:00
Glenn Morris
f1eee0b684 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.
2010-08-17 00:29:26 -07:00
Glenn Morris
10506f644a Silence more Gnus compiler warnings.
* lisp/gnus/gnus-sync.el: Require Gnus components whose functions are used.
2010-08-17 00:04:35 -07:00
Glenn Morris
8e7d4ca1f6 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.
2010-08-17 00:00:16 -07:00
Glenn Morris
f3b554af9d 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.
2010-08-16 23:54:03 -07:00
Glenn Morris
30ebab6ded Minor icalendar fix.
* lisp/calendar/icalendar.el (icalendar--convert-recurring-to-diary):
Fix format call.
2010-08-16 23:48:37 -07:00
Michael Albinus
bb6aba9c64 * 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.
2010-08-17 06:52:16 +02:00
Jan D
573d150b4c * nsselect.m (syms_of_nsselect): Don't intern QPRIMARY. 2010-08-16 10:17:02 +02:00
Jan D
921242c6f4 nsselect.m: include keyboard.h for QPRIMARY, remove its declaration (Bug#6863). 2010-08-16 10:03:27 +02:00
Jan Djärv
e45a249b8a Don't define QPRIMARY twice.
* keyboard.h (QPRIMARY): Declare (Bug#6864).

* xselect.c: Remove declaration of QPRIMARY (Bug#6864).
2010-08-16 09:52:32 +02:00
Deniz Dogan
8f10c93712 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).
2010-08-15 23:34:10 -04:00
Chong Yidong
7c23dd4468 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.
2010-08-15 22:33:17 -04:00
Chong Yidong
6d3e82d2d6 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).
2010-08-15 22:08:01 -04:00
Katsumi Yamaoka
4e815860f5 gnus-start-draft-setup: Move doc string forward. 2010-08-15 23:30:04 +00:00
Jan D
0005830ccc * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
isn't a string.
2010-08-15 15:18:14 +02:00
Andreas Schwab
603dfc72ef * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen. 2010-08-15 11:30:06 +02:00
Jan D
c25ce9d017 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).
2010-08-15 10:13:02 +02:00
Chong Yidong
c68263b1fd 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.
2010-08-14 20:04:53 -04:00
Štěpán Němec
456f369a38 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).
2010-08-14 19:42:07 -04:00
Chong Yidong
b7716b254d Fix ChangeLog entry in last commit. 2010-08-14 19:32:25 -04:00
Kevin Ryde
c22e18f561 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).
2010-08-14 19:30:51 -04:00
Tom Tromey
6f1a6fafcf * lisp/progmodes/etags.el (tags-file-name): Mark safe if stringp (Bug#6733). 2010-08-14 19:01:42 -04:00
Vivek Dasmohapatra
8a8d54cd2a 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).
2010-08-14 18:58:10 -04:00
Katsumi Yamaoka
ab731e1cf3 Typo fix "hoo4a" -> "hook".
From Ted Zlatanov <tzz@lifelogs.com>.

* gnus-sync.el (gnus-sync-install-hooks): Typo fix.
2010-08-14 22:14:02 +00:00
Chong Yidong
e1025755d2 Minor doc fix. 2010-08-14 17:13:49 -04:00
Eli Zaretskii
e7afcf30cd 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.
2010-08-14 18:41:22 +03:00
Eli Zaretskii
b236615c10 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.
2010-08-14 15:55:04 +03:00
Eli Zaretskii
5872c762ed 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.
2010-08-14 13:59:55 +03:00
Katsumi Yamaoka
f5a62bb4a3 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'.
2010-08-14 10:50:20 +00:00
Katsumi Yamaoka
8c33070780 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.
2010-08-14 10:45:32 +00:00
Eli Zaretskii
b482d923a7 Minor fixes in TUTORIAL.he.
tutorials/TUTORIAL.he: Use MAQAF instead of hyphen where appropriate.
 Fix a few typos.
2010-08-14 11:46:48 +03:00
Jason Rumney
e66f9a1b7a (lispy_function_keys): Do not define VK_PACKET (bug#4836) 2010-08-14 15:35:24 +08:00
Glenn Morris
810717b6cc * lisp/gnus/gnus-sync.el (gnus-sync): Fix defgroup version. 2010-08-13 19:02:31 -07:00
Chong Yidong
79d6f59e96 * fns.c (Fmake_hash_table): Doc fix (Bug#6851). 2010-08-13 20:39:08 -04:00
Jason Rumney
1c9b41290f 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.
2010-08-13 22:54:32 +08:00
Jan D
2b4e627726 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.
2010-08-13 15:26:13 +02:00
Eli Zaretskii
9dec0f7642 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.
2010-08-13 14:09:51 +03:00
Katsumi Yamaoka
186a9cbb9d 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.
2010-08-13 11:03:19 +00:00
Katsumi Yamaoka
79993b193e 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.
2010-08-13 10:58:21 +00:00
Katsumi Yamaoka
bbe276f2bf 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).
2010-08-13 10:54:05 +00:00
Katsumi Yamaoka
9fc8d4649f add lisp/gnus/gnus-sync.el 2010-08-13 10:50:01 +00:00
Katsumi Yamaoka
62a83cc83d 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.
2010-08-13 10:44:22 +00:00
Katsumi Yamaoka
7715496120 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.
2010-08-13 10:39:16 +00:00
Katsumi Yamaoka
c4b1c354d3 Make gnus-start-draft-setup interactive.
From Ted Zlatanov <tzz@lifelogs.com>.

* gnus-start.el (gnus-start-draft-setup): Make it interactive.
2010-08-13 10:32:35 +00:00
Eli Zaretskii
8ee818927b 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).
2010-08-13 13:29:48 +03:00
Eli Zaretskii
891ef8f7d7 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.
2010-08-13 12:21:31 +03:00
Eli Zaretskii
38e41e0e78 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.
2010-08-13 11:32:13 +03:00
Eli Zaretskii
94c97d853f 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 *".
2010-08-13 11:10:05 +03:00
Jan D
1c0d77ccc5 Fix typo. 2010-08-13 08:57:12 +02:00