diff options
| author | Karl Heuer | 1994-09-08 17:44:42 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-09-08 17:44:42 +0000 |
| commit | f709e2e1309ed834c7a78ac4527caca011725562 (patch) | |
| tree | 6782c7d4c8a3ac6aa2fecfac7de0a74e50c245cd | |
| parent | a975e06d47b14258d6c4912b3cf532c13c571fe5 (diff) | |
| download | emacs-f709e2e1309ed834c7a78ac4527caca011725562.tar.gz emacs-f709e2e1309ed834c7a78ac4527caca011725562.zip | |
(put-string-on-kill-ring): Delete this function.
(bibtex-current-entry-label): Use kill-new instead.
| -rw-r--r-- | lisp/textmodes/bibtex.el | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el index 038c7cc0a97..9d605e8e13d 100644 --- a/lisp/textmodes/bibtex.el +++ b/lisp/textmodes/bibtex.el | |||
| @@ -247,15 +247,6 @@ | |||
| 247 | (and (= (length ss1) (length ss2)) | 247 | (and (= (length ss1) (length ss2)) |
| 248 | (string-equal (upcase ss1) (upcase ss2))))) | 248 | (string-equal (upcase ss1) (upcase ss2))))) |
| 249 | 249 | ||
| 250 | ;;; This should be moved into simple.el, and the functions there modified | ||
| 251 | ;;; to call it rather than doing it themselves. | ||
| 252 | (defun put-string-on-kill-ring (string) | ||
| 253 | "Make STRING be the first element of the kill ring." | ||
| 254 | (setq kill-ring (cons string kill-ring)) | ||
| 255 | (if (> (length kill-ring) kill-ring-max) | ||
| 256 | (setcdr (nthcdr (1- kill-ring-max) kill-ring) nil)) | ||
| 257 | (setq kill-ring-yank-pointer kill-ring)) | ||
| 258 | |||
| 259 | 250 | ||
| 260 | 251 | ||
| 261 | 252 | ||
| @@ -587,7 +578,7 @@ Suggested binding is ^C-k." | |||
| 587 | (format "\\cite{%s}" key) | 578 | (format "\\cite{%s}" key) |
| 588 | key))) | 579 | key))) |
| 589 | (if kill | 580 | (if kill |
| 590 | (put-string-on-kill-ring val)) | 581 | (kill-new val)) |
| 591 | val))) | 582 | val))) |
| 592 | 583 | ||
| 593 | ;;; bibtex mode: | 584 | ;;; bibtex mode: |