1. 16 May, 2020 1 commit
    • Stefan Kangas's avatar
      Remove stale comments · a67415a7
      Stefan Kangas authored
      * lisp/printing.el (pr-create-interface):
      * lisp/progmodes/ebnf2ps.el (ebnf-eps-filename, ebnf-trim-right):
      Remove old comments about Emacs 21/22 compatibility.
  2. 01 Jan, 2020 1 commit
  3. 26 May, 2019 1 commit
    • Paul Eggert's avatar
      Remove Maintainer: when it duplicates Author: · 797ee587
      Paul Eggert authored
      The convention is that a file with Author: but not Maintainer:
      means the author is a maintainer, which makes it confusing
      when a file lists the same person as author and maintainer.
      Avoid the confusion by removing the duplicate Maintainer: line.
  4. 09 Apr, 2019 1 commit
    • Stefan Monnier's avatar
      * lisp/printing.el: Use lexical-binding · 4f19bbb1
      Stefan Monnier authored
      Require easy-menu instead of adding declarations.
      Remove backward compatiblity.  Remove redundant ':group' args.
      (pr-region-active-p): Use use-region-p.
      (pr-set-keymap-name): Delete function and callers.
      (pr-set-keymap-parents): Delete function; use set-keymap-parent instead.
      (pr-read-string): Delete function; use read-string instead.
      (pr-menu-char-height): Delete function; use frame-char-height instead.
      (pr-menu-char-width): Delete function; use frame-char-width instead.
      (pr-menu-position): Merge the two definitions.
      (pr-get-symbol): Delete function; use easy-menu-intern instead.
      (pr-update-mode-line): Delete function; use force-mode-line-update instead.
      (pr-do-update-menus): Turn local save-var into dynbound pr--save-var.
      (pr-menu-alist): Use setf.  Simplify since we don't keep key-bindings
      in the menus any more.
      (pr-dosify-file-name): Remove interactive spec.
      (pr-filename-style): Rename from pr-path-style.
      (pr-unixify-file-name): Delete function.
      (pr-standard-file-name): Don't turn \ into / under POSIX.
      (pr-temp-dir): Don't dosify.  Use temporary-file-directory unconditionally.
      (pr-save-file-modes): Delete macro.
      (pr-ps-directory-using-ghostscript, pr-ps-directory-print)
      (pr-ps-directory-ps-print, pr-ps-mode-using-ghostscript, pr-ps-print)
      (pr-ps-mode-preview, pr-ps-mode-print, pr-printify-directory)
      (pr-txt-directory, pr-ps-file-up-preview, pr-ps-directory-preview)
      (pr-ps-file-up-ps-print, pr-ps-preview, pr-ps-using-ghostscript):
      Use properly prefixed, declared, and
      explicitly let-bound dynamically bound variables around calls to
      pr-ps-utility-args and pr-set-dir-args.
      (pr-ps-file-using-ghostscript): Only dosify when passing to suprocess.
      (pr-expand-file-name): Delete function; use expand-file-name instead.
      (pr-ps-file-print): Properly dosify.
      (pr-menu-create): Use backquotes.
      (pr-eval-alist, pr-eval-local-alist): Use dolist.
      (pr-ps-utility-args): Don't dosify here.
      (pr-ps-utility-process): Dosify here instead.
      (pr-ps-file, pr-command): Don't dosify here either.
      (pr-interface-map): Move initialization into declaration.
      (pr-insert-section-1): Use 'push'.
      (pr-insert-toggle): Use closure instead of backquoted lambda.
      (pr-insert-menu): Use apply i.s.o eval.
      (pr-insert-radio-button): Avoid 'eval'.
  5. 01 Jan, 2019 1 commit
  6. 17 Dec, 2018 1 commit
    • Alex Branham's avatar
      New function flatten-tree · 36b05dc8
      Alex Branham authored
      Co-authored-by: default avatarBasil L. Contovounesios <contovob@tcd.ie>
      * doc/lispref/lists.texi: Document `flatten-tree'.
      * lisp/progmodes/js.el (js--maybe-join):
      * lisp/printing.el (pr-switches):
      * lisp/lpr.el (lpr-print-region):
      * lisp/gnus/nnimap.el (nnimap-find-wanted-parts):
      * lisp/gnus/message.el (message-talkative-question):
      * lisp/gnus/gnus-sum.el (gnus-remove-thread)
      (gnus-thread-highest-number, gnus-thread-latest-date):
      * lisp/eshell/esh-util.el (eshell-flatten-and-stringify):
      * lisp/eshell/esh-opt.el (eshell-eval-using-options):
      * lisp/eshell/esh-ext.el (eshell-external-command):
      * lisp/eshell/em-xtra.el (eshell/expr):
      * lisp/eshell/em-unix.el (eshell/rm, eshell-mvcpln-template)
      (eshell/cat, eshell/make, eshell-poor-mans-grep, eshell-grep)
      (eshell/du, eshell/time, eshell/diff, eshell/locate):
      * lisp/eshell/em-tramp.el (eshell/su, eshell/sudo):
      * lisp/eshell/em-term.el (eshell-exec-visual):
      * lisp/eshell/em-dirs.el (eshell-dirs-substitute-cd, eshell/cd):
      * lisp/eshell/em-basic.el (eshell/printnl):
      Use new flatten-tree.
      * lisp/progmodes/js.el (js--flatten-list):
      * lisp/lpr.el (lpr-flatten-list):
      * lisp/gnus/message.el (message-flatten-list):
      * lisp/eshell/esh-util.el (eshell-flatten-list):
      Obsolete in favor of Emacs-wide `flatten-tree'.
      * lisp/subr.el (flatten-list): Alias to `flatten-tree' for
      * lisp/subr.el (flatten-tree): New defun.
      * test/lisp/subr-tests.el (subr-tests-flatten-tree): New test.
  7. 01 Jan, 2018 1 commit
  8. 29 Oct, 2017 1 commit
  9. 13 Sep, 2017 1 commit
    • Paul Eggert's avatar
      Prefer HTTPS to FTP and HTTP in documentation · bc511a64
      Paul Eggert authored
      Most of this change is to boilerplate commentary such as license URLs.
      This change was prompted by ftp://ftp.gnu.org's going-away party,
      planned for November.  Change these FTP URLs to https://ftp.gnu.org
      instead.  Make similar changes for URLs to other organizations moving
      away from FTP.  Also, change HTTP to HTTPS for URLs to gnu.org and
      fsf.org when this works, as this will further help defend against
      man-in-the-middle attacks (for this part I omitted the MS-DOS and
      MS-Windows sources and the test tarballs to keep the workload down).
      HTTPS is not fully working to lists.gnu.org so I left those URLs alone
      for now.
  10. 01 Jan, 2017 1 commit
  11. 06 Nov, 2016 1 commit
    • Paul Eggert's avatar
      Modernize usage of 'macOS' in doc and comments · dc152c54
      Paul Eggert authored
      Apple changed the spelling of its operating system again, to "macOS",
      effective with macOS 10.12 Sierra (2016-09-20).  Change Emacs
      documentation and comments to match this.  Stick with older OS
      spellings ("OS X", "Mac OS X") when talking about older releases where
      the older names are more correct.
  12. 08 Oct, 2016 1 commit
    • Eli Zaretskii's avatar
      Deprecate 'wp' group and introduce a new group 'text' · 67d14c82
      Eli Zaretskii authored
      * lisp/textmodes/tildify.el (tildify):
      * lisp/textmodes/text-mode.el (text-mode-hook):
      * lisp/textmodes/table.el (table):
      * lisp/textmodes/rst.el (rst):
      * lisp/textmodes/refer.el (refer):
      * lisp/textmodes/refbib.el (refbib):
      * lisp/textmodes/picture.el (picture):
      * lisp/textmodes/nroff-mode.el (nroff):
      * lisp/textmodes/enriched.el (enriched):
      * lisp/textmodes/bib-mode.el (bib):
      * lisp/progmodes/ebnf2ps.el (ebnf2ps):
      * lisp/nxml/rng-valid.el (relax-ng):
      * lisp/view.el (view):
      * lisp/ps-print.el (ps-print):
      * lisp/printing.el (printing):
      * lisp/outline.el (outlines):
      * lisp/lpr.el (lpr):
      * lisp/delim-col.el (columns): Use 'text' group instead of 'wp'.
      * lisp/cus-edit.el (wp): Remove the "text" tag.
      (text): New defgroup, inherits from the deprecated 'wp'.
      (outlines): Remove, in favor of the definition in outline.el.
      (tex): Inherit from 'text'.
      Suggested by Drew Adams <drew.adams@oracle.com>.  (Bug#24549)
  13. 23 May, 2016 1 commit
  14. 01 Jan, 2016 1 commit
  15. 17 Nov, 2015 1 commit
    • Paul Eggert's avatar
      Fix docstring quoting problems with ‘ '’ · ac16149b
      Paul Eggert authored
      Problem reported by Artur Malabarba in:
      Most of these fixes are to documentation; many involve fixing
      longstanding quoting glitches that are independent of the
      recent substitute-command-keys changes.  The changes to code are:
      * lisp/cedet/mode-local.el (mode-local-augment-function-help)
      Substitute docstrings before displaying them.
      * lisp/emacs-lisp/cl-macs.el (cl--transform-lambda):
      Quote the generated docstring for later substitution.
  16. 02 Sep, 2015 1 commit
    • Paul Eggert's avatar
      Escape ` and ' in doc · 19532d14
      Paul Eggert authored
      Escape apostrophes and grave accents in docstrings if they are
      are supposed to stand for themselves and are not quotes.  Remove
      apostrophes from docstring examples like ‘'(calendar-nth-named-day
      -1 0 10 year)’ that confuse source code with data.  Do some other
      minor docstring fixups as well, e.g., insert a missing close
  17. 26 Aug, 2015 1 commit
    • Paul Eggert's avatar
      Top-level elisp files respect ‘text-quoting-style’ · 4786618f
      Paul Eggert authored
      In top-level elisp files, use format-message in diagnostic formats,
      so that they follow user preference as per ‘text-quoting-style’
      rather than being hard-coded to quote `like this'.
      * lisp/allout.el (allout-get-configvar-values):
      * lisp/apropos.el (apropos-symbols-internal):
      * lisp/dired-aux.el (dired-do-shell-command, dired-create-files)
      (dired-do-create-files-regexp, dired-create-files-non-directory):
      * lisp/dired-x.el (dired-do-run-mail):
      * lisp/dired.el (dired-log, dired-dnd-handle-local-file):
      * lisp/disp-table.el (standard-display-european):
      * lisp/find-dired.el (find-dired):
      * lisp/forms.el (forms-mode):
      * lisp/ido.el (ido-buffer-internal):
      * lisp/info.el (Info-index-next):
      * lisp/outline.el (outline-invent-heading):
      * lisp/printing.el (pr-ps-outfile-preprint, pr-i-ps-send):
      * lisp/proced.el (proced-log):
      * lisp/ps-print.el (ps-print-preprint, ps-get-size):
      * lisp/recentf.el (recentf-open-files, recentf-save-list):
      * lisp/savehist.el (savehist-save):
      * lisp/server.el (server-ensure-safe-dir):
      * lisp/ses.el (ses-rename-cell):
      * lisp/simple.el (list-processes--refresh):
      * lisp/startup.el (command-line):
      * lisp/strokes.el (strokes-unset-last-stroke)
      Use format-message so that quotes are restyled.
      * lisp/cus-edit.el (custom-raised-buttons, customize-browse):
      Don’t quote ‘raised’.
      * lisp/descr-text.el (describe-char):
      * lisp/dirtrack.el (dirtrack-debug-message):
      * lisp/hexl.el (hexl-insert-multibyte-char):
      Apply substitute-command-keys to help string.
      * lisp/wdired.el (wdired-do-renames, wdired-do-symlink-changes)
      Let dired-log do the formatting.
  18. 01 Jan, 2015 2 commits
  19. 29 Sep, 2014 1 commit
  20. 14 May, 2014 2 commits
    • Glenn Morris's avatar
      Add with-file-modes macro, and use it · d63d883a
      Glenn Morris authored
      * lisp/subr.el (with-file-modes): New macro.
      * lisp/printing.el (pr-save-file-modes):
      * lisp/eshell/esh-util.el (eshell-with-file-modes): Make obsolete.
      * lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2):
      Add with-file-modes.
      * lisp/doc-view.el (doc-view-make-safe-dir):
      * lisp/epg.el (epg--start):
      * lisp/files.el (locate-user-emacs-file, make-temp-file)
      (backup-buffer-copy, move-file-to-trash):
      * printing.el (pr-despool-print, pr-call-process, pr-text2ps):
      * eshell/esh-util.el (eshell-with-private-file-modes)
      * lisp/net/browse-url.el (browse-url-mosaic):
      * lisp/obsolete/mailpost.el (post-mail-send-it):
      * lisp/obsolete/pgg-pgp.el (pgg-pgp-verify-region):
      * lisp/obsolete/pgg-pgp5.el (pgg-pgp5-verify-region):
      * lisp/url/url-util.el (url-make-private-file):
      Use with-file-modes.
      * doc/lispref/files.texi (Changing Files): Mention with-file-modes.
      * etc/NEWS: Mention this.
    • Glenn Morris's avatar
      Optimize away some compat-cruft in printing.el · f0036ec2
      Glenn Morris authored
      * lisp/printing.el (subst-char-in-string, make-temp-file, pr-get-symbol):
      Optimize on Emacs, which has the relevant functions for ages.
  21. 10 May, 2014 1 commit
  22. 09 May, 2014 1 commit
    • Glenn Morris's avatar
      Use file-accessible-directory-p in some more places · 1d75432d
      Glenn Morris authored
      * lisp/files.el (file-expand-wildcards):
      * lisp/man.el (Man-support-local-filenames):
      * lisp/printing.el (pr-i-directory, pr-interface-directory):
      * lisp/progmodes/grep.el (lgrep, rgrep):
      * lisp/textmodes/ispell.el (ispell-call-process)
      (ispell-call-process-region, ispell-start-process)
      * lisp/mh-e/mh-e.el (mh-variants):
      Use file-accessible-directory-p.
  23. 01 Jan, 2014 1 commit
  24. 05 Sep, 2013 1 commit
    • Daniel Hackney's avatar
      * lisp/dired-x.el: · 6c42fc3e
      Daniel Hackney authored
      * lisp/net/ange-ftp.el:
      * lisp/net/browse-url.el:
      * lisp/net/dbus.el:
      * lisp/net/eudc.el:
      * lisp/net/eudcb-ldap.el:
      * lisp/net/eww.el:
      * lisp/net/imap.el:
      * lisp/printing.el:
      * lisp/vc/ediff-diff.el:
      * lisp/vc/ediff-init.el:
      * lisp/vc/ediff-merg.el:
      * lisp/vc/ediff-mult.el:
      * lisp/vc/ediff-util.el:
      * lisp/vc/ediff-wind.el:
      * lisp/vc/ediff.el:
      * lisp/vc/emerge.el:
      * lisp/vc/pcvs.el:
      * vc/vc-annotate.el: Prefix unused arguments with `_' to silence
      byte compiler.  Remove some unused let-bound variables.
  25. 24 Jul, 2013 2 commits
  26. 21 May, 2013 1 commit
  27. 11 Jan, 2013 1 commit
    • Aaron S. Hawley's avatar
      Disambiguate function and variable references in docstrings. · 9fc9a531
      Aaron S. Hawley authored
      * lisp/comint.el (comint-history-isearch-message): Fix ambiguous doc
       string cross-reference(s).
      * lisp/ffap.el (ffap-string-at-point-region, ffap-next)
      (ffap-string-at-point, ffap-string-around)
      (ffap-copy-string-as-kill, ffap-highlight-overlay)
      (ffap-literally): Fix ambiguous doc string cross-reference(s).
      * lisp/font-lock.el (font-lock-keywords-alist)
      (font-lock-removed-keywords-alist): Fix ambiguous doc string
      * lisp/help-mode.el (help-xref-symbol-regexp): Add "call" as a hint for
      a cross-reference to a function.
      * lisp/info.el (Info-find-emacs-command-nodes): Fix ambiguous doc
       string cross-reference(s).
      * lisp/isearch.el (isearch-message-function, isearch-fail-pos): Fix
       ambiguous doc string cross-reference(s).
      * lisp/misearch.el (multi-isearch-next-buffer-function): Fix ambiguous
       doc string cross-reference(s).
      * lisp/newcomment.el (comment-box): Fix ambiguous doc string
      * lisp/printing.el (pr-txt-printer-alist, pr-ps-printer-alist)
      (pr-setting-database): Fix ambiguous doc string
      * lisp/ps-print.el (ps-even-or-odd-pages, ps-spool-buffer-with-faces)
      (ps-n-up-filling-database): Fix ambiguous doc string
      * lisp/server.el (server-buffer, server-log): Fix ambiguous doc string
      * lisp/simple.el (newline, delete-backward-char, delete-forward-char)
      (minibuffer-history-isearch-message, kill-line, track-eol)
      (temporary-goal-column): Fix ambiguous doc string
      * lisp/whitespace.el (whitespace-point)
      (whitespace-font-lock-refontify, whitespace-bob-marker)
      (whitespace-eob-marker): Fix ambiguous doc string
      * lisp/calc/calc.el (calc-highlight-selections-with-faces)
       (calc-dispatch): Fix ambiguous doc string cross-reference(s).
      * lisp/emacs-lisp/edebug.el (edebug-read, edebug-eval-defun): Fix
       ambiguous doc string cross-reference(s).
      * lisp/gnus/gnus-start.el (gnus-check-new-newsgroups): Fix ambiguous doc string
      * lisp/gnus/gnus-sum.el (gnus-summary-newsgroup-prefix): Fix ambiguous doc string
      * lisp/international/mule.el (add-to-coding-system-list): Fix ambiguous
       doc string cross-reference(s).
      * lisp/progmodes/cc-fonts.el (c-font-lock-keywords-3)
      (c++-font-lock-keywords-3, objc-font-lock-keywords-3)
      (java-font-lock-keywords-3, idl-font-lock-keywords-3)
      (pike-font-lock-keywords-3): Fix ambiguous doc string
      * lisp/progmodes/compile.el (compile): Fix ambiguous doc string
      * lisp/progmodes/etags.el (tags-table-files)
      (tags-table-files-function, tags-included-tables-function): Fix
       ambiguous doc string cross-reference(s).
      * lisp/progmodes/gdb-mi.el (gdb, gdb-setup-windows)
      (gdb-restore-windows): Fix ambiguous doc string
      * lisp/textmodes/flyspell.el (flyspell-mark-duplications-flag)
      (flyspell-default-deplacement-commands): Fix ambiguous doc string
      * lisp/textmodes/ispell.el (ispell-accept-output): Fix ambiguous doc
       string cross-reference(s).
      * lisp/textmodes/sgml-mode.el (html-tag-help): Fix ambiguous doc string
      * lisp/vc/compare-w.el (compare-ignore-whitespace)
      (compare-ignore-case, compare-windows-dehighlight): Fix ambiguous
       doc string cross-reference(s).
      * lisp/vc/diff.el (diff): Fix ambiguous doc string cross-reference(s).
      * src/insdel.c (Fcombine_after_change_execute, syms_of_insdel): Fix
       ambiguous doc string cross-reference(s).
      * src/keyboard.c (Fcommand_execute, syms_of_keyboard): Fix ambiguous
       doc string cross-reference(s).
      * src/window.c (Fwindow_point, syms_of_window): Fix ambiguous doc
       string cross-reference(s).
      Fixes: debbugs:12686
  28. 01 Jan, 2013 1 commit
  29. 17 Nov, 2012 1 commit
    • Juanma Barranquero's avatar
      lisp/*.el: Add missing declarations. · d7fe6352
      Juanma Barranquero authored
      * descr-text.el (quail-find-key):
      * dired.el (desktop-file-name):
      * dirtrack.el (shell-prefixed-directory-name, shell-process-cd):
      * generic-x.el (comint-mode, comint-exec):
      * image-dired.el (widget-forward):
      * info.el (speedbar-add-expansion-list, speedbar-center-buffer-smartly)
      (speedbar-change-initial-expansion-list, speedbar-delete-subblock)
      (speedbar-make-specialized-keymap, speedbar-make-tag-line):
      * printing.el (easy-menu-add-item, easy-menu-remove-item)
      (widget-field-action, widget-value-set):
      * speedbar.el (imenu--make-index-alist):
      * term.el (ring-empty-p, ring-ref, ring-insert-at-beginning)
      (ring-length, ring-insert):
      * vcursor.el (compare-windows-skip-whitespace):
      * woman.el (dired-get-filename):
      Declare functions.
      * term/w32-win.el (cygwin-convert-path-from-windows): Fix declaration.
  30. 17 Sep, 2012 1 commit
    • Chong Yidong's avatar
      Update docstrings and comments to use "init file" terminology. · 865fe16f
      Chong Yidong authored
      * bookmark.el (bookmark-bmenu-toggle-filenames): Doc fixes.
      * comint.el (comint-prompt-read-only):
      * custom.el (defcustom):
      * hi-lock.el (hi-lock-mode):
      * ibuffer.el (ibuffer-formats):
      * ielm.el (ielm-prompt-read-only):
      * novice.el (disable-command):
      * saveplace.el (toggle-save-place):
      * speedbar.el (speedbar-supported-extension-expressions):
      * startup.el (auto-save-list-file-prefix, init-file-user)
      (after-init-hook, inhibit-startup-echo-area-message):
      * strokes.el (strokes-help):
      * time-stamp.el (time-stamp):
      * calendar/calendar.el (calendar, diary-file):
      * calendar/diary-lib.el (diary-mail-entries, diary)
      * calendar/holidays.el (holidays, calendar-holidays):
      * calendar/lunar.el (lunar-phases):
      * calendar/solar.el (sunrise-sunset):
      * emulation/edt.el (edt-load-keys):
      * emulation/viper.el (viper-mode):
      * eshell/em-alias.el (eshell-command-aliases-list):
      * eshell/esh-util.el (eshell-convert-numeric-arguments):
      * international/ogonek.el (ogonek-information):
      * net/tramp-cmds.el (tramp-bug):
      * net/quickurl.el (quickurl-reread-hook-postfix):
      * play/decipher.el (decipher-font-lock-keywords):
      * progmodes/cc-styles.el (c-set-style):
      * progmodes/idlw-shell.el (idlwave-shell-prompt-pattern):
      * progmodes/inf-lisp.el (inferior-lisp-prompt):
      * progmodes/octave-mod.el (octave-mode):
      * progmodes/sql.el (sql-mode, sql-interactive-mode, sql-password):
      * progmodes/verilog-mode.el (verilog-read-defines):
      * textmodes/two-column.el (2C-mode): Likewise.
  31. 29 Jul, 2012 1 commit
    • Paul Eggert's avatar
      Don't use the abbreviation "win" to refer to Windows (Bug#10421). · b46a6a83
      Paul Eggert authored
      * lisp/org/ob-lilypond.el (ly-w32-ly-path): Rename from ly-win32-ly-path.
      (ly-w32-pdf-path): Rename from ly-win32-pdf-path.
      (ly-w32-midi-path): Rename from ly-win32-midi-path.
      (ly-determine-ly-path, ly-determine-pdf-path, ly-determine-midi-path):
      Check for "windows-nt", not "win32", in system-type.
      * src/regex.c (MAX_BUF_SIZE): Remove some incorrect and
      long-ago-commented-out code that talks about "WIN32".
      * src/w32heap.h (OS_WINDOWS_95): Rename from OS_WIN95.
      All uses changed.
  32. 11 Jan, 2012 1 commit
  33. 05 Jan, 2012 1 commit
  34. 15 Dec, 2011 1 commit
  35. 09 Dec, 2011 1 commit
  36. 25 Nov, 2011 1 commit
  37. 20 Nov, 2011 1 commit