]> git.eshelyaron.com Git - emacs.git/log
emacs.git
14 years agoThe range [STARTPOS..ENDPOS] is inclusive in strings.
Eli Zaretskii [Sat, 23 Oct 2010 12:58:12 +0000 (14:58 +0200)]
The range [STARTPOS..ENDPOS] is inclusive in strings.
Tested with multiline display strings.

 xdisp.c (mouse_face_from_string_pos): Fix off-by-one error when
 testing against ENDPOS.

14 years agoTested with L2R rows and mouse highlight on a single line.
Eli Zaretskii [Sat, 23 Oct 2010 12:28:28 +0000 (14:28 +0200)]
Tested with L2R rows and mouse highlight on a single line.

 xdisp.c (mouse_face_from_string_pos): Initialize the `found'
 flag to zero, and exit the outer loop when it's non-zero.  Bail
 our early if no row in the window belongs to the highlighted
 string.  Always back up after exiting the second loop.

14 years agoFinished work on mouse highlight that comes from display strings.
Eli Zaretskii [Sat, 16 Oct 2010 16:14:16 +0000 (18:14 +0200)]
Finished work on mouse highlight that comes from display strings.
Not tested yet.

 xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
 (mouse_face_from_string_pos): New function, replaces fast_find_string_pos.
 (note_mouse_highlight): Call it instead of fast_find_string_pos.

14 years agoSupport bidi-reordered text in mouse-highlighted mode- and header-lines.
Eli Zaretskii [Sat, 16 Oct 2010 12:52:54 +0000 (14:52 +0200)]
Support bidi-reordered text in mouse-highlighted mode- and header-lines.
Note: Not tested with actually bidi-reordered strings.

 xdisp.c (note_mode_line_or_margin_highlight): Support
 bidi-reordered strings and R2L glyph rows.  Fix more comments.

14 years agoStart working on mouse highlight of mode- and header-lines.
Eli Zaretskii [Sat, 16 Oct 2010 10:04:03 +0000 (12:04 +0200)]
Start working on mouse highlight of mode- and header-lines.

 xdisp.c (rows_from_pos_range, mouse_face_from_buffer_pos)
 (note_mode_line_or_margin_highlight): Fix comments.

14 years agoFinished work on mouse_face_from_buffer_pos for bidi-reordered rows.
Eli Zaretskii [Sat, 9 Oct 2010 16:37:15 +0000 (18:37 +0200)]
Finished work on mouse_face_from_buffer_pos for bidi-reordered rows.
Need lots of testing, including bug#1220.
Next task: get rid of fast_find_position, call mouse_face_from_buffer_pos
instead.

 xdisp.c (rows_from_pos_range): New function.
 (mouse_face_from_buffer_pos): Use it instead of calling
 row_containing_pos for START_CHARPOS and END_CHARPOS.
 (note_mouse_highlight): When bidi reordering is turned on in a
 buffer, call next-single-property-change and
 previous-single-property-change with last argument nil.

14 years agoFix beg_col calculation when painting from window start.
Eli Zaretskii [Sat, 2 Oct 2010 17:42:53 +0000 (19:42 +0200)]
Fix beg_col calculation when painting from window start.

 xdisp.c (mouse_face_from_buffer_pos): Don't compute beg_col
 if already decided to paint from beginning of window.

14 years agoFix mouse highlight in bidi-reordered continued lines.
Eli Zaretskii [Sat, 2 Oct 2010 15:05:20 +0000 (17:05 +0200)]
Fix mouse highlight in bidi-reordered continued lines.

 xdisp.c (row_containing_pos): Don't return too early when CHARPOS is in a
 bidi-reordered continued line.  Return immediately when the first
 hit is found in a line that is not continued, or when an exact
 match for CHARPOS is found.
 (mouse_face_from_buffer_pos): Rewrite to not assume that
 START_CHARPOS is always in mouse_face_beg_row.  If necessary, swap
 mouse_face_beg_row and mouse_face_end_row so that the former is
 always above the latter or identical to it.

 Continued lines that begin or end outside of the visible region
 still don't work.

14 years agoFix minor bugs in mouse highlight.
Eli Zaretskii [Sat, 2 Oct 2010 11:48:56 +0000 (13:48 +0200)]
Fix minor bugs in mouse highlight.

 xdisp.c (coords_in_mouse_face_p): Fix the conditions for when
 mouse_face_beg_row and mouse_face_end_row are equal.
 (note_mouse_highlight): Clear mouse highlight when mouse pointer
 is in a R2L row on the stretch glyph that stands for no text
 beyond the line end.

14 years agoClean up mouse highlight in R2L lines.
Eli Zaretskii [Sat, 28 Aug 2010 15:23:10 +0000 (18:23 +0300)]
Clean up mouse highlight in R2L lines.

 xdisp.c (coords_in_mouse_face_p): New function, bidi-aware.
 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
 Call it instead of comparing with mouse-face members of dpyinfo.
 (note_mode_line_or_margin_highlight): Fix confusingly swapped
 usage of hpos and vpos.

14 years agoFix mouse highlight in continued R2L lines.
Eli Zaretskii [Sat, 28 Aug 2010 14:12:36 +0000 (17:12 +0300)]
Fix mouse highlight in continued R2L lines.

 xdisp.c (show_mouse_face): Support drawing highlighted R2L lines.

14 years agoSupport L2R continued lines.
Eli Zaretskii [Sat, 28 Aug 2010 12:36:19 +0000 (15:36 +0300)]
Support L2R continued lines.

 xdisp.c (mouse_face_from_buffer_pos): Fix the case of continued L2R lines.

14 years agoSupport R2L rows. Continued lines still don't work correctly.
Eli Zaretskii [Sat, 28 Aug 2010 11:09:02 +0000 (14:09 +0300)]
Support R2L rows.  Continued lines still don't work correctly.

 xdisp.c (mouse_face_from_buffer_pos): Fix code using bug#1220 as
 test case.  Implement  highlight for R2L rows.

14 years agoFix L2R code using bug #1220 as a test case.
Eli Zaretskii [Sat, 28 Aug 2010 09:32:44 +0000 (12:32 +0300)]
Fix L2R code using bug #1220 as a test case.

 xdisp.c (mouse_face_from_buffer_pos): before_string and after_string
 are also relevant when they come from an overlay.

14 years agoInitial partial support for mouse highlight in bidi-reordered text.
Eli Zaretskii [Sat, 21 Aug 2010 15:24:15 +0000 (18:24 +0300)]
Initial partial support for mouse highlight in bidi-reordered text.

 xdisp.c (mouse_face_from_buffer_pos): Support mouse highlight in
 bidi-reordered L2R lines.  Continued lines are not yet supported.

14 years agoFix mirroring pixel positions on GUI terminals.
Eli Zaretskii [Sat, 21 Aug 2010 09:35:31 +0000 (12:35 +0300)]
Fix mirroring pixel positions on GUI terminals.

 dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
 mirroring pixel positions.

14 years agoCleanups and fixes for mouse-save-then-kill and mouse-secondary-save-then-kill.
Chong Yidong [Sat, 21 Aug 2010 04:46:23 +0000 (00:46 -0400)]
Cleanups and fixes for mouse-save-then-kill and mouse-secondary-save-then-kill.

* mouse.el (mouse-save-then-kill): Don't save region to kill ring
when extending it.  Before killing on the second click, check if
the buffer is the correct one.  Doc fix.
(mouse-secondary-save-then-kill): Allow usage without first
calling mouse-start-secondary, by defaulting to point.  Don't save
an empty secondary selection.  Doc fix.

14 years agoFix slow cursor movement.
Vinicius Jose Latorre [Sat, 21 Aug 2010 04:43:04 +0000 (01:43 -0300)]
Fix slow cursor movement.

14 years agoChangeLog fixes.
Glenn Morris [Sat, 21 Aug 2010 02:21:51 +0000 (19:21 -0700)]
ChangeLog fixes.

14 years agoRemove unused variables malloc_sbrk_used and malloc_sbrk_unused.
Dan Nicolaescu [Fri, 20 Aug 2010 23:02:11 +0000 (16:02 -0700)]
Remove unused variables malloc_sbrk_used and malloc_sbrk_unused.
* src/alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
write only.
(init_alloc_once): Remove writes to malloc_sbrk_unused, and
malloc_sbrk_used, nothing uses them.

14 years agoSmall src/puresize.h cleanup.
Dan Nicolaescu [Fri, 20 Aug 2010 22:52:10 +0000 (15:52 -0700)]
Small src/puresize.h cleanup.
* src/puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
defined, unconditionally defined in lisp.h.

14 years ago* src/term.c: Do not include <termios.h>, systty.h does it.
Dan Nicolaescu [Fri, 20 Aug 2010 22:44:38 +0000 (15:44 -0700)]
* src/term.c: Do not include <termios.h>, systty.h does it.

14 years agoRemove redundant HAVE_TCATTR defines.
Dan Nicolaescu [Fri, 20 Aug 2010 22:36:07 +0000 (15:36 -0700)]
Remove redundant HAVE_TCATTR defines.
* src/s/unixware.h (HAVE_TCATTR):
* src/s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
systty.h defines it when HAVE_TERMIOS is defined.

14 years agoFix last change in buffer_posn_from_coords for text terminals.
Eli Zaretskii [Fri, 20 Aug 2010 21:01:36 +0000 (00:01 +0300)]
Fix last change in buffer_posn_from_coords for text terminals.

 dispnew.c (buffer_posn_from_coords): Add one-character offset for R2L lines.

14 years agoFix last change in buffer_posn_from_coords for text terminals.
Eli Zaretskii [Fri, 20 Aug 2010 20:55:09 +0000 (23:55 +0300)]
Fix last change in buffer_posn_from_coords for text terminals.

 dispnew.c (buffer_posn_from_coords): Add one-character offset for R2L lines.

14 years agoFix the MSDOS build broken by the ImageMagick support.
Eli Zaretskii [Fri, 20 Aug 2010 20:26:12 +0000 (23:26 +0300)]
Fix the MSDOS build broken by the ImageMagick support.

 sed1v2.inp (IMAGEMAGICK_LIBS, IMAGEMAGICK_CFLAGS): Edit to empty.

14 years agoAdd cross-references regarding POSITION of mouse events.
Eli Zaretskii [Fri, 20 Aug 2010 20:07:29 +0000 (23:07 +0300)]
Add cross-references regarding POSITION of mouse events.

 commands.texi (Misc Events): Add cross-references to where
 POSITION of a mouse event is described in detail.

14 years agomerge from upstream
Joakim Verona [Fri, 20 Aug 2010 20:00:00 +0000 (22:00 +0200)]
merge from upstream

14 years agominor imagemagick tweaks, one configure bugfix, and some ChangeLogs
Joakim Verona [Fri, 20 Aug 2010 19:55:21 +0000 (21:55 +0200)]
minor imagemagick tweaks, one configure bugfix, and some ChangeLogs

14 years agoFix version string in top-level MSDOS Makefile.
Eli Zaretskii [Fri, 20 Aug 2010 19:49:20 +0000 (22:49 +0300)]
Fix version string in top-level MSDOS Makefile.

 msdos/mainmake.v2 (version): Update due to change in emacs.c.
 src/emacs.c <emacs_version>: Add a comment regarding msdos/mainmake.v2's
 dependency on the syntax of this declaration.

14 years agoFix version string in top-level MSDOS Makefile.
Eli Zaretskii [Fri, 20 Aug 2010 19:45:24 +0000 (22:45 +0300)]
Fix version string in top-level MSDOS Makefile.

 msods/mainmake.v2 (version): Update due to change in emacs.c.
 src/emacs.c <emacs_version>: Add a comment regarding msdos/mainmake.v2's
 dependency on the syntax of this declaration.

14 years agoxdisp.c: Add commentary about iterator geometry in R2L paragraphs.
Eli Zaretskii [Fri, 20 Aug 2010 14:31:38 +0000 (17:31 +0300)]
xdisp.c: Add commentary about iterator geometry in R2L paragraphs.

14 years agoFix mouse clicks, drag, and highlight in R2L lines.
Eli Zaretskii [Fri, 20 Aug 2010 14:19:39 +0000 (17:19 +0300)]
Fix mouse clicks, drag, and highlight in R2L lines.

 dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
 position for R2L lines by mirroring the pixel position wrt the
 text are box.  Improve commentary.

14 years ago* image.c (imagemagick_clear_image): Remove debugging output.
Andreas Schwab [Fri, 20 Aug 2010 12:02:43 +0000 (14:02 +0200)]
* image.c (imagemagick_clear_image): Remove debugging output.

14 years ago* lisp/files.el (locate-file-completion-table): Only list the .el and .elc
Stefan Monnier [Thu, 19 Aug 2010 21:21:21 +0000 (23:21 +0200)]
* lisp/files.el (locate-file-completion-table): Only list the .el and .elc
extensions if there's no other choice.

Fixes: debbugs:5955
14 years agont/addpm.c (add_registry): Create App Paths of type REG_EXPAND_SZ.
Juanma Barranquero [Thu, 19 Aug 2010 16:38:41 +0000 (18:38 +0200)]
nt/addpm.c (add_registry): Create App Paths of type REG_EXPAND_SZ.

14 years ago(set_frame_menubar): Remove call to undefined function.
Jason Rumney [Thu, 19 Aug 2010 15:53:08 +0000 (23:53 +0800)]
(set_frame_menubar): Remove call to undefined function.

14 years agoNew post-self-insert-hook.
Stefan Monnier [Thu, 19 Aug 2010 15:43:45 +0000 (17:43 +0200)]
New post-self-insert-hook.
* src/cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
(Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
(internal_self_insert): Run post-self-insert-hook rather than handle
self-insert-face.
(syms_of_cmds): Initialize the new vars.
* lisp/facemenu.el (facemenu-self-insert-data): New var.
(facemenu-post-self-insert-function, facemenu-set-self-insert-face): New funs.
(facemenu-add-face): Use them.

14 years ago(w32_wnd_proc): Don't check context before initializing.
Jason Rumney [Thu, 19 Aug 2010 14:51:09 +0000 (22:51 +0800)]
(w32_wnd_proc): Don't check context before initializing.

14 years ago* lisp/simple.el (blink-matching-open): Obey forward-sexp-function.
Stefan Monnier [Thu, 19 Aug 2010 09:37:40 +0000 (11:37 +0200)]
* lisp/simple.el (blink-matching-open): Obey forward-sexp-function.

14 years agoupstream merge
Joakim Verona [Thu, 19 Aug 2010 07:34:21 +0000 (09:34 +0200)]
upstream merge

14 years agosome minor cosmetic fixes in comments
Joakim Verona [Thu, 19 Aug 2010 07:29:27 +0000 (09:29 +0200)]
some minor cosmetic fixes in comments

14 years agofix some accidental whitespace changes
Joakim Verona [Thu, 19 Aug 2010 07:23:06 +0000 (09:23 +0200)]
fix some accidental whitespace changes

14 years ago* nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
Jan D [Thu, 19 Aug 2010 05:55:30 +0000 (07:55 +0200)]
* nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".

14 years agoFix previous Org change.
Glenn Morris [Thu, 19 Aug 2010 03:45:46 +0000 (20:45 -0700)]
Fix previous Org change.
* org.el (org-outline-overlay-data, org-set-outline-overlay-data)
(org-save-outline-visibility): Move to org-macs.
* org-macs.el (org-outline-overlay-data, org-set-outline-overlay-data)
(org-save-outline-visibility): Move here from org.el.
(show-all): Autoload it.
* ob.el: Don't require org when compiling.

14 years ago* lisp/simple.el (prog-mode-map): New var.
Stefan Monnier [Wed, 18 Aug 2010 23:25:36 +0000 (01:25 +0200)]
* lisp/simple.el (prog-mode-map): New var.
(prog-indent-sexp): New command.

14 years agoxterm.c (x_draw_bar_cursor): Fix last change.
Eli Zaretskii [Wed, 18 Aug 2010 19:06:11 +0000 (22:06 +0300)]
xterm.c (x_draw_bar_cursor): Fix last change.

14 years agobidi.c (bidi_level_of_next_char): Fix commentary regarding reordering of PDF.
Eli Zaretskii [Wed, 18 Aug 2010 16:54:08 +0000 (19:54 +0300)]
bidi.c (bidi_level_of_next_char): Fix commentary regarding reordering of PDF.

14 years agoFix display of bar cursor on right-to-left text.
Eli Zaretskii [Wed, 18 Aug 2010 16:42:06 +0000 (19:42 +0300)]
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.

14 years ago* lisp/progmodes/octave-mod.el (octave-mode-menu): Make toggle buttons.
Stefan Monnier [Wed, 18 Aug 2010 13:12:34 +0000 (15:12 +0200)]
* lisp/progmodes/octave-mod.el (octave-mode-menu): Make toggle buttons.

14 years agoReindent smie.el
Stefan Monnier [Wed, 18 Aug 2010 12:10:30 +0000 (14:10 +0200)]
Reindent smie.el

14 years ago* smie.el (smie-forward-sexp-command): Fix typo.
Stefan Monnier [Wed, 18 Aug 2010 12:03:57 +0000 (14:03 +0200)]
* smie.el (smie-forward-sexp-command): Fix typo.

14 years agomerge from trunk, no conflicts
Joakim Verona [Wed, 18 Aug 2010 11:11:01 +0000 (13:11 +0200)]
merge from trunk, no conflicts

14 years ago* lisp/progmodes/prolog.el (smie): Require.
Stefan Monnier [Wed, 18 Aug 2010 11:01:15 +0000 (13:01 +0200)]
* lisp/progmodes/prolog.el (smie): Require.

14 years agoTry and remove some of SMIE's black magic by generalizing some rules.
Stefan Monnier [Wed, 18 Aug 2010 10:57:48 +0000 (12:57 +0200)]
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.

14 years agodocumentation changes
Joakim Verona [Wed, 18 Aug 2010 10:35:23 +0000 (12:35 +0200)]
documentation changes

14 years ago* lisp/emacs-lisp/autoload.el (make-autoload): Preload the macros's
Stefan Monnier [Wed, 18 Aug 2010 10:21:43 +0000 (12:21 +0200)]
* 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.

14 years ago* casefiddle.c (casify_region): Setup gl_state.
Stefan Monnier [Wed, 18 Aug 2010 09:27:53 +0000 (11:27 +0200)]
* casefiddle.c (casify_region): Setup gl_state.

14 years agominor cleanup
Joakim Verona [Wed, 18 Aug 2010 09:09:46 +0000 (11:09 +0200)]
minor cleanup

14 years ago* nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
Jan D [Wed, 18 Aug 2010 08:06:45 +0000 (10:06 +0200)]
* nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).

14 years agocreate-animated-image: Don't add heuristic mask to image (Bug#6839).
Katsumi Yamaoka [Wed, 18 Aug 2010 07:45:14 +0000 (07:45 +0000)]
create-animated-image: Don't add heuristic mask to image (Bug#6839).

14 years agoAdd bug ref to placeholder NEWS entry.
Glenn Morris [Wed, 18 Aug 2010 06:54:26 +0000 (23:54 -0700)]
Add bug ref to placeholder NEWS entry.

14 years ago* gtkutil.c (update_frame_tool_bar): Literal stings are const char*.
Jan D [Wed, 18 Aug 2010 06:30:54 +0000 (08:30 +0200)]
* gtkutil.c (update_frame_tool_bar): Literal stings are const char*.

14 years agoUse CLIPBOARD and PRIMARY on NS (Bug#6677).
Jan D [Wed, 18 Aug 2010 06:16:55 +0000 (08:16 +0200)]
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).

14 years agoAdd NEWS placeholder.
Glenn Morris [Wed, 18 Aug 2010 02:48:28 +0000 (19:48 -0700)]
Add NEWS placeholder.

14 years agoFix some more Org `check-declare' issues.
Glenn Morris [Wed, 18 Aug 2010 02:44:25 +0000 (19:44 -0700)]
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.

