mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-26 08:10:47 -07:00
(ldap-search-internal): Make the buffer unibyte.
Use buffer-string instead of buffer-substring for the whole buffer.
This commit is contained in:
parent
bd635c0e44
commit
590a6e6c11
1 changed files with 3 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
;;; ldap.el --- client interface to LDAP for Emacs
|
||||
|
||||
;; Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
|
||||
;; Copyright (C) 1998, 1999, 2000, 2002 Free Software Foundation, Inc.
|
||||
|
||||
;; Author: Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
|
||||
;; Maintainer: Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
|
||||
|
|
@ -583,9 +583,10 @@ an alist of attribute/value pairs."
|
|||
(save-excursion
|
||||
(set-buffer bufval)
|
||||
(erase-buffer)
|
||||
(set-buffer-multibyte nil)
|
||||
(insert-file-contents-literally value)
|
||||
(delete-file value)
|
||||
(setq value (buffer-substring (point-min) (point-max))))
|
||||
(setq value (buffer-string)))
|
||||
(setq record (cons (list name value)
|
||||
record))
|
||||
(forward-line 1))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue