1. 01 Jan, 2014 1 commit
  2. 29 Dec, 2013 1 commit
    • Paul Eggert's avatar
      Plain copy-file no longer chmods an existing destination. · a560b856
      Paul Eggert authored
      * doc/lispref/files.texi (Changing Files): Document this.
      * etc/NEWS: Document this.
      * src/fileio.c (realmask): Now a static var, not a local.
      (barf_or_query_if_file_exists): New arg KNOWN_TO_EXIST.
      Remove arg STATPTR.  All uses changed.
      (Fcopy_file): Do not alter permissions of existing destinations,
      unless PRESERVE-PERMISSIONS (renamed from
      PRESERVE-EXTENDED-ATTRIBUTES) is non-nil.
      Avoid race when testing for existing destinations and for
      when input and output files are the same.
      If changing the group fails, adjust both default and
      preserved permissions so that access is not granted to the
      wrong group.
      (Fset_default_file_modes, init_fileio): Update realmask.
      (Fdefault_file_modes): Use realmask instead of calling umask.
      
      Fixes: debbugs:16133
      a560b856
  3. 28 Dec, 2013 1 commit
  4. 26 Dec, 2013 1 commit
    • João Távora's avatar
      Make Electric Pair mode smarter/more useful: · 3b8d5131
      João Távora authored
      * lisp/electric.el: Pairing/skipping helps preserve
        balance. Autobackspacing behaviour. Opens extra newlines between
        pairs. Skip whitespace before closing delimiters.
      
      * lisp/emacs-lisp/lisp-mode.el (lisp-mode-variables): Use new
        features.
      
      * test/automated/electric-tests.lisp: New file.
      
      * doc/emacs/programs.texi: Describe new features.
      
      * lisp/simple.el: Pass non-nil interactive arg to newline call inside
        newline-and-indent.
      3b8d5131
  5. 23 Dec, 2013 3 commits
  6. 21 Dec, 2013 2 commits
  7. 13 Dec, 2013 1 commit
  8. 23 Nov, 2013 2 commits
  9. 20 Nov, 2013 1 commit
  10. 18 Nov, 2013 1 commit
  11. 01 Nov, 2013 1 commit
    • Jan Djärv's avatar
      Add :distant-foreground to faces. · 3c334c14
      Jan Djärv authored
      * doc/lispref/display.texi (Face Attributes): Document :distant-foreground.
      
      * etc/NEWS: Mention :distant-foreground.
      
      * lisp/faces.el (face-x-resources): Add :distant-foreground.
      (region): Use :distant-foreground for gtk and ns.
      
      * src/dispextern.h (lface_attribute_index): Add
      LFACE_DISTANT_FOREGROUND_INDEX.
      
      * src/xfaces.c: Declare color_distance.
      (QCdistant_foreground): New variable.
      (NEAR_SAME_COLOR_THRESHOLD): New define.
      (load_color2): New function.
      (load_color): Call load_color2.
      (load_face_colors): Call load_color2 and if distant-color is specified
      calculate distant and use distant-color if colors are near.
      (LFACE_DISTANT_FOREGROUND): New define.
      (merge_face_ref, Finternal_set_lisp_face_attribute)
      (Finternal_get_lisp_face_attribute)
      (x_supports_face_attributes_p): Handle distant-foreground similar to
      foreground.
      (syms_of_xfaces): DEFSYM QCdistant_foreground.
      3c334c14
  12. 16 Oct, 2013 1 commit
  13. 07 Oct, 2013 1 commit
  14. 02 Oct, 2013 1 commit
  15. 28 Sep, 2013 1 commit
  16. 22 Sep, 2013 1 commit
    • Daniel Colascione's avatar
      Add set operations for bool-vector. · 3e0b94e7
      Daniel Colascione authored
      http://lists.gnu.org/archive/html/emacs-devel/2013-09/msg00404.html
      
      * data.c (Qbool_vector_p): New symbol.
      (bool_vector_spare_mask,popcount_size_t_generic)
      (popcount_size_t_msc,popcount_size_t_gcc)
      (popcount_size_t)
      (bool_vector_binop_driver)
      (count_trailing_zero_bits,size_t_to_host_endian)
      (Fbool_vector_exclusive_or)
      (Fbool_vector_union)
      (Fbool_vector_intersection,Fbool_vector_set_difference)
      (Fbool_vector_subsetp,Fbool_vector_not)
      (Fbool_vector_count_matches)
      (Fbool_vector_count_matches_at): New functions.
      (syms_of_data): Intern new symbol, functions.
      * alloc.c (bool_vector_payload_bytes): New function.
      (Fmake_bool_vector): Instead of calling Fmake_vector,
      which performs redundant initialization and argument checking,
      just call allocate_vector ourselves.  Make sure we clear any
      terminating padding to zero.
      (vector_nbytes,sweep_vectors): Use bool_vector_payload_bytes
      instead of open-coding the size calculation.
      (vroundup_ct): New macro.
      (vroundup): Assume argument >= 0; invoke vroundup_ct.
      * casetab.c (shuffle,set_identity): Change lint_assume to assume.
      * composite.c (composition_gstring_put_cache): Change
      lint_assume to assume.
      * conf_post.h (assume): New macro.
      (lint_assume): Remove.
      * dispnew.c (update_frame_1): Change lint_assume to assume.
      * ftfont.c (ftfont_shape_by_flt): Change lint_assume
      to assume.
      * image.c (gif_load): Change lint_assume to assume.
      * lisp.h (eassert_and_assume): New macro.
      (Qbool_vector_p): Declare.
      (CHECK_BOOL_VECTOR,ROUNDUP,BITS_PER_SIZE_T): New macros.
      (swap16,swap32,swap64): New inline functions.
      * macfont.c (macfont_shape): Change lint_assume to assume.
      * ralloc.c: Rename ROUNDUP to PAGE_ROUNDUP throughout.
      * xsettings.c (parse_settings): Use new swap16 and
      swap32 from lisp.h instead of file-specific macros.
      3e0b94e7
  17. 17 Sep, 2013 1 commit
  18. 15 Sep, 2013 1 commit
    • Jan Djärv's avatar
      Port the font backend from the Mac port. · 3fa2054e
      Jan Djärv authored
      * configure.ac: Add check for OSX 10.5, required for macfont.o.
      
      * etc/NEWS: Mention the macfont backend.
      
      * src/Makefile.in (NS_OBJ, SOME_MACHINE_OBJECTS): Add macfont.o.
      
      * src/font.c (syms_of_font): Call syms_of_macfont.
      
      * src/font.h: Declare syms_of_macfont.
      
      * src/nsfns.m: Include macfont.h.
      (Fx_create_frame): Register macfont driver, make a better default font.
      (Fns_popup_font_panel): Get font from macfont driver, if used.
      
      * src/nsfont.m (ns_tmp_flags, ns_tmp_font): Remove.
      (nsfont_open): Set font driver type.
      Set font->ascent and font->descent.  Figure out font instead of
      ns_tmp_font, and flags instead of ns_tmp_flags.
      Fix indentation. Remove call to ns_draw_text_decoration,
      moved to nsterm.
      
      * src/nsterm.m: Include macfont.h.
      (ns_tmp_flags, ns_tmp_font): Remove.
      (ns_compute_glyph_string_overhangs): Check for driver Qns.
      (ns_draw_glyph_string): Use local variables instead of ns_tmp_flags,
      ns_tmp_font.  Call ns_draw_text_decoration here instead of nsfont.m.
      (changeFont:): Fix code style.  Check for font driver type when
      getiing font.
      
      * src/nsterm.h (FONT_DESCENT, FONT_ASCENT): Define to (f)->ascent and
      (f)->descent.
      3fa2054e
  19. 09 Sep, 2013 1 commit
  20. 15 Aug, 2013 2 commits
    • Glenn Morris's avatar
      Stop keeping etc/refcards generated PDFs in the repository · 8e5c7e6f
      Glenn Morris authored
      They are on the gnu.org website and will be in the release tarfiles.
      
      * admin/make-tarball.txt: Mention generating pdfs in etc/refcards.
      
      * etc/refcards/calccard.pdf, etc/refcards/cs-dired-ref.pdf:
      * etc/refcards/cs-refcard.pdf, etc/refcards/de-refcard.pdf:
      * etc/refcards/dired-ref.pdf, etc/refcards/fr-dired-ref.pdf:
      * etc/refcards/fr-refcard.pdf, etc/refcards/gnus-booklet.pdf:
      * etc/refcards/gnus-refcard.pdf, etc/refcards/orgcard.pdf:
      * etc/refcards/pl-refcard.pdf, etc/refcards/pt-br-refcard.pdf:
      * etc/refcards/refcard.pdf, etc/refcards/ru-refcard.pdf:
      * etc/refcards/sk-dired-ref.pdf, etc/refcards/sk-refcard.pdf:
      Remove generated files from repository.
      8e5c7e6f
    • Glenn Morris's avatar
      Cleanup for etc/refcards/Makefile and related items · 4fa44856
      Glenn Morris authored
      * .bzrignore: Unignore etc/refcards/Makefile.
      
      * make-dist: Do not distribute etc/refcards TeX intermediate files.
      
      * Makefile.in (install-arch-indep):
      Do not install etc/refcards TeX intermediate files.
      
      * etc/refcards/Makefile: Rewrite to use portable Makefile syntax.
      Add language-specific targets.
      (distclean, extraclean): New rules.
      
      *  etc/refcards/README: Add copyright and license.  Add Makefile details.
      Mention http and FSF store versions.
      4fa44856
  21. 12 Aug, 2013 2 commits
  22. 11 Aug, 2013 1 commit
  23. 08 Aug, 2013 1 commit
  24. 06 Aug, 2013 1 commit
  25. 05 Aug, 2013 1 commit
  26. 03 Aug, 2013 2 commits
  27. 02 Aug, 2013 5 commits
  28. 26 Jul, 2013 1 commit
  29. 16 Jul, 2013 1 commit
    • Jan Djärv's avatar
      Stop cursor blink after blink-cursor-blinks (10), stop timers when not blinking. · 18c26d81
      Jan Djärv authored
      * etc/NEWS: Document blink-cursor-blinks and blink timers stopped.
      
      * lisp/frame.el (blink-cursor-blinks): New defcustom.
      (blink-cursor-blinks-done): New defvar.
      (blink-cursor-start): Set blink-cursor-blinks-done to 1.
      (blink-cursor-timer-function): Check if number of blinks has been
      done on X and NS.
      (blink-cursor-suspend, blink-cursor-check): New defuns.
      
      * src/frame.c (Fhandle_focus_in, Fhandle_focus_out): New functions.
      (Fhandle_switch_frame): Call Fhandle_focus_in.
      (syms_of_frame): defsubr handle-focus-in/out.
      
      * src/keyboard.c (Qfocus_in, Qfocus_out): New static objects.
      (make_lispy_focus_in, make_lispy_focus_out): Declare and define.
      (kbd_buffer_get_event): For FOCUS_IN, make a focus_in event if no
      switch frame event is made.  Check ! NILP (event->arg) if X11 (moved
      from xterm.c). Make focus_out event for FOCUS_OUT_EVENT if NS or X11
      and there is a focused frame.
      (head_table): Add focus-in and focus-out.
      (keys_of_keyboard): Add focus-in and focus-out to Vspecial_event_map,
      bind to handle-focus-in/out.
      
      * src/nsterm.m (windowDidResignKey): If this is the focused frame, generate
      FOCUS_OUT_EVENT.
      
      * src/termhooks.h (enum event_kind): Add FOCUS_OUT_EVENT.
      
      * src/xterm.c (x_focus_changed): Always generate FOCUS_IN_EVENT.
      Set event->arg to Qt if switch-event shall be generated.
      Generate FOCUS_OUT_EVENT for FocusOut if this is the focused frame.
      18c26d81