Commit graph

95869 commits

Author SHA1 Message Date
Eli Zaretskii
0d68907dbf bidi.c (bidi_level_of_next_char): Fix commentary regarding reordering of PDF. 2010-08-18 19:54:08 +03:00
Eli Zaretskii
9335210608 Fix display of bar cursor on right-to-left text.
xterm.c (x_draw_bar_cursor):
 w32term.c (x_draw_bar_cursor): If the character under cursor is
 R2L, draw the bar cursor on its right rather than on its left.
2010-08-18 19:42:06 +03:00
Stefan Monnier
b5ba2d6f9b * lisp/progmodes/octave-mod.el (octave-mode-menu): Make toggle buttons. 2010-08-18 15:12:34 +02:00
Stefan Monnier
710a7f464c Reindent smie.el 2010-08-18 14:10:30 +02:00
Stefan Monnier
b3a8fe90e7 * smie.el (smie-forward-sexp-command): Fix typo. 2010-08-18 14:03:57 +02:00
Joakim Verona
432c975420 merge from trunk, no conflicts 2010-08-18 13:11:01 +02:00
Stefan Monnier
9acd1bdcb9 * lisp/progmodes/prolog.el (smie): Require. 2010-08-18 13:01:15 +02:00
Stefan Monnier
8723cfa464 Try and remove some of SMIE's black magic by generalizing some rules.
* lisp/emacs-lisp/smie.el (smie-default-backward-token)
(smie-default-forward-token): Strip properties.
(smie-next-sexp): Be more careful with associative operators.
(smie-forward-sexp-command): Generalize.
(smie-backward-sexp-command): Simplify.
(smie-closer-alist): New var.
(smie-close-block): New command.
(smie-indent-debug-log): New var.
(smie-indent-offset-rule): Add a few more cases.
(smie-indent-column): New function.
(smie-indent-after-keyword): Use it.
(smie-indent-keyword): Use it.
Fix up the opener code's point position.
(smie-indent-comment): Only applies at BOL.
(smie-indent-debug): New command.
2010-08-18 12:57:48 +02:00
Joakim Verona
16a911401b documentation changes 2010-08-18 12:35:23 +02:00
Stefan Monnier
0193499fe1 * lisp/emacs-lisp/autoload.el (make-autoload): Preload the macros's
declarations that are useful before running the macro.
* src/eval.c (Fdefmacro): Only obey one declaration.
2010-08-18 12:21:43 +02:00
Stefan Monnier
c785836ddc * casefiddle.c (casify_region): Setup gl_state. 2010-08-18 11:27:53 +02:00
Joakim Verona
3234a340f4 minor cleanup 2010-08-18 11:09:46 +02:00
Kenichi Handa
f3cc64f808 files.el: Add word-wrap as safe local variable. 2010-08-18 17:07:58 +09:00
Jan D
9cb728a58c * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868). 2010-08-18 10:06:45 +02:00
Katsumi Yamaoka
1075cd6169 create-animated-image: Don't add heuristic mask to image (Bug#6839). 2010-08-18 07:45:14 +00:00
Glenn Morris
3b083a0f13 Add bug ref to placeholder NEWS entry. 2010-08-17 23:54:26 -07:00
Jan D
e1e18511e3 * gtkutil.c (update_frame_tool_bar): Literal stings are const char*. 2010-08-18 08:30:54 +02:00
Jan D
64cb6c7883 Use CLIPBOARD and PRIMARY on NS (Bug#6677).
* lisp/term/ns-win.el (ns-get-pasteboard, ns-set-pasteboard): Use
QCLIPBOARD instead of QPRIMARY (Bug#6677).

* src/nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
(symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
QPRIMARY => NXPrimaryPboard.
(ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
NXPrimaryPboard => QPRIMARY.
(nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
NXSecondaryPboard = SecondarySelection.
(syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
2010-08-18 08:16:55 +02:00
Glenn Morris
0ac3effe23 Add NEWS placeholder. 2010-08-17 19:48:28 -07:00
Glenn Morris
eeb4145e4c Fix some more Org `check-declare' issues.
* ob.el: Require org when compiling.
(org-save-outline-visibility): Remove macro declaration.
* ob-emacs-lisp.el: Require ob-comint when compiling, for macros.
Remove unnecessary/macro declarations.
* org-docview.el: Require doc-view when compiling.
(doc-view-goto-page): Autoload rather than declaring.
(doc-view-current-page): Remove macro declaration.
2010-08-17 19:44:25 -07:00
Glenn Morris
cd24d7a9eb Fix typo in previous gnus-sum.el change. 2010-08-17 19:38:44 -07:00
Glenn Morris
bb25c8d7a1 * lisp/woman.el (woman-translate): Case matters. (Bug#6849) 2010-08-17 19:33:13 -07:00
Stefan Monnier
c3554f6825 * src/gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
is a string.
2010-08-17 23:43:47 +02:00
Joakim Verona
a8101f663e merge from trunk 2010-08-17 23:19:11 +02:00
Andreas Schwab
b72e07172e * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
instead of SAFE_ALLOCA.
2010-08-17 23:07:50 +02:00
Jan D
1ff2e434a6 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
x_set_tool_bar_position handler.
2010-08-17 23:05:26 +02:00
Stefan Monnier
afa22f7ce7 * lisp/emacs-lisp/lisp.el (up-list): Obey forward-sexp-function if set. 2010-08-17 22:18:40 +02:00
Eli Zaretskii
0cc5642708 Fix bug #6796.
w32fns.c <w32_frame_parm_handlers>: Add a slot for the
 x_set_tool_bar_position handler, needed to support changes from
 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar.
2010-08-17 23:05:50 +03:00
Stefan Monnier
f0b7054e23 * lisp/newcomment.el (comment-add): Move comment to docstring. 2010-08-17 21:38:30 +02:00
Chong Yidong
3a7a912990 Avoid stack overflow in let, eval, and apply (Bug#6214).
* eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA (Bug#6214).
2010-08-17 12:34:28 -04:00
Glenn Morris
a2fb159c12 Restore lisp/ChangeLog entries clobbered in 2010-08-17T10:07:41Z!jan.h.d@swipnet.se. 2010-08-17 09:32:08 -07:00
Stefan Monnier
ff80a4464a Font-lock '...' strings, plus various simplifications and fixes.
* lisp/progmodes/octave-mod.el (octave-font-lock-keywords): Use regexp-opt.
(octave-font-lock-close-quotes): New function.
(octave-font-lock-syntactic-keywords): New var.
(octave-mode): Use it.  Set beginning-of-defun-function.
(octave-mode-map): Don't override the <foo>-defun commands.
(octave-mode-menu): Pass it directly to easy-menu-define;
remove (now generic) <foo>-defun commands; use info-lookup-symbol.
(octave-block-match-alist): Fix up last change so that
octave-close-block uses the more specific keyword.
(info-lookup-mode): Silence byte-compiler.
(octave-beginning-of-defun): Not interactive any more.
Optimize slightly.
(octave-end-of-defun, octave-mark-defun, octave-in-defun-p): Remove.
(octave-indent-defun, octave-send-defun): Use mark-defun instead.
(octave-completion-at-point-function): Make sure point is within
beg..end.
(octave-reindent-then-newline-and-indent):
Use reindent-then-newline-and-indent.
(octave-add-octave-menu): Remove.
2010-08-17 17:49:30 +02:00
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
05a9766a14 * quail/vntelex.el ("vietnamese-telex"): Doc fix. 2010-08-15 11:36:19 +02:00
Andreas Schwab
b514a395cc * quail/georgian.el: Remove extra backslashes. 2010-08-15 11:34:53 +02:00