14 years agoFix typo in previous gnus-sum.el change.
Glenn Morris [Wed, 18 Aug 2010 02:38:44 +0000 (19:38 -0700)]
Fix typo in previous gnus-sum.el change.

14 years ago* src/gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
Stefan Monnier [Tue, 17 Aug 2010 21:43:47 +0000 (23:43 +0200)]
* src/gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
is a string.

14 years agomerge from trunk
Joakim Verona [Tue, 17 Aug 2010 21:19:11 +0000 (23:19 +0200)]
merge from trunk

14 years ago* nsfns.m (ns_frame_parm_handlers): Add a slot for the
Jan D [Tue, 17 Aug 2010 21:05:26 +0000 (23:05 +0200)]
* nsfns.m (ns_frame_parm_handlers): Add a slot for the
x_set_tool_bar_position handler.

14 years ago* lisp/emacs-lisp/lisp.el (up-list): Obey forward-sexp-function if set.
Stefan Monnier [Tue, 17 Aug 2010 20:18:40 +0000 (22:18 +0200)]
* lisp/emacs-lisp/lisp.el (up-list): Obey forward-sexp-function if set.

14 years agoFix bug #6796.
Eli Zaretskii [Tue, 17 Aug 2010 20:05:50 +0000 (23:05 +0300)]
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.

14 years ago* lisp/newcomment.el (comment-add): Move comment to docstring.
Stefan Monnier [Tue, 17 Aug 2010 19:38:30 +0000 (21:38 +0200)]
* lisp/newcomment.el (comment-add): Move comment to docstring.

14 years agoRestore lisp/ChangeLog entries clobbered in 2010-08-17T10:07:41Z!jan.h.d@swipnet.se.
Glenn Morris [Tue, 17 Aug 2010 16:32:08 +0000 (09:32 -0700)]
Restore lisp/ChangeLog entries clobbered in 2010-08-17T10:07:41Z!jan.h.d@swipnet.se.

14 years agoFont-lock '...' strings, plus various simplifications and fixes.
Stefan Monnier [Tue, 17 Aug 2010 15:49:30 +0000 (17:49 +0200)]
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.

14 years agoAdd command C-c m in report-emacs-bug that puts the bug into preferred mailer.
Jan Djärv [Tue, 17 Aug 2010 10:07:41 +0000 (12:07 +0200)]
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.

14 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

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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).

14 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).

14 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).

14 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.

14 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).

14 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.

14 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.

14 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.

14 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).

14 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.

14 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).

14 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.

14 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).

14 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).

14 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).

14 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.