1. 10 May, 2011 5 commits
    • Eli Zaretskii's avatar
      Started work on reordering display strings. Refactor FETCH_CHAR. · 182ce2d2
      Eli Zaretskii authored
      Only compiled, not tested.
      
       src/xdisp.c (compute_display_string_pos): New function.
       (reseat_1): Initialize bidi_it.disp_pos.
       src/bidi.c (bidi_copy_it): Use offsetof.
       (bidi_fetch_char, bidi_fetch_char_advance): New functions.
       (bidi_cache_search, bidi_cache_iterator_state)
       (bidi_paragraph_init, bidi_resolve_explicit, bidi_resolve_weak)
       (bidi_level_of_next_char, bidi_move_to_visually_next): Support
       character positions inside a run of characters covered by a
       display string.
       (bidi_paragraph_init, bidi_resolve_explicit_1)
       (bidi_level_of_next_char): Call bidi_fetch_char and
       bidi_fetch_char_advance instead of FETCH_CHAR and
       FETCH_CHAR_ADVANCE.
       (bidi_init_it): Initialize new members.
       (LRE_CHAR, RLE_CHAR, PDF_CHAR, LRO_CHAR, RLO_CHAR): Remove macro
       definitions.
       (bidi_explicit_dir_char): Lookup character type in bidi_type_table,
       instead of using explicit *_CHAR codes.
       (bidi_resolve_explicit, bidi_resolve_weak): Use
       FETCH_MULTIBYTE_CHAR instead of FETCH_CHAR, as reordering of
       bidirectional text is supported only in multibyte buffers.
       src/dispextern.h (struct bidi_it): New members nchars and disp_pos.
       ch_len is now EMACS_INT.
       (compute_display_string_pos): Declare prototype.
      182ce2d2
    • Katsumi Yamaoka's avatar
      gnus-art.el (gnus-article-mode): Move binding of shr-put-image-function here... · ffb54e99
      Katsumi Yamaoka authored
      gnus-art.el (gnus-article-mode): Move binding of shr-put-image-function here from gnus-article-prepare-display.
      ffb54e99
    • Katsumi Yamaoka's avatar
      shr.el (shr-put-image-function): New variable. · b9bdaf74
      Katsumi Yamaoka authored
       (shr-image-fetched, shr-image-displayer, shr-tag-img): Funcall it.
       (shr-put-image): Return scaled image.
      gnus-art.el (gnus-shr-put-image): New function.
       (gnus-article-prepare-display): Bind shr-put-image-function to it.
      gnus-html.el (gnus-html-wash-images): Register scaled images, not original ones, as deletable.
      b9bdaf74
    • Glenn Morris's avatar
      Deprecate using "mode:" to enable minor modes (bug#8613) · b8f82dc1
      Glenn Morris authored
      * lisp/files.el (hack-one-local-variable-eval-safep):
      Consider "eval: (foo-mode)" to be safe.
      
      * doc/emacs/custom.texi (Specifying File Variables):
      Deprecate using mode: for minor modes.
      
      * etc/NEWS: Mention this.
      
      * lisp/doc-view.el, lisp/net/soap-client.el:
      Change "mode:" minor-mode file local variables to use "eval:".
      b8f82dc1
    • Glenn Morris's avatar
      diary-lib.el doc fixes. · 4f99f44b
      Glenn Morris authored
      * lisp/calendar/diary-lib.el (diary-list-entries-hook)
      (diary-mark-entries-hook, diary-nongregorian-listing-hook)
      (diary-nongregorian-marking-hook, diary-list-entries)
      (diary-include-other-diary-files, diary-mark-entries)
      (diary-mark-included-diary-files): Doc fixes.
      4f99f44b
  2. 09 May, 2011 15 commits
  3. 08 May, 2011 6 commits
  4. 07 May, 2011 14 commits
    • Eli Zaretskii's avatar
      Fix bug #8595 with setting mailclient-send-it on MS-Windows. · 605c9376
      Eli Zaretskii authored
       lisp/mail/sendmail.el (send-mail-function): On MS-Windows, default to
       mailclient-send-it even if window-system is nil.
      605c9376
    • Glenn Morris's avatar
    • Eli Zaretskii's avatar
      Fix bug #8597 with setting frame background mode on w32 console. · b0512a1d
      Eli Zaretskii authored
       src/w32console.c (Fset_screen_color): Doc fix.
       (Fget_screen_color): New function.
       (syms_of_ntterm): Defsubr it.
       lisp/term/w32console.el (terminal-init-w32console): Call
       get-screen-color and use its output to set the frame
       background-mode.
      b0512a1d
    • Eli Zaretskii's avatar
      Adapt the MS-DOS build to latest changes. · 0966ef96
      Eli Zaretskii authored
       src/callproc.c (call_process_cleanup): Don't close and unlink the
       temporary file if Fcall_process didn't create it in the first
       place.
       (Fcall_process): Don't create tempfile if stdout of the child
       process will be redirected to a file specified with `:file'.
       Don't try to re-open tempfile in that case, and set fd[0] to -1 as
       cue to call_process_cleanup not to close that handle.
       msdos/inttypes.h: Include stdint.h.
       (uintmax_t): Don't define, it is defined in stdint.h.
       msdos/sedlibmk.inp (am__append_1): Edit to comment out.
       (am__append_2): Edit to expose.
       (NEXT_AS_FIRST_DIRECTIVE_STDARG_H, NEXT_STDARG_H, STDARG_H): Edit
       to empty.
       (@GL_GENERATE_STDARG_H_TRUE@, @GL_GENERATE_STDARG_H_FALSE@): Edit
       to comment out corresponding lines.
      0966ef96
    • Eli Zaretskii's avatar
      Fix changes in 2011-05-01T00:04:17Z!larsi@gnus.org for MS-DOS. · 888c9e86
      Eli Zaretskii authored
       src/callproc.c (call_process_cleanup): Don't close and unlink the
       temporary file if Fcall_process didn't create it in the first
       place.
       (Fcall_process): Don't create tempfile if stdout of the child
       process will be redirected to a file specified with `:file'.
       Don't try to re-open tempfile in that case, and set fd[0] to -1 as
       cue to call_process_cleanup not to close that handle.
      888c9e86
    • Julien Danjou's avatar
    • Eli Zaretskii's avatar
      Adapt MS-DOS configury to latest changes. · 75c0d28a
      Eli Zaretskii authored
       msdos/inttypes.h: Include stdint.h.
       (uintmax_t): Don't define, it is defined in stdint.h.
       msdos/sedlibmk.inp (am__append_1): Edit to comment out.
       (am__append_2): Edit to expose.
       (NEXT_AS_FIRST_DIRECTIVE_STDARG_H, NEXT_STDARG_H, STDARG_H): Edit
       to empty.
       (@GL_GENERATE_STDARG_H_TRUE@, @GL_GENERATE_STDARG_H_FALSE@): Edit
       to comment out corresponding lines.
      75c0d28a
    • Michael Albinus's avatar
    • Stefan Monnier's avatar
      Make bytecomp.el understand that defmethod defines functions. · d1dc2cc2
      Stefan Monnier authored
      * lisp/emacs-lisp/eieio.el (eieio--defalias, eieio--defgeneric-init-form):
      New functions.
      (defgeneric, eieio--defmethod): Use them.
      (eieio-defgeneric): Remove.
      (defmethod): Call defgeneric in a way visible to the byte-compiler.
      
      Fixes: debbugs:8631
      d1dc2cc2
    • Ben Key's avatar
      * nt/configure.bat: Renamed the fusercflags variable to escusercflags · 4d3fcc8e
      Ben Key authored
      so that the variable name better matches its purpose, to be identical
      to usercflags with the exception that all quotes are escaped by the \
      character.
      
      Renamed the fuserldflags variable to escuserldflags so that the
      variable name better matches its purpose, to be identical to
      userldflags with the exception that all quotes are escaped by the \
      character.
      
      A new ESC_USER_CFLAGS variable is written to config.settings.  This
      variable has the same value as the escusercflags variable.
      
      * nt/gmake.defs, nt/nmake.defs: Added the variable ESC_CFLAGS.  This
      variable is identical to the CFLAGS variable except that it includes
      the new ESC_USER_CFLAGS variable instead of USER_CFLAGS.
      
      * src/makefile.w32-in: The bootstrap-temacs rule now makes use of one
      of two shell specific rules, either bootstrap-temacs-CMD or
      bootstrap-temacs-SH.  The bootstrap-temacs-SH rule is identical to the
      previous implementation of the bootstrap-temacs rule.  The
      bootstrap-temacs-CMD rule is similar to the previous implementation of
      the bootstrap-temacs rule except that it makes use of the ESC_CFLAGS
      variable instead of the CFLAGS variable.
      
      
      These changes are required to extend my earlier fix to add support for
      --cflags and --ldflags options that include quotes so that it works
      whether make uses cmd or sh as the shell.
      4d3fcc8e
    • Glenn Morris's avatar
      timeclock.el trivia. · a3961c3e
      Glenn Morris authored
      * lisp/calendar/timeclock.el (timeclock-log-data): Remove unused local.
      Use let rather than let*.
      (timeclock-find-discrep): Remove unused local.
      a3961c3e
    • Glenn Morris's avatar
    • Glenn Morris's avatar
    • Glenn Morris's avatar
      915d1300